Hide Battery Status - Droid Incredible Android Development

is there a way to hide the android battery status or display the % on it? there are plenty of apps that show % but its kinda redundant to have both displaying on the task bar.
i am runing rooted stock rom. any ideas are apreciated, thanks

You can do both with CyanogenMod. Or you can just replace the images in framework-res.apk

Here is a red round battery with percentages:

thanks everyone
thank you, i just deleted the images from framework-res and installed a battery indicator from market. so now i have 1 battery with correct %. too bad i cant move it to the right

dkhait said:
thank you, i just deleted the images from framework-res and installed a battery indicator from market. so now i have 1 battery with correct %. too bad i cant move it to the right
Click to expand...
Click to collapse
How do you do this? Do you copy the original framework-res.apk to PC and then open and remove the battery pictures then move the modified framework-res.apk back to the device and install? I tried this but the apk wont install.

nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
How do you install this file? I tried installing it from clockwork mod recovery, but it didn't take.

Asterdroid said:
How do you install this file? I tried installing it from clockwork mod recovery, but it didn't take.
Click to expand...
Click to collapse
you cant install that file. you have to pull framework-res.apk from the /system/framework. then open it with 7zip and overwrite the exiting images with those. then push it back into the phone.
adb pull /system/framework/framework-res.apk
then after injecting new images
adb push framework-res.apk /system/framework/

dkhait said:
you cant install that file. you have to pull framework-res.apk from the /system/framework. then open it with 7zip and overwrite the exiting images with those. then push it back into the phone.
adb pull /system/framework/framework-res.apk
then after injecting new images
adb push framework-res.apk /system/framework/
Click to expand...
Click to collapse
Worked like a charm. Thanks!
Any idea where I can get my hands on red-themed 3g/location/clock/wifi/gps/alarm etc. notification icons?

I can't get the file to push. I am connected via USB with USB debugging on in charge only mode. At CMD prompt I can adb shell and su.
adb push framework-res.apk /system/framework/
gives error adb: not found
I have edited the file by removing some png and then saving it back to the sdk root and the sdk/tools folders.
If I get this to push do you have to then install the apk from the device?

wpbear said:
do you have to then install the apk from the device?
Click to expand...
Click to collapse
-Install 7zip (just google it)
-Reboot phone into recovery.
-Connect USB cable
-Go into Partitions menu in recovery
-Mount /System
-Open your command prompt on your PC
-Change the directory to wherever your sdk/tools are located
-type the following command line: adb pull /system/framework/framework-res.apk
Now the file is in your sdk/tools folder
-Right click on framework-res.apk and open with 7zip
-Copy the files from the round battery zip folder to the corresponding folder with the 7zip archive. They will automatically overwrite
-Exit 7zip
-Back in the command prompt type the following command line: adb push framework-res.apk /system/framework/
-On your phone, unmount /system, then back out of the partitions menu and reboot your phone.
Should be all set!

wpbear said:
I can't get the file to push. I am connected via USB with USB debugging on in charge only mode. At CMD prompt I can adb shell and su.
adb push framework-res.apk /system/framework/
gives error adb: not found
If I get this to push do you have to then install the apk from the device?
Click to expand...
Click to collapse
I think you need to mount the system folder in the partitions menu of recovery. My instructions are one post up.

Thanks got it. I switched back to the orignal apk though. I wanted the status hidden, and while deleting the png worked, it still leaves a blank space instead of moving the icons over so it doens't look good. Thanks for the help.

nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
I really like this icon, but is there any way to use this without the percentages in the middle? It makes it look more cluttered, and it's not very useful as they only change between 100, 80, 60, etc.
So is there any way to either make them more accurate, or remove them completely? I really like this indicator otherwise, more neat-looking than the one that comes with the jonnybueno theme (which rocks otherwise!)
Thanks all.

I made a white round battery meter if you don't care for the red.

Why can't this be packaged up into a zip for us to just go into recovery and clockwork and install zip. Don't really understand why we have to go through all the steps of adb to get this to work. So if possible could someone please put it all together to make it easier to use. Thanks

wpbear said:
How do you do this? Do you copy the original framework-res.apk to PC and then open and remove the battery pictures then move the modified framework-res.apk back to the device and install? I tried this but the apk wont install.
Click to expand...
Click to collapse
you cant install it, you have to overwrite it in recovery mode.
adb pull /system/framework/framework-res.apk
modify
then
adb push framework-res.apk /system/framework/

corywf said:
I made a white round battery meter if you don't care for the red.
Click to expand...
Click to collapse
Is there one for blue please?

What color blue do you want? Just regular blue?

WingHater said:
Why can't this be packaged up into a zip for us to just go into recovery and clockwork and install zip. Don't really understand why we have to go through all the steps of adb to get this to work. So if possible could someone please put it all together to make it easier to use. Thanks
Click to expand...
Click to collapse
It probably could be packaged, but it is a pretty simple change so I doubt anyone would go through the trouble.
Do not fear ADB. Follow the steps. It is as easy as 1. 2. 3... 4567.

nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
Is there anyway to do this so it is like the old days where a zip could be installed through clockwork recovery? I hate doing anything through ABD half the time my phone is not recognized?

Related

Stripping parts of a theme

How would I strip just the battery icon(s) used in a particular theme? I haven't been successful with my research on how to do so. Thanks in adavnce.
Just extract framework-res.apk in framework folder.
Then look in /res/drawable
d750 said:
Just extract framework-res.apk in framework folder.
Click to expand...
Click to collapse
I just tried to do this and replaced the battery icons in the ROM.zip file I had, then tried to use a autosign.bat to resign the ROM.zip file, tried to reflash, and ended up hanging my phone at the boot screen + having to do a nandroid restore.
Would you happen to know the correct process for replacing JUST the battery icons on the phone itself using the framework-res.apk?
something like adb push /system/framework-res.apk?
Neejay said:
I just tried to do this and replaced the battery icons in the ROM.zip file I had, then tried to use a autosign.bat to resign the ROM.zip file, tried to reflash, and ended up hanging my phone at the boot screen + having to do a nandroid restore.
Would you happen to know the correct process for replacing JUST the battery icons on the phone itself using the framework-res.apk?
something like adb push /system/framework-res.apk?
Click to expand...
Click to collapse
I would make a metamorph, there simple to do and will get what you want done
I ended up just changing the apk to zip, replacing the .png files, changing the extension back to apk, and just using adb to copy the framework-res.apk back to the phone.
If you want i make it for you send me framework-res.apk and battery icons.
Where would you find the keyboards so I can get a different one. The one I have is very hard on my eyes...

[MOD] Stock lockscreen

Ok i managed to get the stock lockscreen if you all want to use it.
There is a possibility that the file i signed has a different signature, but i dont think it will.
Remember make a backup! always.
If your phone gets messed up it is not my fault.
I have warned you, so here you are. EDIT: Unzip the file then push the one inside of the zip.
put the file i uploaded in /system/framework ............. let me know what you think!
Thank to : Ateisti for giving the info on how to modify it.
If you want to go back to your old lockscreen download the enable_glass_lock.zip, unzip it, and push the enable_glass_lock to /data/local
If your signature is different it will get stuck on the samsung, you can then restore your backup.
and if you want it then run these instructions:
You need to use adb not rootexplorer
DO this while in cwm recovery
1. Rename the file you downloaded to patched.odex
2. adb push it to your /system/framework
3. adb shell then cd into /system/framework
4. run this
dd if=android.policy.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
5. exit shell
6. adb pull the android.policy.odex for backup
7. adb shell cd /system/framework
8. rm android.policy.odex
9. mv patched.odex android.policy.odex
reboot and you should have stock lockscreen.
You are the ****ing man!
How well does this work with the alarm silencing and incoming calls? Thanks!!!
EDIT: Never mind...testing it out.
wasupwithuman said:
Ok i managed to get the stock lockscreen if you all want to use it.
There is a possibility that the file i signed has a different signature, but i dont think it will.
Remember make a backup! always.
If your phone gets messed up it is not my fault.
I have warned you, so here you are.
put the file i uploaded in /system/framework ............. let me know what you think!
Thank to : Ateisti for giving the info on how to modify it.
Click to expand...
Click to collapse
I'm a little confused... do we need to just change the file to android.policy.jar or leave it the name that it is and just move it to /system/framework
thanks!
taypotts said:
I'm a little confused... do we need to just change the file to android.policy.jar or leave it the name that it is and just move it to /system/framework
thanks!
Click to expand...
Click to collapse
Keep the name and adb push it to /system/framework (you might want to backup your old one) you can backup by "adb pull /system/framework/android.policy.jar"
You can also install it using root explorer if you want.
wasupwithuman said:
Keep the name and adb push it to /system/framework (you might want to backup your old one) you can backup by "adb pull /system/framework/android.policy.jar"
You can also install it using root explorer if you want.
Click to expand...
Click to collapse
See I'm still confused, cause there is no file named android.policy (samsung fascinate) in the folder "framework" but there is android.policy.jar
Should I unzip the downloaded file then push that?
taypotts said:
See I'm still confused, cause there is no file named android.policy (samsung fascinate) in the folder "framework" but there is android.policy.jar
Should I unzip the downloaded file then push that?
Click to expand...
Click to collapse
yep, unzip first...
Quick question, does this take away the option for the other two lockscreens, ie glass and puzzle? If not I can throw this in my theme port (with your permission of course) and also theme this lockscreen as well.
frostman89 said:
Quick question, does this take away the option for the other two lockscreens, ie glass and puzzle? If not I can throw this in my theme port (with your permission of course) and also theme this lockscreen as well.
Click to expand...
Click to collapse
Your more then welcome to use it, but It does not give an option. So you would have to create a seperate theme for people who would just want the stock lockscreen.
I've tried installing this twice with root explorer, and both times my phone gets stuck on the Samsung logo when I reboot.
To install the file, I unzip the download and then place the .odex file in /system/framework. Any ideas on what I'm doing wrong?
Sent from my Fascinate using XDA App
tiger4life said:
I've tried installing this twice with root explorer, and both times my phone gets stuck on the Samsung logo when I reboot.
To install the file, I unzip the download and then place the .odex file in /system/framework. Any ideas on what I'm doing wrong?
Sent from my Fascinate using XDA App
Click to expand...
Click to collapse
your signature isnt the same as my file. you can try to do this but you need to use adb not rootexplorer
DO this while in cwm recovery
1. Rename the file you downloaded to patched.odex
2. adb push it to your /system/framework
3. adb shell then cd into /system/framework
4. run this
dd if=android.policy.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
5. exit shell
6. adb pull the android.policy.odex for backup
7. adb shell cd /system/framework
8. rm android.policy.odex
9. mv patched.odex android.policy.odex
reboot and you should have stock lockscreen.
hey man, i'm new to all this i've done all that u said, but what is the command to pull the android.policy.odex from the phone? I think i'm putting the wrong directory in the command because I keep getting "remote object '......android.policy.odex' does not exist" thanks for this, btw i really dislike that puzzle piece unlock bs.
nevermind, I wasn't in cwm when doing it the first time. Thanks again.
I like this, can't wait to try it.
wasupwithuman said:
your signature isnt the same as my file. you can try to do this but you need to use adb not rootexplorer
DO this while in cwm recovery
1. Rename the file you downloaded to patched.odex
2. adb push it to your /system/framework
3. adb shell then cd into /system/framework
4. run this
dd if=android.policy.odex of=patched.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
5. exit shell
6. adb pull the android.policy.odex for backup
7. adb shell cd /system/framework
8. rm android.policy.odex
9. mv patched.odex android.policy.odex
reboot and you should have stock lockscreen.
Click to expand...
Click to collapse
That did the trick. Thanks for the help!
Sweet, put that file in the xultimate and deodex'ed and got it working.. Thanks
Followed step by step from adb, and got stuck with the Samsung screen.
DUNC4N said:
Followed step by step from adb, and got stuck with the Samsung screen.
Click to expand...
Click to collapse
hmm... you used the file i attached and did eveything in adb? try again, i'd like to help more, but if you did everything step by idk...
You did it in cwm recovery right?
Thanks for the reply.
Yes I did it in clockwork recovery. I may of had some confusion on the second to last step. I'll try again when I get home.
Two questions: Is the silent slide functional, and are the last two steps verbatim.
Thanks again.
Sent from my SCH-I500 using XDA App
DUNC4N said:
Thanks for the reply.
Yes I did it in clockwork recovery. I may of had some confusion on the second to last step. I'll try again when I get home.
Two questions: Is the silent slide functional, and are the last two steps verbatim.
Thanks again.
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
not sure about the silent slide....i don't use this lockscreen. i just made it for you guys... and yes follow the last two steps exactly how i have them.
Silent mode is functional.

ADB help...

OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Demented71 said:
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
Click to expand...
Click to collapse
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
bobbylx said:
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
Click to expand...
Click to collapse
My backed up framework file was on my PC. The first one I was trying to get to was on my phone, in a folder called Battery Mod, which I could not get into because ADB kept saying wrong substitution or something?
Either way, I was able to get it done, so I learned something new again.
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Click to expand...
Click to collapse
That makes sense, it may not let you Push to the file system while it's in use.
As for 2 names, do you mean from a windows command box or in the android command line. Windows you just type it as is. Linux is a little more picky, I usually try to remove spaces from directory names so I don't run into any problems with that. In linux a backslash works, ie, cd /sdcard/Battery\ Mod
Not sure if it will work on our phones.

[Q] Pushing Framework-res.apk

I have been trying to edit my framework-res.apk file to change some icons but I keep running into problems. Without even editing framework-res.apk, just pulling it down to my computer then pushing it back up is causing me to go into a boot loop. I assume I am missing something simple but all the guides I have found say to do pretty much the same thing. Here is what I am doing
boot to clockwork recovery
mount system from recovery
adb remount
adb pull /system/framework/framework-res.apk
adb push framework-res.apk /system/framework
reboot
I don't edit the file at all, just getting it on my windows 7 machine and then pushing it back to the phone and that is causing it to boot loop. Any idea what I am doing wrong? oh I am using CM6 rc1
I pushed yesterday successfully just like that:
- boot to recovery
- mount system
adb push framework-res.apk /system/framework/framework-res.apk
adb reboot
You can't push framework-res while the system is working.
That's why you have to do it like rori~ posted above me.
Jack_R1 said:
You can't push framework-res while the system is working.
That's why you have to do it like rori~ posted above me.
Click to expand...
Click to collapse
I was doing it all from recovery, but it doesn't seem to make a difference.
Did you check the file you're getting with pull, before pushing it back?
Is it the correct size?
Yea, I checked the md5 as well as the size and it matches the original even after I have pushed it back up.
I would suggest making a metamorph. Thats what i did for icon editing. It works great.
Check here for info. http://forum.xda-developers.com/showthread.php?t=654858
I finally got it. Not entirely sure why the framework-res.apk I had didn't work but I do know it was one I generated from the UOT kitchen. I went back to the one that was included in the original rom zip, and that one I can upload, edit and do whatever with.
Anyways thanks for the replys.
I would suggest making a metamorph. Thats what i did for icon editing. It works great.
Check here for info.
Click to expand...
Click to collapse
I plan on doing that eventually but this seems like a lot less work for just replacing some notification icons, and at this point I am still just getting my feet wet in this whole customizing my phone process.

Battery icon request for KH3

Is it possible to make this battery icon http://forum.xda-developers.com/showthread.php?t=977983 work with KH3?! Thanks..
chasesavestheday said:
Is it possible to make this battery icon http://forum.xda-developers.com/showthread.php?t=977983 work with KH3?! Thanks..
Click to expand...
Click to collapse
You can do a bunch of battery icons in the UOT kitchen
There are a couple for KH3 in this thread
http://forum.xda-developers.com/showthread.php?t=1248826
Yes I just created one at uot. I really liked the one on the OP though. Thanks for your efforts!
I have pulled all of the battery.png files from the package in the OP. Can someone put these into something that will work with KH3. I have it a shot and could not resign the apk. Then ran into other issues.
Shall I upload the icons?
chasesavestheday said:
I have pulled all of the battery.png files from the package in the OP. Can someone put these into something that will work with KH3. I have it a shot and could not resign the apk. Then ran into other issues.
Shall I upload the icons?
Click to expand...
Click to collapse
There's an easier way, assuming you have the android SDK and ADB.
First, reboot into CWM recovery (it'll save you any troubles of root permissions).
Type this command into adb:
adb pull /system/framework/framework-res.apk
Then go into your SDK folder where adb is stored (usually platform-tools) and make a copy of that apk file to somewhere else. That will be your safe backup.
Then get 7zip and right-click on the apk sitting in the directory with adb, and select "open archive". Navigate to /res/drawable-hdpi and copy all the files you extracted into this directory (overwriting where necessary).
Once you've done that, close the archive. Assuming it's still in the same directory as adb, type:
adb push /system/framework/framework-res.apk framework-res.apk
(Yes, it's typed twice on purpose.)
Then just reboot. If all goes well, your battery should show up. If it messes up, just move your backup to the adb folder, reboot to recovery, and reissue the adb push command above.
chasesavestheday said:
I have pulled all of the battery.png files from the package in the OP. Can someone put these into something that will work with KH3. I have it a shot and could not resign the apk. Then ran into other issues.
Shall I upload the icons?
Click to expand...
Click to collapse
you dont need to sign system apks

Categories

Resources