yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] the1wingedangel:
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

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

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

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
[G2 and Desire Z Android Development] the1wingedangel:
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.
[G2 and Desire Z Android Development] the orange bandit:
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).
[G2 and Desire Z Android Development] xl DIGITAL lx:
Thanks for this!
[G2 and Desire Z Android Development] android602:
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
[G2 and Desire Z Android Development] the1wingedangel:
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
[G2 and Desire Z Android Development] felixk87:
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
[G2 and Desire Z Android Development] the1wingedangel:
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://xdaforums.com/showthread.php?t=795222

http://xdaforums.com/showthread.php?t=723761]

They may help you.
[G2 and Desire Z Android Development] rmk40:
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).
[G2 and Desire Z Android Development] fox-orian:
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?
[G2 and Desire Z Android Development] ddotpatel:
You could possibly try pushing the lockscreen apk from SuperVillainZ.

NANDROID 1ST THOUGH!!!!!
[G2 and Desire Z Android Development] the1wingedangel:
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?
[G2 and Desire Z Android Development] arich:
Can this be modified to restore ".com/www" to G2's?
[G2 and Desire Z Android Development] fox-orian:
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.
[G2 and Desire Z Android Development] fox-orian:
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.
[G2 and Desire Z Android Development] Snap Jackel Pop:
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.
[G2 and Desire Z Android Development] the1wingedangel:
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.

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?

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!
[G2 and Desire Z Android Development] smoochiezz24:
I really cant emphasise this enough!

Sent from my sweet G2 :)
[G2 and Desire Z Android Development] smoochiezz24:
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 :)
[G2 and Desire Z Android Development] blast0id:
by chance, did anyone try this? if not, I will try it in a few...
[G2 and Desire Z Android Development] blast0id:
can't seem to find a launcher.apk... what else might it be named, or is the lockscreen part of the framework or deeper parts of the OS? pardon the n00b question, but I'd really like to know if this is possible and am willing to be the test rat... lol
[G2 and Desire Z Android Development] smoochiezz24:
I deleted com.launcher.HTC in system/app and now rosie is gone. I think that's what yr looking for? Dunno about the framework talk tho, hope I've helped a ill bit if u didnt already find yr answer

Sent from sweet G2 :)
[Vibrant Q&A, Help & Troubleshooting] synaesthetic:
Slight oddity with my Vibrant.

Occasionally when I charge the phone, it will show that it is completely charged--battery gauge will show full, About Phone will show 100% charge, all of that good stuff. When I unplug the phone, my battery gauge will instantly drop to 97%.

Additionally, for the entire duration of this particular charge, my battery life will be total crap. And by total crap I mean draining 1% in five minutes with the screen off, going from 97% to 78% in two hours with the only use being a quick check of bus schedules.

However, if I notice this 100-to-97 instant drop and plug the phone back in until it charges to 100% again, it will not display any of this odd behavior and battery life is awesome as usual, with standby power consumption at 1-2% an hour.

So... what gives?

ROM: Bionix Final R1

Kernel: JAC XMOD OC/UV/Voodoo 1.1
[Vibrant Q&A, Help & Troubleshooting] xriderx66:
Dont worry about when you unplug it, its just a inaccurate reading.

It happened to me this morning with Axura, and my battery showed 97%, but the 3% was given back without me knowing, does your phone stay at the 97 for a longer time? it should, and also some people say do a battery calibration.

its like

charge till' 100

drain it to 0

charge till 100

and then on clockwork recovery go to advanced and do wipe battery stats or something

^ im not sure someone correct me if i'm wrong about the calibration.
[Vibrant Q&A, Help & Troubleshooting] synaesthetic:
I conditioned this battery after flashing the ROM last month. You have the directions mixed up... should charge to full, boot in clockworkmod, delete battery stats, reboot, drain to 0, charge back to full. :)

And no, it doesn't stay on 97 for longer than it should; as I stated in the OP, if it does the 100-97 drop, the battery life is significantly worse than when it acts normally.
[Vibrant Q&A, Help & Troubleshooting] Dammit2Hell:
I get the same thing. Actually at the moment I am trying to unplug... see the 97% and plug it back in, it will then say fully charged, I unplug it and it says 98%. I am going to repeat this until it actually says fully charged when I unplug it and then reboot to recovery and wipe the stats.

What I am confused about when it comes to reconditioning and wiping is even when the phone says "fully charged" when I reboot to recovery and wipe, once the phone has rebooted it says it's charging again. Should I leave it in until it says fully charged or unplug it after it boots?
[Vibrant Q&A, Help & Troubleshooting] synaesthetic:
It seems to do the 100-97 thing primarily when charging via USB. Almost every time I've seen this happen was when it was charging off my laptop.

I've noticed also that when it does this, the battery icon (I use Segmented Battery Mod) shows "100" solid without a flashing plug icon. If I unplug it, it will drop to 97. If I plug it back in and it actually charges completely, it will flash between the plug icon and "FULL."
[Vibrant Q&A, Help & Troubleshooting] Dammit2Hell:
hmm...mine does it no matter how I charge it.
[Vibrant Q&A, Help & Troubleshooting] xriderx66:
Mine USED to do thar with Nero beta 3 now on Axura IRS dine I've been using it for 20 minutes and still at 100%
[Vibrant Q&A, Help & Troubleshooting] synaesthetic:
Updated to Nero v3 and now I have the problem constantly. It will always claim 100% charge when it isn't actually fully charged.
[Vibrant Q&A, Help & Troubleshooting] MV10:
If you've flashed the ROM, do the "recondition" -- or if you have a stand-alone (external) charger, just charge it full, then put in the new battery and wipe your stats. (The recondition thing -- charging, draining, then charging -- is just a theory that on the second full charge you'll get "more" charge in there after a full drain -- I doubt this is true, especially if your battery stats are hosed to begin with.)

As for the dip after you unplug it -- this is just the battery manager varying the maximum charge level to optimize battery life. Laptops do this all the time -- even when they're plugged in, they'll let the machine run on battery power here and there. For a new battery it might only let it dip to 97%. On one of my laptops it has decided dipping way down to 86% is optimal. Just depends on the battery health, usage patterns, etc.
[Vibrant Q&A, Help & Troubleshooting] synaesthetic:
Battery life was pretty bad when I first flashed Nero, but now that I've wiped battery stats, the battery life seems much better. It still does the 100-97/98 thing, so I'm guessing it means my battery is still pretty good despite all the heavy use!

The JL5 modem seems to have worse battery life than JK6 (only very slightly though) but it doesn't get stuck on EDGE like JK6 did... net gain in my opinion. :)
[G Tablet General] popezaphod:
I have had no luck with wallpaper on the G Tablet.

All I want is to have a 1024x600 image and have that be my wallpaper, and I don't want it to change if I rotate to portrait mode. (I mainly use my tablet in portrait mode.)

Using the built-in settings gives me a zoomed image when I go from landscape to portrait.

Using Multipicture Live Wallpaper I either get a zoomed screen or the image centered with black space and a reflection around it.

ALL I want to do is tell this thing, "Here is a 1024x600 image. Make this the wallpaper and DON'T change a thing when I rotate the tablet!" Is this possible?

-=Sent from my ViewSonic G Tablet (VEGAn) using Tapatalk=-
[G Tablet General] rothnic:
Try Wallpaper Set and Save, it works for me.
[G Tablet General] popezaphod:
Wallpaper still rotates when I rotate tablet. And it did this weird thing where it hid my launcher and I had to put it to sleep and wake it up to get my icons back.

-=Sent from my ViewSonic G Tablet (VEGAn) using Tapatalk=-
[EVO 4G Q&A, Help & Troubleshooting] futuristicstyles:
Is there a guide to make them I've been searching and can't find. I have the splash screens down.
[EVO 4G Q&A, Help & Troubleshooting] nuggyunlimited:
I'm looking for a guide also.

Swyped from Eva running Myn's RLS4!
[EVO 4G Q&A, Help & Troubleshooting] caguirr4:
this is a forum on how to compile the files on a mytouch 3g but basically the process is the same for any phone. just change the size of the gif files.

http://xdaforums.com/showthread.php?t=708316

and a boot animation is just a series of .gif files one after another to create animation. just like drawing pictures in a flip book and flipping the pages real fast.

you should grab a boot animation of the forum and tear into it to see what you find.
[EVO 4G Q&A, Help & Troubleshooting] lovethyEVO:
pngs not gifs. Use gifs and the boot animation quality is going to go downhill quick.

How to make android bootanimations
[EVO 4G Q&A, Help & Troubleshooting] caguirr4:
you are correct sir. thank you for that correction. i was thinking .png but typed .gif. had a brain fart.lol
[EVO 4G Q&A, Help & Troubleshooting] futuristicstyles:
Thanks Both of you.
[HTC Aria General] klyon:
Is anyone else experiencing stutter with the camcorder? I get it once in a while - often enough to be annoying. It might be related to light conditions; not sure.
[HTC Aria General] kaschenberg:
Doesn't surprise me, the photo sensor on this device blows harder than a train whistle.
[HTC Aria General] CallMeAria:
I was getting that too. I had to switch my zoom mode to manual zoom. That seemed to fix it. Took a little getting used to having to touch the screen to zoom but at least now I can record video with it skipping like that.
[HTC Aria General] zervic:
Another thing that causes the phone to do this is auto focus which might be what poster above me meant
[HTC Aria General] klyon:
Thanks for the replies. So it's just preferable to turn off the auto focus, at least for video? (too bad there aren't independent settings for photo and video...)
[HTC Aria General] CallMeAria:
Yea I meant auto focus, not auto zoom. I had to switch to manual focus where you touch the screen to zoom.
[Epic 4G Themes] MysteryEmotionz:
so of you have notice and have been asking about this. i decided i would open up my vault and let the secret out for all.

this is brought to you by myself and the rest of ACS.

Me and dreamsforgoten figured this one out together.

Disclaimer: do not decompile a custom framework and expect it to recompile as it will not work and you'll end up with a list of errors. You can not hold me our anyone at ACS for bricking your phone or any damage that may have occurred by doing this

this how-to is written as if you have a half a brain and know what your doing. if you dont know what your doing please read the themeing how to's written by dreamsforgotten.

1. decompile framework-res.apk

2. open up the values folder

3. locate strings.xml and open with notepad++

4. ctrl+f and search for Sprint. it should be under zz_roamingguard_1 or something simliar. make sure just to edit the roaming guard_1 only

5. rename to w/e you would like. this changes the pull down branding, the aosp lock screen branding, and the network in settings

6.recompile apk. if your building a theme make your other xml edits while decompiled

If you use this mod in your custom themes or roms please give me credit

if you feel as you have benefited from this in anyway please buy me a beer in my signature to keep me motivated on finding more tricks, hacks and themes

Not sure if this will work on other phones or carries.
[Epic 4G Themes] decalex:
Thanks for posting this. Is there a way to tell if a framework-res is modded already? Or, more specifically, if trying this on dk28, where's the best place to get a "pure" framework to start with?

also, do you use a specific level of compression when compiling your edited framework?

Thk u.

Sent from the future.
[Epic 4G Themes] MysteryEmotionz:
When I mean a modded framework-res.apk it's one that comes from a theme. They don't compile nicely with the new images added.

I'm personally using the dk28 release from ACS as my framework to modify.

A good way to test is as soon as you de compile the framework re compile it. If it re compiles with no errors you then you can go ahead and use that framework.

I haven't changed my compression when compiling any of my work
[Epic 4G Themes] dreamsforgotten:
I know in apk manager 4.9 it saves the file as unsigned_filename.apk but when you chose yes to carry over the signature, it is carried over into the new file in tact. You can skip the last step of resigning the apk after compiling if you choose yes as a system file when you compile. it throws you off being named unsigned but if you open it the meta inf folder is in there.
[Epic 4G Themes] humdrum2009:
Ok

Maybe i am in wrong thread but here goes.

I installed acs dk28 fro-yo version when it was first released

I have an app i use called privacy star,it no longer will let me use the app

I called privacy star they say my carrier is iroot the original branding acs used for the ROM since iroot isn't a phone company i cannot pay for the app at all.

tell me why, and any suggestions how i can change my carrier back to sprint branding, i have a build prop if anyone can help me.

about phone says sprint as my carrier and i didnt see anything odd in buildprop

http://pastebin.com/92hCixde
[Epic 4G Themes] amosher13:
you may basically have to reverse the instructions in the OP. do you understand the instructions? browse the how to theme guides by dreams, you wouldnt be doing all the editing of pngs and compiling in eclipse, but you will need apk manager. basically decompile your framework-res.apk, go to values/strings.xml and change iroot back to Sprint in Notepad++, recompile. you could either drop it in /system/framework with root explorer or replace in the ROM zip and reflash.
[Epic 4G Themes] humdrum2009:
Ill get on it right now thanks
[Epic 4G Themes] J31Rob:
Nice post.
[Epic 4G Themes] decalex:
Hmm.. I'm curious If that works for you, since you're decompiling and recompiling a "modified" framework.

Sent from the future.
[Epic 4G Themes] thomasskull666:
Unfortunadamente, it won't. You can however, take a stock framework-res.apk and copy over the drawable-hdpi folder. But you will lose the battery % mod as well, so make sure to change the battery images back to stock before you copy it.

Sent from my Xtremely Syndicated and Emotionless Epic 4G
[Epic 4G Themes] Whosdaman:
Thread cleaned. If something like this happens again, infractions will be handed out to everyone involved.

If you have a member that is trolling/flamming, just ignore them and report the post. I will take care of it.

By saying something to them you are going to get yourself in trouble and start a large fight in a thread that does not need it.
[Epic 4G Themes] MysteryEmotionz:
you can reverse the order but there will be extra steps involved. when your ready ro re compile you would have to add in all the stock .9.pngs when re compiling.
[Epic 4G Themes] decalex:
Thx for your help guys :) I'll edit this post with results.