at first, it would be nice if any mod can modify the title to: [HOWTO] 1% battery mod on gingerbread and delete all following posts.
further i'm sorry for my poor english - hopefully everyone here can follow my steps!
the hard thing on changing battery icons on gingerbread is, that there are only 7 steps: 0, 10, 20, 40, 60, 80 and 100... that means you have to edit or replace two xml files (more later).
IMPORTANT: please make a backup of your rom! i'm not responsible if your device won't boot after modding! also it is possible that your google/facebook etc. accounts are deleted after flashing back your modded framework. but you can easily readd them again!
WHAT YOU NEED:
apk manager from here: http://www.multiupload.com/GXW01G6URJ
battery icons or a framework-res.apk with your desired icons
a rooted gingerbread rom
your original framework-res.apk (guide to extract later on)
WHAT YOU GET (IN ATTACHMENT):
stat_sys_xml_dateien.zip (stat_sys_battery.xml and stat_sys_battery_charge.xml with 100 steps)
framework-res.apk (modified by me with circlemod battery (i hope it's okay to use them in here! btw. many thx to devs (was it mdj?) for this icons). THIS FRAMEWORK WAS ONLY TESTED BY ME ON MDJ GINGERBREAD 2.2!!!
screenshot of the circle battery mod on gingerbread
FIRST STEPS:
extract apk manager to a a desired folder and conenct your phone to debug mode
start script.bat and change kompression level to 0 (type 19, afterwards 0)
type in 0 to download framework-res.apk from your phone. it asks for the path, type: /system/framework/framework-res.apk and hit enter
if asked for a name, type framework-res.apk and hit enter and confirm with Y to be your current project
type 9 and hit enter to decompile your framework and wait until it's finished
have a look in the folder "projects" - there will be a folder "framework-res.apk" now.
navigate to the subfolder: res/drawable-hdpi and delete ALL png files with the name stat_sys_battery_X.png and stat_sys_battery_charge_animX.png (while X stands for the according number). do this also with stat_sys_battery_unknown.png and stat_sys_battery_charge_animfull.png (IMPORTANT: delete last two ones only if you have a replacement icon or you will get errors on compiling!!!)
also delete following two xml files in subfolder projects/framework-res.apk/res/drawable: stat_sys_battery_charge.xml and stat_sys_battery.xml
now it gets tricky:
depending on the amount of your custom icons you have on charging, you may have to edit your stat_sys_battery_charge.xml file and delete or add the percentual steps! if you have 100 custom png's for charging animation, you can use the stat_sys_battery_charge.xml i attached (it also includes a stat_sys_battery.xml with 100 steps if you need)
now it's time to paste your modified/downloaded stat_sys_battery_charge.xml and stat_sys_battery.xml into subfolder /res/drawable/ (where you deleted the original of gingerbread before!)
go back to apk manager and type 11 to compile your framework
when it asks "is this a system apk?", type Y for yes. confirm again with Y and let apk manager create a new folder, called "keep". a list of files appears, and after that DON'T CONFIRM!!!
first you have to navigate into this "keep" folder and delete again exactly what you deleted above (stat_sys_battery_X.png, stat_sys_battery_charge_animX.png, stat_sys_battery_unknown.png, stat_sys_battery_charge_animfull.png, stat_sys_battery.xml, stat_sys_battery_charge.xml) and ADDITIONALLY the file resources.arsc
now you can confirm in apk manager to complete the compiling process. as far as i know, these steps with keep folders are needed to include the right id's automatically in public.xml! if any errors occur, feel free to post your log in this thread (see log by typing 21 in apk manager)
flash your new created framework-res.apk by entering 8.
if you didn't anything wrong, you should have your new % battery icons after reboot! as mentioned before, your desktop background maybe messed up and/or your accounts are deleted. you can solve this by just readd accounts and change background again.
Those ID's are hexadecimal numbers (dictated by the 0x prefix), and are sequential:
0 - 17302168
10 - 17302169
100 - 17302170
20 - 17302171
40 - 17302172
60 - 17302173
80 - 17302174
RJackson said:
Those ID's are hexadecimal numbers (dictated by the 0x prefix), and are sequential:
0 - 17302168
10 - 17302169
100 - 17302170
20 - 17302171
40 - 17302172
60 - 17302173
80 - 17302174
Click to expand...
Click to collapse
thx for your explanation! but i found out that it isn't necessary to edit public.xml. on decompiling, it adds automatically the missing lines when png's are listed in stat_sys_battery.xml...
finally i got it working if someone else wants the 1% increments, i can write a little tutorial.
Yea very interested. I can't stand the stock one. I knew how to do all the theming stuff on sd builds using the theme porters. Nand is different though. So please write that up, also will you post your battery mod for gingerbread
HOWTO added in 1st post!
fruchtfliege said:
HOWTO added in 1st post!
Click to expand...
Click to collapse
Thanks for the tutorial. Question though, is this for sd builds or for nand? Or does it not matter?
it is only for nand-builds. on sd-builds it should be similar, but afaik you don't have to adb the framework-res.apk. you should find here a lot of threads about modifying sd-build statusbars, because it is not that hard like on nand builds.
Cool, I'm using nand. Yea through sd builds thing stuff was easy. I couldn't change the compression in the emulator. How were you able to change it? Also is that framework at the bottom the one we use to achieve what the picture looks like?
Background changed and accounts gone as mentioned, but it worked perfectly - well worth it!
How did you change the compression when running the batch file?
Edit: Nevemind im retarded.
When i press the 9 to decompile it it gives me some B.S error Saying could not find C:\place-apk-here-for-modding.... The directory name is invalid. Could someone make this work on JDMS nand build?
Alos when i pull the framework res file from my phone it doesnt show up in "projects" Theres nothing in there. However it does show up in "place-apk-here-for-modding" folder..
Alos when i pull the framework res file from my phone it doesnt show up in "projects" Theres nothing in there. However it does show up in "place-apk-here-for-modding" folder..
Click to expand...
Click to collapse
the adb pulled apk files are stored in "place-apk-here-for-modding" folder, not in projects! a project in this folder will only be created after decompiling an apk!!!
Also is that framework at the bottom the one we use to achieve what the picture looks like?
Click to expand...
Click to collapse
you just get the statusbar at top (in fact only + battery icon). the bottom icons and background are custom with using launcher pro.
Can you think of a certain reason why i keep getting an error when i try to decompile it?
This is the error i get
--------------------------------------------------------------------------
|Wed 01/19/2011 -- 20:11:24.04|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.
1631 KB/s (4121004 bytes in 2.466s)
Could Not Find C:\Users\Matt\Desktop\New folder\place-apk-here-for-modding\../pl
ace-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\Matt\Desktop\New folder\place-apk-here-for-modding\../pl
ace-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
i think you have to install java sdk. without it, the compiling tools are not included, like on jde (i think it's called jde...)
but i'm going to make flashable zips of these files for clockwork mod. only problem is, that i don't know much about linux commands i couldn't get it working. i should start a new thread asking about this.
If you jump on irc you would get your answer in like 5secs. Room is #htc-linux-chat on freenode. Thanks for the suggestion about sdk. That does make sense now that I think about it;p
thank you for the hint. i will ask for help at chat tomorrow. i'm also working on different statusbar colours of gingerbread with original icons. before release i have to get this cwm zip flash thing working!
fruchtfliege said:
at first, it would be nice if any mod can modify the title to: [HOWTO] 1% battery mod on gingerbread and delete all following posts.
Click to expand...
Click to collapse
Just a heads-up mate - you obviously can't delete any posts, but you can change the title. Edit the first post and go into advanced mode to change it.
Good luck with your project
thank you! i have changed the title now.
Hey Fruit Fly, any progress on that cwm zip?
not really. i forgot my hd2 at home (i do theme works at work) and couldn't test the cwm zip files. on sunday evening i can test everything and tell you whats working and what not!
rafpigna from #htc-linux-chat gave me another choice of flashing easy with an adb script (thank you for that). but some users on german android forum told me it's not working. have to bugfix the files first
Yea let me know the outcome;p
i´m trying to change the settings.apk icon.....
so
1) i rename the apk to .zip
2) open the archive
3) replace the original with another .png
4) save the new archive
now comes the strange part,
after saving my archive, i only got half the size of the original archive but it contains exactly the same files (4,4 mb <--> 2 mb)
i did the same way when i changed all folder icons in the arc launcher and it worked without any trouble
--------------
and is there a way to have two icons for the same app?
for example:
settings in app drawer ---> white icon
settings in widget menu ---> black icon
or does android automatically use the same icons for both?
still didn´t solve this problem ;(
tried via root manager and using 7zip under windows....filesize stayed the same but didn´t work.
and when i changed the icon, i couldn´t open the widget menu or go to options --> settings
oh boy....
try this :
1.) do all your customizing with this apk ...
2.) copy AndroidManifest.xml & META-INF (folder) from original settings.apk to your new settings.apk
3.) put in update.zip to flash in CWM, or push to system/app manually, check if permissions are ok (rw-r-r)
this worked for me theming framework-res.apk from FR18b2 ...
without copying AndroidManifest.xml & META-INF (folder) from old to new file, i always had bootloop ...
if it´s still not working, you can try and
1.) decompile with apkmanager or apktool
2.) do your customizing
3.) compile apk
4.) copy AndroidManifest.xml & META-INF (folder) from original settings.apk to your new settings.apk
5.) flash
tried your first hint but it didn´t work......
so, when i try to open the widgets i get this message:
sony ericsson home (process com.sonyericsson.home) gets force closed
maybe it has something to do with that?
i deleted lglauncher.apk and launcher2.apk and replaced it with a modified arc launcher as main launcher
---------------
im thankful for your advises but i have ZERO knowledge and experience in stuff like adb, apktool, scripts and stuff...
i can handle illustrator or photoshop
if it´s not working, i think i have to let my idea go.....
this is my 1st modding so bare with me. ive tried few times today with sending framework to my phone and always ended with bootloop
so i gave up after few reflashes of rom (stock)
here is what i did so far
1. read many pages here and round web
2. pulled framework-res.apk via adb
3. copied my customized pngs to appropriate folders
4. pushed framework back to phone using adb shell...
5. bootloop.... .... ....
im adding my modified framework if any of more capable mods are willing to help
framework-res.zip
framework-res.rar -> rename to framework-res.z01
indycar said:
this is my 1st modding so bare with me. ive tried few times today with sending framework to my phone and always ended with bootloop
so i gave up after few reflashes of rom (stock)
here is what i did so far
1. read many pages here and round web
2. pulled framework-res.apk via adb
3. copied my customized pngs to appropriate folders
4. pushed framework back to phone using adb shell...
5. bootloop.... .... ....
im adding my modified framework if any of more capable mods are willing to help
framework-res.zip
framework-res.rar -> rename to framework-res.z01
Click to expand...
Click to collapse
Here is what you do
1- forget ADB
2- copy framework-res.apk from /framework to the sd card
2- move it from sd card to pc
3-using winrar or 7zip, click on add, and select your new icons ( make sure they are the same dimensions aka width and length)
4- move the app to your sd card
5- now on your phone, move the apk to /system and set permissions
6- move th apk to /system/framework and overwrite the existing apk
Press thanks if I helped
blakstar said:
3-using winrar or 7zip, click on add, and select your new icons ( make sure they are the same dimensions aka width and length)
Press thanks if I helped
Click to expand...
Click to collapse
they are same size i just used different colour instead boring white
will try tomorrow after i get home from work
ok i think i managed to get it work
i made recovery zip and i think it worked
expected more icons to be changed :\
hey guys....
this is my first thread on xda forums. I am posting an apk which makes your settings somewhat similar to ics style. I didn't create it, i just found it on some blog and found it to be really working.
instructions to install:-
step 1- copy the settings.apk file to root/system/app folder in your mini.
step 2- change the permissions to rw-r--r-- which are same like all other apks in that folder.
step 3- restart your phone and enjoy.
note:- i didn't tested it on any other rom. So if something wrong happens to your phone thats not my responsibility.
here are the screenshots
Guys I've been trying to make a modded Oxygen OS 5 bootanimation (from red to blue) working .
What I did was:
- Extract bootanimation.zip from stock rom
- Extract folders "part0", "part1" and "part2"
- Use PS to batch process all PNGs at once
- Replace said folders of the original zip with the processed ones.
My BA won't work (it only shows splashscreen during the whole boot process) and I can't manage to understand why.
Do PNGs have to be in a special format in order to work in a BA?
I've attached both bootanimations (original and modded). If anyone has an idea that I can try out please let me know.
Thank you!
Did you give the file the proper r/w permissions?
thes3usa said:
Did you give the file the proper r/w permissions?
Click to expand...
Click to collapse
I'll give it a shot, thanks