Jump to content
Squide

[MOD] Circular Battery Percentage Mod for Fr19 RC1

Recommended Posts

I'm using the same method stated in the first post...

copy the "framework-res.apk" from my phone..

decompile using APKtool 1.3.1

replace the two xml with my own.. under drawable

put those image files into drawable hdpi v4

compile again ... replace the framework-res.apk inside the batt-mod.zip with the newly compiled one

nandroid backup

install via clockworkmod

reboot, done :rolleyes:

yeah, this is maybe why it not worked for me. I didn't use batt-mod.zip & install via clockwork. I always push standalone framework-res.apk to device by adb shell via clockwork. :P

Share this post


Link to post
Share on other sites
also interested :D

when you have choosen lg music in MCR kitchen, you can simply check on/off music buttons from notification in menu of lg music ...

20110521183437.png

Share this post


Link to post
Share on other sites
that's true ! What I made...

but I still want the toggle buttons for WIfi, Bt,.. :D

yeah, you keep them anyway when just hiding music controls in lg music ...

20110602165849.png

Share this post


Link to post
Share on other sites

For Stock Theme, Black Status Bar (no toggle and music buttons)

Download: batt_mod.zip(5.69MB)

yes but when applied this .zip both went away !

Share this post


Link to post
Share on other sites

nandroid is a backup made with cwm, uh?

Share this post


Link to post
Share on other sites

Hey Guys,

I have one question to you, the code "apktool b framework-res" doesn't work!!!

I use Apktool 1.3.1 and I will compile the framework-res but nothing happened!!!

Why!?

Best regards

DABB

Share this post


Link to post
Share on other sites

Want to compile your own framework-res.apk with circular battery (or other mods) and having no luck with Squide's guide or UOT kitchen? - Try this :)

First off I just want to say thanks to Squide for sharing this with us in the first place.

This modification of Squide's guide seems to keep me out of boot loop, though it might be a little paranoid with some of the steps:

---------------------------------------------------------------------------------------

Here's the tutorial about how to port your own:

---------------------------------------------------------------------------------------

1. Download "batt_mod.zip" from above for later use.

2. Download APKtool v1.4.1 from here.. APKtool Web Site

(Pay attention to "Installation for noobs" and "Usage" section and you'll know how to use)

3. From your Phone, pull the "\system\framework\framework-res.apk" to your computer.

(i.e. using Root Explorer copy the mentioned file to SD, then to your computer via USB mass storage)

4. Decompile the copied "framework-res.apk" using APKtool v1.4.1

(running the command "apktool d framework-res.apk" in a command box)

5. Modify "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" under "framework-res\res\drawable" to suits your need.

6. Put the corresponding image files into "framework-res\res\drawable hdpi"

7. Compile the modified "framework-res" folder using APKtool v1.4.1

(running the command "apktool b -f framework-res" in a command box)

8. Locate your newly compiled "framework-res.apk" under /dist/ and...

9. Rename to framework-res.apk.zip, Use 7-zip extract the contents (and delete the framework-res.apk.zip file)

10. Re-pack the contents with 7-zip making sure the compression is set to Store (None) to create a new framework-res.apk.zip file

11. You should now have a framework.res.apk.zip your working with. Use the zipalign tool attached and run the following command on the file:

zipalign -f 4 framework-res.apk.zip framework-res.apk

12. Replace the "\system\framework\framework-res.apk" in my "batt_mod.zip" with the one just created

9. Put your own "batt_mod.zip" into your external SD and install via ClockWorkMod.

(Always Nandroid backup before install to stay out of bootloop)

GOOD LUCK

Do not apply directly after installing a ROM

zipalign.zip

Share this post


Link to post
Share on other sites

some people asked for a battery mod version without music control and with toggle bar. i like this too and for me the howto worked and i want to share my configuration. i atteched the modified FR18batt_mod.zip.

It is for FR18B2 with toggle bar (or at least it wont remove it).

It worked for me but always do a nandroid backup and report if it doesnt work for you!

http://www.megaupload.com/?d=LDR4Z6TW

Share this post


Link to post
Share on other sites
The first post is now updated to use with Fr19 RC1 :)

same method I used... still work.

Not work for Fr19RC1

1. Download "batt_mod.zip" from above for later use.

2. Download APKtool v1.4.1 from here.. APKtool Web Site

3. From your Phone, pull the "\system\framework\framework-res.apk" to your computer.

(i.e. using Root Explorer copy the mentioned file to SD, then to your computer via USB mass storage)

4. Decompile the copied "framework-res.apk" using APKtool v1.4.1

(running the command "apktool d framework-res.apk" in a command box)

5. Modify "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" under "framework-res\res\drawable" to suits your need.

6. Put the corresponding image files into "framework-res\res\drawable-hdpi"

7. Compile the modified "framework-res" folder using APKtool v1.4.1

(running the command "apktool b framework-res" in a command box)

8. Locate your newly compiled "framework-res.apk" under /dist/

and using it to replace the "\system\framework\framework-res.apk" in my "Fr19batt_mod.zip"

9. Put your own "Fr19batt_mod.zip" into your external SD and install via ClockWorkMod.

(Always Nandroid backup before install to stay out of bootloop)

=> cicle reboot

compare res old & new:

in old framework-res is present: META-INF directory

after 4. Decompile the copied "framework-res.apk": framework-res\META-INF isn't present

Edited by AngelOfMors

Share this post


Link to post
Share on other sites

odd. im sure mine always have that directory present. are you using 7-zip? some zip apps dont add empty folders. also make sure your compression level is store

Share this post


Link to post
Share on other sites

use 7-zip and winrar:

META-INF and resources.arsc is present, xml-files isn't decomp, but isn't present directorys: values-...

apktool:

META-INF and resources.arsc isn't present

Edited by AngelOfMors

Share this post


Link to post
Share on other sites

I'm pleased to say there were no framework-res changes in RC2, so the RC1 release will work fine! :)

P

Share this post


Link to post
Share on other sites

I looks that this version also turns off Toggle buttons:

ui_print("");

ui_print("LG O2X MCR Fr19 Battery Percentage Mod");

ui_print("");

ui_print("For black theme with No Toggle Buttons");

show_progress(0.500000, 2);

ui_print("");

ui_print("Updating...");

run_program("/sbin/busybox", "mount", "/system");

package_extract_dir("system", "/system");

unmount("/system");

show_progress(0.500000, 2);

ui_print("");

ui_print("Update Completed.");

But I like to use them.

Could you upload just Battery Percentage Mod?

Thanks

Share this post


Link to post
Share on other sites
I looks that this version also turns off Toggle buttons:

ui_print("");

ui_print("LG O2X MCR Fr19 Battery Percentage Mod");

ui_print("");

ui_print("For black theme with No Toggle Buttons");

show_progress(0.500000, 2);

ui_print("");

ui_print("Updating...");

run_program("/sbin/busybox", "mount", "/system");

package_extract_dir("system", "/system");

unmount("/system");

show_progress(0.500000, 2);

ui_print("");

ui_print("Update Completed.");

But I like to use them.

Could you upload just Battery Percentage Mod?

Thanks

Same Here. I use the WiFi, bluetooth and the GPS button for example, can you please fix this?

Edited by Peterfdevries

Share this post


Link to post
Share on other sites
I'm pleased to say there were no framework-res changes in RC2, so the RC1 release will work fine! :)

P

Does this mod work with FR19 Prebake?

Share this post


Link to post
Share on other sites
Hi.

Can anyone upload a version with toggle buttons and no music?

Thanks

And can someone do that for the current FR19? Thanks!

Share this post


Link to post
Share on other sites
And can someone do that for the current FR19? Thanks!

Nevermind, I was able to cook one with the UOT Kitchen :-). I did have to copy the update-binary though (as described in the 2nd workaround).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.