Related
GUIDE: Getting some old features back
INTRO: For those who dislike some of the changes/features made to roms as they are developed and are asking how to get them back, here is a how to. It is usually a simple matter of pushing the old files from previous builds into your current rom. Keep in mind that the devs are building a rom as they see fit. As with any rom that you don't build yourself, there will always be things you want to change.
-If there is a bug, post it in the thread.
-If there is a change that you personally want, then do it yourself. Don't expect the dev, and everyone else who uses the rom, to accommodate your specific needs/wants. You may not have noticed, but you aren't the only one using the rom!
NOTE: This guide and code are meant for the virtuous sense rom, but the concept is universal. For example, if you are using some rom and the new version is posted with, say the amazon mp3 apk removed, and you want it back, refrain from cluttering up the dev's thread with a request to have it back. This is both selfish and a waste of posting space. If you are to the point of installing custom roms, you should first be able to type basic adb/terminal emulator commands to copy/delete files. In this case you would extract the amazon mp3 apk from an old .zip and push/install it into your current one. Now wasn't that easier than waiting and hoping that someone will do it for you?
NOW TO THE GUIDE:
Auto brightness mod - To revert from the auto brightness 'mod', which is far too sensitive, to the original, simply pull the services.jar and framework-res.apk from a rom before the patch, and push them to your framework folder. I've attached them to the second post for ease.
Reboot into recovery
Code:
adb shell mount /system
adb shell rm /system/framework/services.jar
adb shell rm /system/framework/framework-res.apk
adb push [directory of saved file]\services.jar /system/framework
adb push [directory of saved file]\framework-res.apk /system/framework
Reboot
-------------------
Keyboard mapping - The www/com key has been changed to a tab, which is good, as it was non-functional before. However the user keys have been changed too. I've modified a file which keeps the www/com key as TAB but also keeps the user keys as user assignable keys. Also attached to second post.
Reboot into recovery
Code:
adb shell mount /system
adb shell rm /system/usr/keylayout/vision-keypad.kl
adb push [directory of saved file]\vision-keypad.kl /system/usr/keylayout
Reboot
-------------------
Rosie auto-rotate - If you want to keep it so that rosie will only be in portrait mode with the keyboard closed, but dont want to turn off auto-rotate throughout all apps, just push the old rosie. Also attached to second post.
Reboot into recovery
Code:
adb shell mount /system
adb shell rm /system/app/com.htc.launcher.apk
adb push [directory of saved file]\com.htc.launcher.apk /system/app
Reboot
Attachments:
You need to rename "services.jar.zip" back to "services.jar" and "vision-keypad.kl.zip" back to "vision-keypad.kl". This is because the forum wont let you upload .kl and .jar extensions as attachments.
Thanks so much for this. I'll definitely be pushing the auto-brightness mod back, and I may do the keyboard, too (might let others do that one first, or see if rmk40/eViL release an update with that first).
Thanks for this!
Sent from my HTC Vision using Tapatalk
Couldn't make the quick key to work.. maybe I might be doing it wrong but I couldn't make it work.. ill keep trying
sent from t-mobile g2 using HTC sense
android602 said:
Couldn't make the quick key to work.. maybe I might be doing it wrong but I couldn't make it work.. ill keep trying
sent from t-mobile g2 using HTC sense
Click to expand...
Click to collapse
What version of virtuous are you running? Did you rename it and remove the .zip from the end?
I'm using that exact file w/ no issues
calendar/lockscreen
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
felixk87 said:
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
Click to expand...
Click to collapse
Lockscreen - no.
Calendar - maybe, haven't tried. However I did find these 2 threads by typing in the words "htc calendar" in the search box (which means you didn't search very hard )
http://forum.xda-developers.com/showthread.php?t=795222
http://forum.xda-developers.com/showthread.php?t=723761]
They may help you.
Good idea with this thread. It's impossible for us to please everyone and this is absolutely the most constructive way to deal with everyone's personal preferences. There is one key consideration for everyone. If we make other changes to the frameworks which you DO want, pushing files from this thread which have not been updated with said features will eliminate those changes as well. Point is, the concept here is good but it needs to be maintained.
Also, the intention with Virtuous is to provide options. The ROM isn't finalized so ROM Manager isn't populated with all the variants it will eventually have. Case in point, we had to re-base on the new Egypt RUU and are in the process of re-applying all our changes. If we had a variety of options, we would have to redo all of those as well. Once we're in a more "final" state, you'll start to see a lot more choices officially supported with the ROM.
The keyboard mod you have here will probably just become part of Virtuous 0.8.0, by the way. I had not realized our replacement eliminated the quick key customizations (oversight).
Chances are I'm not doing it right, as I'm only about 2% oriented in using ADB, but after following the code, pushing the files, etc, the phone boots up with perpetual errors and crashes. (Phone cannot be launched, etc.)
The process in which I did it was:
Wipe the G2, install v0.7.0, update to 0.7.4, remain in recovery and use adb and followed the code you provided above. (Everything says it works, in terms of mounting, pushing, etc.)
I've also tried it where I reboot after updating, let the phone launch fully, then go back to recovery to push the mod files. Same errors occur.
The only two mods I was interested in were the auto-brightness one and the orientation one.
Any idea what I did wrong?
felixk87 said:
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
Click to expand...
Click to collapse
You could possibly try pushing the lockscreen apk from SuperVillainZ.
NANDROID 1ST THOUGH!!!!!
Sent from my HTC Vision using XDA App
fox-orian said:
Chances are I'm not doing it right, as I'm only about 2% oriented in using ADB, but after following the code, pushing the files, etc, the phone boots up with perpetual errors and crashes. (Phone cannot be launched, etc.)
The process in which I did it was:
Wipe the G2, install v0.7.0, update to 0.7.4, remain in recovery and use adb and followed the code you provided above. (Everything says it works, in terms of mounting, pushing, etc.)
I've also tried it where I reboot after updating, let the phone launch fully, then go back to recovery to push the mod files. Same errors occur.
The only two mods I was interested in were the auto-brightness one and the orientation one.
Any idea what I did wrong?
Click to expand...
Click to collapse
Well from what you are saying, it sounds like the methods are correct. Did you make sure to remove the ".zip" from the end of the services.jar.zip file?
Can this be modified to restore ".com/www" to G2's?
the1wingedangel said:
Well from what you are saying, it sounds like the methods are correct. Did you make sure to remove the ".zip" from the end of the services.jar.zip file?
Click to expand...
Click to collapse
Yup, and I have "always show extension" enabled in folder options, so I definitely got rid of the .zip.
Maybe I'll fiddle with it a little more, see if I missed something.
All right, here's the error I get after removing the files for the brightness mod, and pushing the ones you attached in:
"The application Google Services Framework (process com.google.process.gapps) has stopped unexpectedly."
Basically the launcher is completely inaccessible, the phone remains perpetually in the settings screen because I suppose it's the only thing that it can load without the launcher. It also can't get a signal except for wi-fi, "Mobile Networks" in the settings remains unchecked, and it can't be turned on. Hahaha pretty severe for a rather simple mod.
Here's a full step-by-step of exactly what I did:
Wipe User Data, Wipe Cache
Install virtuous v0.7.0, then v0.7.4 from zip
Remain in Recovery
Open command prompt Change directory to ADB (c:\AndroidSDK\tools)
Entered the following codes one at a time:
- adb shell mount /system (mounts)
- adb shell rm /system/framework/services.jar (file removed)
- adb shell rm /system/framework/framework-res.apk (file removed)
- adb push C:\services.jar /system/framework (success 0.250s)
- adb push C:\framework-res.apk /system/framework (success 1.80s)
(I just have the files on C temporarily for the ease of it.)
Reboot
Then the errors hit once I unlock the screen.
Heheh, I can't really think of any other way to approach it. Hmmmm.
Any idea what I'd need to put back for video codecs? I'm running CM 6.1 but it doesn't run streaming videos from the NHL Gamecenter unlike the stock rom. I'm assuming its a codec issue and was wondering what I'd want to replace.
fox-orian said:
All right, here's the error I get after removing the files for the brightness mod, and pushing the ones you attached in:
"The application Google Services Framework (process com.google.process.gapps) has stopped unexpectedly."
Basically the launcher is completely inaccessible, the phone remains perpetually in the settings screen because I suppose it's the only thing that it can load without the launcher. It also can't get a signal except for wi-fi, "Mobile Networks" in the settings remains unchecked, and it can't be turned on. Hahaha pretty severe for a rather simple mod.
Here's a full step-by-step of exactly what I did:
Wipe User Data, Wipe Cache
Install virtuous v0.7.0, then v0.7.4 from zip
Remain in Recovery
Open command prompt Change directory to ADB (c:\AndroidSDK\tools)
Entered the following codes one at a time:
- adb shell mount /system (mounts)
- adb shell rm /system/framework/services.jar (file removed)
- adb shell rm /system/framework/framework-res.apk (file removed)
- adb push C:\services.jar /system/framework (success 0.250s)
- adb push C:\framework-res.apk /system/framework (success 1.80s)
(I just have the files on C temporarily for the ease of it.)
Reboot
Then the errors hit once I unlock the screen.
Heheh, I can't really think of any other way to approach it. Hmmmm.
Click to expand...
Click to collapse
Weird, I have no idea why that won't work for you. Anyway, there is another way around it. Just open up your patch.zip (from 0.7.0 to 0.7.4), go to the framework folder, and remove the services.jar and framework-res.apk from it. Then go about the wipe/install of both zips like normal. That way the patch zip will no longer replace those two files. Anything that you don't want changed in a patch zip can just removed from it.
Snap Jackel Pop said:
Any idea what I'd need to put back for video codecs? I'm running CM 6.1 but it doesn't run streaming videos from the NHL Gamecenter unlike the stock rom. I'm assuming its a codec issue and was wondering what I'd want to replace.
Click to expand...
Click to collapse
Sorry cant help on that one, I haven't run a CM rom since like 1 or 2.0 haha. You may try to see if others are having that problem, or if it is a known issue with the 6.1 and streaming videos. Is it only that site? Maybe a flash player version problem?
rmk40 said:
Good idea with this thread. It's impossible for us to please everyone and this is absolutely the most constructive way to deal with everyone's personal preferences. There is one key consideration for everyone. If we make other changes to the frameworks which you DO want, pushing files from this thread which have not been updated with said features will eliminate those changes as well. Point is, the concept here is good but it needs to be maintained.
Also, the intention with Virtuous is to provide options. The ROM isn't finalized so ROM Manager isn't populated with all the variants it will eventually have. Case in point, we had to re-base on the new Egypt RUU and are in the process of re-applying all our changes. If we had a variety of options, we would have to redo all of those as well. Once we're in a more "final" state, you'll start to see a lot more choices officially supported with the ROM.
The keyboard mod you have here will probably just become part of Virtuous 0.8.0, by the way. I had not realized our replacement eliminated the quick key customizations (oversight).
Click to expand...
Click to collapse
Yea, I assumed it would be out-dated soon anyway, as changes are made to your roms. I'll adjust it to keep up if the need is there though. It was just a couple of the more simple alterations that I made, and after seeing so many people cluttering up your thread with posts about them, I decided to post this.
Mostly, though, I just wanted to remind people that many simple issues/personal needs (like an app being removed from a rom, or a small change to one or two apps) can be solved with a little bit of thought and some adb knowledge - both of which should be present if you are working with a rooted phone in the first place!
the1wingedangel said:
many simple issues/personal needs can be solved with a little bit of thought and some adb knowledge - both of which should be present if you are working with a rooted phone in the first place!
Click to expand...
Click to collapse
I really cant emphasise this enough!
Sent from my sweet G2
Do you know if there is anyone to return the power down message. I remember before there being and option to restart the phone, hibernate, power off, or reboot into recovery. I liked having that. Is there anyway to return this feature?
Sent from my sweet G2
felixk87 said:
Is it possible to replace the sense lockscreen/calendar with the vanilla versions? I have tried searching but can't find find any instructions for how to do this
Click to expand...
Click to collapse
ddotpatel said:
You could possibly try pushing the lockscreen apk from SuperVillainZ.
NANDROID 1ST THOUGH!!!!!
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
by chance, did anyone try this? if not, I will try it in a few...
Im looking for the boot animation for OS 1.0. Can anyone help me out?
I'm Br1ck'd's guy who was looking for the boot animation for you over the weekend. The problem I'm running into is that every ROM I can find is in the *.nbh format, so there is no way I can actually go in and grab the information. However, I haven't given up, and if I do find a way I'll let you all know.
werd!
10char
Awesome man. Thanks alot.
Sent from my SGH-T959 using XDA App
OK, so you're hosed with your request. Apparently, the boot animation is locked until at least Cupcake. So I can get you the Cupcake boot animation no sweat. But when I flashed my G1 back down to stock 1.0 there is no way to run Super User on it. You have root access, however when running something like Terminal Emulator and type "SU" you'll still get permission denied errors even though you have root access. Lame, I know.
So for giggles, I adb pulled every file from the root of the phone. No dice. There is no animations, period. Even searching every friggin' *.png file, there is nothing there for the boot animation. I can flash a new boot animation to the phone, but all that does is mask the original one, which is hidden somewhere in the *.nbh file. However, either I am not smart enough, or there is no way to do it as of yet, but I cannot get into the *.nbh file, period.
So I figured "OK, I'll try an emulator". That also failed, as the earliest emulator I can find is the emulator for Cupcake. So I then tried to use the emulator to flash a different ROM, which failed because as it reboots it goes back to stock Cupcake. Which is lame (they should really have a save state or something).
The next step I tried was downloading an older version of the Android SDK. Again, nothing available to me until Cupcake. I could have possibly loaded it in Eclipse, but I don't have Eclipse and don't prefer to have Eclipse, and I doubt that it would have made a difference since searching every folder in the SDK packs turned up nothing. I even loaded the SDK packs on my Mac, just in case there was a different set of files. Nothing.
Since I'm still on 1.0 I did try to do an ADB Shell, but any command gives me permissions issues. It's probably because of the root issue with the stock image. I don't really know, I just know I can't do it.
So my final attempt was that I downloaded a *.nbh explorer for the Windows 7 phones, but it doesn't work because of the signing issues.
Ultimately, you're not going to be getting the boot animation from me. I've tried and failed Sorry man. Good luck though!
You mean the "Glowing Android" bootanimation?
I was looking for it a few weeks ago, and made my own with the resources in the 1.0 build.
It's 800x480, you might have to resize it to 320x480.
http://dl.dropbox.com/u/122255/GlowingAndroid.zip
I'm currently running CM7 RC4, and I'm trying to edit my framework-res.apk. But when I push the file back into my phone I just get force closes on everything. Am I doing something wrong, or there's a new way to edit the framework-res.apk? I use to be able to do this back in CM6 and if I recall correctly, back in CM7 RC1 too.
A reboot fixes that.. because you're pushing back the framework that runs everything at boot I am sure.. so..
- adb push framework-res.apk /system/framework
- adb reboot
Sent from my HTC Vision using XDA Premium App
Thats the problem, I do those adb commands to push it back and reboot, after the reboot thats when the errors and force closes happens.
Did you re-sign it? Are the permissions correct? Are you sure you didn't edit the wrong things or maybe didn't edit all the lines you needed to (dependencies if there are any).
There are a lot of things that it could be depending on what you did/didn't do. What exactly were you editing it for... a theme?
I resigned it with apk_manager 4.9. I'm not sure how to see the permissions, I kept the same name of all the files I replaced. I was trying to edit the battery icon, and a couple of other things. I looked into metamorphing, and I'm trying to get the basic knowledge on how to create my own metamorphing themes, seeing how I tried a theme and worked.
Hi.
I have some apps i want to install.
I have uninstalled the weather app along with the weatherSyncProvider and WeatherProvider.
So all the posts say "copy to system/app, clear dalvik-cahce, and reboot" to install a system app.
But thats not working. So after rebooting, i went into Root Explorer and installed the Weather app. It installed successfully.
On the other hand, the WeatherSyncProvider and WeatherProvider app didnt install giving the "Application not installed" message.
I tried using adb to install it, and it gave me an error (forgot what the error said exactly) but it gave the meaning that the error was got to do with the sharedID
which is com.htc.uid.rosie. I've tired way too much, but cant get it to install.
Do i have to change anything in the AndroidManifest.xml file?
---- OH and same thing happens to HtcMusic.apk, but this gives the DEXOPT error, and the .apk had no .dex file but has a .odex file and im running a stock 2.3.3 rooted odex ROM
Root is not enough to make persistant changes to the system directory, you need S-OFF.
Oh and you should use a deodexed ROM, it will save you the hassle of deleting the odex files.
yea, i have radio and eng s-off.
i've been to many posts, read MANY solutions, but none work.
I like the odex ROMs, mostly because its more stock'ish' and i like the challenge! , but as you can see i've hit a little bump with the error that adb is giving me (DEXOPT and SHARED ID).
And if you could please...
When i get an app that is DEXed, will using the 'dexopt-wrapper' command always work to make a .odex file? -- because i used it with the sense 3.0 lockscreen and it worked but with
com.htc.framework.jar (in /system/framework/)
it didnt. -- it wouldnt even load the bootanimation, just hanged on the HTC splash screen.
Could you tell me the importance of the com.htc.framework.jar file?
Sorry if its too much questions! ... any help would be greatly appreciated!
A similar issue happened to me just a few days back. While trying to apply a Rosie patch, i just used Root Explorer to copy the new apk to /data/app_s, but for some reason that did not work.
So i then tried pushing the apk via adb, and it worked. I'm not really sure what difference this makes, but it seemed to work for me.
So maybe you could give this a try. Instead of copy-pasting, try to do a push.
i've tried both ... still not working
Hello.
Since this is the first phone I actually trying learn and modify myself I have no experience with possible side effects and such, however what I've read somewhere else, SystemUI.apk as well as framework-res.apk should NOT cause boot loops or no boot at all.
On Nitro however it does both: first it boot loops then after battery pull it doesn't boot at all, hanging at second LG logo.
Then booting into CWM and replacing SystemUI.apk with the original one does not bring phone back to life, in fact restoring whole system partition doesn't do a damn thing. Only restoring full backup brings it back.
So the question is, what the __ is wrong with this phone?
P.S.
I've tried replacing files with Root Explorer as well with adb push. After any .apk files replaced I do chmod 644 and also chown root.root to make sure.
[email protected] said:
Hello.
Since this is the first phone I actually trying learn and modify myself I have no experience with possible side effects and such, however what I've read somewhere else, SystemUI.apk as well as framework-res.apk should NOT cause boot loops or no boot at all.
On Nitro however it does both: first it boot loops then after battery pull it doesn't boot at all, hanging at second LG logo.
Then booting into CWM and replacing SystemUI.apk with the original one does not bring phone back to life, in fact restoring whole system partition doesn't do a damn thing. Only restoring full backup brings it back.
So the question is, what the __ is wrong with this phone?
P.S.
I've tried replacing files with Root Explorer as well with adb push. After any .apk files replaced I do chmod 644 and also chown root.root to make sure.
Click to expand...
Click to collapse
[email protected], I replaced both those files, if im not mistaken, when I applied the percentage battery mod and no carrier mod, but i never went into boot loops or soft brick. What, if i may ask, were you attempting to do replacing those two files?
Ok, here is my observations so far:
It can boot loop if used any android based software to copy files (Root Explorer, ES File Explorer, etc), unless you somehow manage properly chmod and chown the replaced file, otherwise you'll end up with ridiculous ---rw-r-- permissions (0064 - owner can't read write or execute).
In my tests it's pretty much impossible change chmod on replaced SystemUI.apk because of FC on everything.
Next, when something went wrong and SystemUI.apk that was replaced via adb push didn't work resulting in boot animation loop, it can get to the point, that even restoring unmodified file won't bring the system back. Something happening during that loop that destroys/corrupts other stuff in the data partition. When that happens even restoring system partition doesn't work, only restore data or factory reset can help.
As of what I'm doing with SystemUI.apk, I'm trying figure out why the space in the taskbar where clock is, is not dynamic, when you change to 24H mode it wastes so much space. I already tried use the same data from SU640 rom, it didn't change a thing.
And also trying get the CRT ON effect, which will be a beautiful with already implemented CRT OFF
[email protected] said:
Ok, here is my observations so far:
It can boot loop if used any android based software to copy files (Root Explorer, ES File Explorer, etc), unless you somehow manage properly chmod and chown the replaced file, otherwise you'll end up with ridiculous ---rw-r-- permissions (0064 - owner can't read write or execute).
In my tests it's pretty much impossible change chmod on replaced SystemUI.apk because of FC on everything.
Next, when something went wrong and SystemUI.apk that was replaced via adb push didn't work resulting in boot animation loop, it can get to the point, that even restoring unmodified file won't bring the system back. Something happening during that loop that destroys/corrupts other stuff in the data partition. When that happens even restoring system partition doesn't work, only restore data or factory reset can help.
As of what I'm doing with SystemUI.apk, I'm trying figure out why the space in the taskbar where clock is, is not dynamic, when you change to 24H mode it wastes so much space. I already tried use the same data from SU640 rom, it didn't change a thing.
And also trying get the CRT ON effect, which will be a beautiful with already implemented CRT OFF
Click to expand...
Click to collapse
LOL! Now I remember you were the one so anal about that extra space by the clock when you convert to 24h setup haha.
Also, what do you mean get the CRT ON effect? I dont understand what that is
Okay, maybe I'm missing something, but I've been replacing framework-res.apk and SystemUI.apk more than once a day on average every day, and have never had a problem while using root explorer with any bootloops/not booting, etc. You should not have any problems at all changing SystemUI.apk or framework-res.apk as long as you are properly changing their permissions after you have put them in /system/ but BEFORE you have put them in /system/app and /system/framework, respectively. If you are trying to change permissions "after the file has been replaced" that's too late. It's probably corrupt. Must be changed before.
itiskonrad said:
Okay, maybe I'm missing something, but I've been replacing framework-res.apk and SystemUI.apk more than once a day on average every day, and have never had a problem while using root explorer with any bootloops/not booting, etc. You should not have any problems at all changing SystemUI.apk or framework-res.apk as long as you are properly changing their permissions after you have put them in /system/ but BEFORE you have put them in /system/app and /system/framework, respectively. If you are trying to change permissions "after the file has been replaced" that's too late. It's probably corrupt. Must be changed before.
Click to expand...
Click to collapse
You can't change permissions on the file that is not there yet.
The bootloops I'm experiencing is when for example I decompile SystemUI.apk, don't change anything and recompile it back. It worked before but not anymore, and I yet to figure out why. Using apktool v1.4.3
All I could think of is this started happening after I attempted install xUltimate-v2.3.3 to deodex files. It's probably just coincidence though...cause I also tried do recompilling on fresh virtual windows on just unbricked phone files.
It's weird.
[email protected] said:
You can't change permissions on the file that is not there yet.
Click to expand...
Click to collapse
You put the file in /system/ so it IS there. Then you change the permissions. Now that the file has correct permissions, you put it in /system/app or /system/framework and let it overwrite the original, so the INSTANT it replaces the original one it already has the correct permissions. You HAVE to put it into /system/, otherwise you can't change to those permissions, but you need to do it before you overwrite the originals.
Nice, I never thought of that. Thanks!
LG optimus LTE Won't turn on after install CWM
hi, my lg optimus LTE won't turn of after i try to install CWM and try to boot it. Phone is dead now and every time i try turn it on, only the 3 touch button is flashing for couples seconds and went off. Any one can help?? When i try plug it it in the computer it only recognize it as QHUSB_LG (can't get the correct name, don't have my PC with me). PLease help!!
Remove battery, put it back in, then plug the phone into wall charger. Let it charge.
yea i did all that, still only the touch screen button is flashing. Gonna try a different battery and see what happen. Just got this phone less than 2 weeks. Let hope it is a better problem.
[email protected] said:
Nice, I never thought of that. Thanks!
Click to expand...
Click to collapse
[email protected], I made the same mistake but with the framework-res.apk and now my phone is stuck in a bootloop. Were you able to fix the permissions for the file? Or did you have to do a factory reset?
Thanks
Yes, but I had original file at the same directory just renamed and also I had to re-do root while it was boot looping, sometimes I had to repeat the root process 50 times before it succeeded, like killing half a day.