Jump to content

[MOD] Circular Battery Percentage Mod for Fr19 RC1


Guest Squide

Recommended Posts

Guest Paja.HK
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

Link to comment
Share on other sites

  • 2 weeks later...
Guest 75markus
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

Link to comment
Share on other sites

Guest 75markus
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

Link to comment
Share on other sites

Guest brunoli

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 !

Link to comment
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

Link to comment
Share on other sites

Guest mankian

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

Link to comment
Share on other sites

Guest ben1th

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

Link to comment
Share on other sites

Guest AngelOfMors
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
Link to comment
Share on other sites

Guest mankian

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

Link to comment
Share on other sites

Guest AngelOfMors

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
Link to comment
Share on other sites

Guest bbvidz

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

Link to comment
Share on other sites

Guest Peterfdevries
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
Link to comment
Share on other sites

Guest rollet
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?

Link to comment
Share on other sites

Guest Sharcy
Hi.

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

Thanks

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

Link to comment
Share on other sites

Guest Sharcy
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).

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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