DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 8 of 10 FirstFirst ... 678910 LastLast
Results 71 to 80 of 98

Thread: Any way to make battery icon image update every 10% rather than every 20%?

  1. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #71
    Just an update -- I'm having problems adding more additional icons to make a resultant framework file. No I haven't abandoned my efforts or just wanted to keep everyone hanging (although due to work I can't work on this everyday). I contacted the developer of APKManager since this is a problem with the build. For right now I'm going to try to hopefully find a hack around this problem.
  2. Junior Droid
    medinauta's Avatar
    Member #
    12319
    Join Date
    Dec 2009
    Posts
    16
    Phone
    Motorola Droid
    #72
    I got it... thanks to kalpik, the trick was to copy the META-INF folder and AndroidManifest.xml from the original framework-res.apk to the compiled one!, I got it in 10% increments!

    1. Copy framework-res.apk
    2. Decompile it with APK Manager 4.8
    3. Paste the ... xml files in drawable and the png files in drawable-hdpi-v4.
    4. Compile the apk
    5. Copy META-INF folder and AndroidManifest.xml from the original APK to the modded one
    APK Manager: Option 9 (decompile) and option 11 (compile).
    7zip: To copy the original files to the modded one.
    Then create an update.zip with the framework-res.apk in it and install with recovery.
    Last edited by medinauta; 08-26-2010 at 12:18 PM.
  3. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #73
    That will definitely work --

    Just an fyi -- you only need to compile the framework additionally for any xml changes. You don't need to do for simple png or image changes. And you don't necessarily need an update.zip. An alternative is to simply push with adb and then reboot.

    Ive included a screencap -- (Man I need more battery quick!!)
    Attached Thumbnails Attached Thumbnails Any way to make battery icon image update every 10% rather than every 20%?-cap201008270353.jpg  
    Last edited by kevdog; 08-27-2010 at 02:57 AM.
  4. Droid Ninja
    microsnook's Avatar
    Member #
    35836
    Join Date
    Feb 2010
    Posts
    1,292
    Phone
    Enter Current Phone Model Here
    #74
    Quote Originally Posted by kevdog View Post
    That will definitely work --

    Just an fyi -- you only need to compile the framework additionally for any xml changes. You don't need to do for simple png or image changes. And you don't necessarily need an update.zip. An alternative is to simply push with adb and then reboot.

    Ive included a screencap -- (Man I need more battery quick!!)
    kevdog, Im on CM and I used an edited xml file and added the pngs but they wouldnt display properly. Could you help me out with getting these 10% pngs?!
  5. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #75
    Send or post a non themed framework-res.apk and I'll fix it up for you.
  6. Master Droid
    GeLopez's Avatar
    Member #
    10275
    Join Date
    Nov 2009
    Location
    Dallas TX
    Posts
    690
    Liked
    35 times
    Phone
    Galaxy Nexus
    #76
    I'm ready to try it? Links?
  7. Junior Droid
    lrgraham14's Avatar
    Member #
    44266
    Join Date
    Mar 2010
    Posts
    5
    Phone
    Enter Current Phone Model Here
    #77

    10% icons framework

    I decided to play with this more and figured it out after reading some of the suggestions posted in this forum. Heres the framework-res.apk for everyone else running sapphire.

    Directions to install
    1. Reboot the phone into recovery
    2. adb push framework-res.apk to /system/framework
    3. Reboot the phone and you should now see the 10% icons! You can change the png files inside the framework to anything you want, these are just some basic ones I made using pete's as a base.

    Download Framework-res.apk

    Update.zip can be installed the same way a rom is... Note that this replaces your services.jar with a modified one to allow transparent images.
    Download update.zip

    Let me know if you have any problems installing.

    [Edit]
    I forgot to say that this apk also adds a transparent notification bar as long as your services.jar is patched... transparent png credit to pete.
    Last edited by lrgraham14; 08-27-2010 at 04:13 PM.
  8. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #78
    One of the pitfalls with this approach is that if you want to apply a theme after applying this hack, the new custom framework-res.apk (containing the 10% battery) will be overwritten with the themed framework-res.apk -- hence losing the 10% battery effect. Essential for this hack to work is both the stat_sys_battery.xml file along with the resources.arsc file. The actual png icons can be added later at any time.

    I wish there was a way to distribute a framework-res.apk file that made it possible only to update changes (call it a partial framework-res.apk update), rather than distribution of the entire framework-res.apk. That way only the updated portions of the framework could be updated, leaving any themed parts behind. The problem however arises if the theme creator modified the resources.arsc in any way.

    Possibly the best way to distribute these two files would be either individually (which could then be applied using ninjamorph) or as a metamorph file. I'm not the biggest fan of either approach, however they would allow others to install this hack over a themed ROM (possibly).

    The sure fire method would be to ask theme creators to create their themes with the ability to have custom 10% icons. That would probably be the best way (or have cvpcs add this in when the entire ROM is compiled -- which I'm betting has virtually no chance.).
  9. Junior Droid
    lrgraham14's Avatar
    Member #
    44266
    Join Date
    Mar 2010
    Posts
    5
    Phone
    Enter Current Phone Model Here
    #79
    Quote Originally Posted by kevdog View Post
    One of the pitfalls with this approach is that if you want to apply a theme after applying this hack, the new custom framework-res.apk (containing the 10% battery) will be overwritten with the themed framework-res.apk -- hence losing the 10% battery effect. Essential for this hack to work is both the stat_sys_battery.xml file along with the resources.arsc file. The actual png icons can be added later at any time.

    I wish there was a way to distribute a framework-res.apk file that made it possible only to update changes (call it a partial framework-res.apk update), rather than distribution of the entire framework-res.apk. That way only the updated portions of the framework could be updated, leaving any themed parts behind. The problem however arises if the theme creator modified the resources.arsc in any way.

    Possibly the best way to distribute these two files would be either individually (which could then be applied using ninjamorph) or as a metamorph file. I'm not the biggest fan of either approach, however they would allow others to install this hack over a themed ROM (possibly).

    The sure fire method would be to ask theme creators to create their themes with the ability to have custom 10% icons. That would probably be the best way (or have cvpcs add this in when the entire ROM is compiled -- which I'm betting has virtually no chance.).

    I agree completely, Chevy has been working on a script to update the internal files of apk files using an update.zip script. However i think you will run into problems when applying it to different framework files. Basically the best way to apply this hack right now is manually for a custom theme. Hopefully someone will figure out a simple way to apply this for any theme!
  10. Droid Ninja
    pdroid's Avatar
    Member #
    43531
    Join Date
    Mar 2010
    Location
    Philly
    Posts
    2,253
    Liked
    17 times
    Phone
    iPhone 5
    #80
    Quote Originally Posted by kevdog View Post
    The sure fire method would be to ask theme creators to create their themes with the ability to have custom 10% icons. That would probably be the best way (or have cvpcs add this in when the entire ROM is compiled -- which I'm betting has virtually no chance.).
    Doesn't hurt to ask, I'd say - file an enhancement request on the bugtracker. Sounds like you've done a lot of the legwork, which is certainly several levels above just "hey include this in sapphire".
Page 8 of 10 FirstFirst ... 678910 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. [MM Theme] Spiderman Battery Icon / The Flash Charging Icon
    By oMenaceTigero in forum Android Themes
    Replies: 8
    Last Post: 12-06-2010, 09:42 PM
  2. how can i hit one icon on main screen and make a call
    By malpert in forum New Member Introductions & Site Assistance
    Replies: 7
    Last Post: 07-18-2010, 03:13 PM
  3. how to make an icon with bettercut?
    By peterjariel in forum Android Applications
    Replies: 13
    Last Post: 05-12-2010, 09:12 PM
  4. icon/image question
    By liquidzoo in forum Android Hacks and Help
    Replies: 2
    Last Post: 02-08-2010, 12:37 PM
  5. how to make custom icon?? help please
    By GOON in forum Android Themes
    Replies: 1
    Last Post: 01-26-2010, 01:33 AM

Search tags for this page

android battery icon percentage png
,

android battery xml

,
android battery xml location
,
android xml battery
,
android xml png hex battery icon
,
battery xml android
,
icon
,
make the battery icon update every 1%
,
stat sys battery charge.xml
,

stat sys battery.xml

Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+