Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mugendon
Old
(Last edited by mugendon; 15th December 2012 at 05:57 PM.)
#11  
mugendon's Avatar
Member - OP
Thanks Meter 75
Posts: 64
Join Date: Feb 2011
Quote:
Originally Posted by nebmer0 View Post
Can you please explain how you did it,so that I can do it for other roms.
With udk rom yours did not work.
Thanks
Yes of course:

1. Decompile your systemUI.apk (use apk multitool for example, install framework-res.apk with setup first)
2. Replace res/drawable/stat_sys_battery.xml and stat_sys_battery_charge.xml with the ones from my customized systemUI.apk (decompile this also)
3. Replace all res/drawable-xdhpi/stat_sys_battery_xx and stat_sys_battery_charge_animxx with your favorite battery images.
4. Recompile apk
5. Use one of my flashable zips and overwrite the systemUI.apk inside with your own customized apk
6. Flash it
7. done

After that you can switch the battery images just by replacing them in the apk with a tool like 7zip and dont have to recompile again.
The Following 4 Users Say Thank You to mugendon For This Useful Post: [ Click to Expand ]
 
nebmer0
Old
#12  
Junior Member
Thanks Meter 1
Posts: 4
Join Date: Jun 2011
Quote:
Originally Posted by mugendon View Post
Yes of course:

1. Decompile your systemUI.apk (use apk multitool for example, install framework-res.apk with setup first)
2. Replace res/drawable/stat_sys_battery.xml and stat_sys_battery_charge.xml with the ones from my customized systemUI.apk (decompile this also)
3. Replace all res/drawable-xdhpi/stat_sys_battery_xx and stat_sys_battery_charge_animxx with your favorite battery images.
4. Recompile apk
5. Use one of my flashable zips and overwrite the systemUI.apk inside with your own customized apk
6. Flash it
7. done

After that you can switch the battery images just by replacing them in the apk with a tool like 7zip and dont have to recompile again.
I tried to do it. But I could not.
I always get error messages with apk tool or apk multi tool several versions.
I could not decompile properly the systemui of that rom.
Everything in vain.
Here is the file. If someone manage with no erors , I will be glad to know how and with which programm?
Attached Files
File Type: rar files.rar - [Click for QR Code] (7.04 MB, 12 views)
 
Dirk64
Old
#13  
Dirk64's Avatar
Senior Member
Thanks Meter 29
Posts: 101
Join Date: Nov 2011
Location: Kiel

 
DONATE TO ME
Try udk's apktool with aapt from SDK/platform tools rev 17.
http://goo.im/devs/udK/APKTool
Don't forget to install framework-res.apk first (java -jar apktool.jar if framework-res.apk)
Then decompile SystemUI.apk (java -jar apktool.jar d SystemUI.apk
Make your changes and recompile
(Java -jar apktool.jar b SystemUI)

Sent from my Galaxy Nexus using xda premium
1 GNex Pure_Black_AOSP_4.2.2 / 1 GNex Baked_bb9-unofficial
The Following User Says Thank You to Dirk64 For This Useful Post: [ Click to Expand ]
 
nebmer0
Old
#14  
Junior Member
Thanks Meter 1
Posts: 4
Join Date: Jun 2011
Thanks a lot .
I managed to do it.
Here you go for UDK's R8
Attached Files
File Type: zip circle normal.zip - [Click for QR Code] (1.39 MB, 32 views)
The Following User Says Thank You to nebmer0 For This Useful Post: [ Click to Expand ]
 
mugendon
Old
#15  
mugendon's Avatar
Member - OP
Thanks Meter 75
Posts: 64
Join Date: Feb 2011
Good work
 
ibrahimz91
Old
#16  
Senior Member
Thanks Meter 3
Posts: 105
Join Date: Apr 2012
hello im on omega v19.2 and i dont like the circle battery. what mod of yours should i flash to get back to the stock 4.2.1 battery icon ?
 
mugendon
Old
#17  
mugendon's Avatar
Member - OP
Thanks Meter 75
Posts: 64
Join Date: Feb 2011
Default AW: [MOD] 1% battery mod for ODEXED Stock Rom 4.2.1 (Galaxy Nexus)

You could try the "revert to stock" ZIP, but i guess it wont work with your rom.
 
Androyx96
Old
#18  
Senior Member
Thanks Meter 6
Posts: 104
Join Date: Aug 2011
Question Thanks! Really good tip!

Just a question: the file to revert to stock 4.2.1 works also with 4.2.2?

Thanks
My Current Device: Google Galaxy Nexus
ROM: Stock ROM Android 4.2.2 Jelly Bean Odexed and Rooted
 
Dirk64
Old
#19  
Dirk64's Avatar
Senior Member
Thanks Meter 29
Posts: 101
Join Date: Nov 2011
Location: Kiel

 
DONATE TO ME
Default AW: [MOD] 1% battery mod for ODEXED Stock Rom 4.2.1 (Galaxy Nexus)

No, it won't work! Inside is Stock 4.2.1 SystemUI.apk. But copy your 4.2.2 SystemUI.apk, open the zip with 7zip, delete the old SystemUI.apk and drag your 4.2.2 apk inside.

Sent from my Galaxy Nexus using xda premium
1 GNex Pure_Black_AOSP_4.2.2 / 1 GNex Baked_bb9-unofficial
 
Androyx96
Old
#20  
Senior Member
Thanks Meter 6
Posts: 104
Join Date: Aug 2011
Quote:
Originally Posted by Dirk64 View Post
No, it won't work! Inside is Stock 4.2.1 SystemUI.apk. But copy your 4.2.2 SystemUI.apk, open the zip with 7zip, delete the old SystemUI.apk and drag your 4.2.2 apk inside.

Sent from my Galaxy Nexus using xda premium
Thanks for your quick reply, where is the file SystemUI.apk? Is the one located in /system/app ?

(Sorry for my English)
My Current Device: Google Galaxy Nexus
ROM: Stock ROM Android 4.2.2 Jelly Bean Odexed and Rooted

 
Post Reply+
Tags
4.2.1, battery, mod, odexed, percent
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...