1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

How to create battery zip for D2g

Discussion in 'HeXen' started by droiddrums, Aug 5, 2011.

  1. droiddrums
    Offline

    droiddrums New Member

    Joined:
    May 10, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Would anyone be able to explain to me how create my own zip file to install a new battery icon? I have the hd photos for the icon but idk how to make a flashable zip file for using in clockwork. Could someone please share or give me an idea where I can start learning how to make this myself?

    Sent from my DROID2 GLOBAL using DroidForums
    Last edited: Aug 5, 2011
  2. CJM
    Offline

    CJM Developer Relations Staff Member Premium Member

    Joined:
    Sep 12, 2010
    Messages:
    9,176
    Likes Received:
    461
    Trophy Points:
    83
    Location:
    Mississippi Gulf Coast
    With MetaMorph
    You could take a battery metamorph that works on your phone and replace the .png's with your own. You can find one at droidpirate.com. Once you find one, I use 7zip, 7zip.org, to open the metamorph and swap or replace them.

    With ClockWork
    Or if you have the Hexen rom, you can edit that the same way. Open the rom with 7zip, go to \system\framework\framework-res.apk\res\drawable-hdpi\ and change out the battery icons. They will be called stat_sys_battery_0.png through stat_sys_battery_100.png, in increments of 10% ( -10.png, -20.png ,-30.png, etc.). And the charging icons will be stat_sys_battery_charge_anim0.png, stat_sys_battery_charge_anim1.png, stat_sys_battery_charge_anim2.png through stat_sys_battery_charge_anim5.png. There is also the stat_sys_battery_unknown.png for when theres no battery.

    If you have anymore questions or need help, just ask.
  3. CJM
    Offline

    CJM Developer Relations Staff Member Premium Member

    Joined:
    Sep 12, 2010
    Messages:
    9,176
    Likes Received:
    461
    Trophy Points:
    83
    Location:
    Mississippi Gulf Coast
    And make a backup before applying those changes. Just to be safe.

    Sent from the Unbrickable DROID
  4. mopar57
    Offline

    mopar57 Theme Developer Theme Developer

    Joined:
    Dec 27, 2009
    Messages:
    303
    Likes Received:
    0
    Trophy Points:
    0
    If you want an update.zip I can try and create one for you.then all you have tip do is replace the images
  5. droiddrums
    Offline

    droiddrums New Member

    Joined:
    May 10, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    I was able to add the images doing what Cjm said, which worked out great, to the battery zip from u mopar. Thanks to you both! !

    Sent from my DROID2 GLOBAL using DroidForums
  6. CJM
    Offline

    CJM Developer Relations Staff Member Premium Member

    Joined:
    Sep 12, 2010
    Messages:
    9,176
    Likes Received:
    461
    Trophy Points:
    83
    Location:
    Mississippi Gulf Coast
    If mopar gave you an update.zip, you'll be able to add to it to change out the icons for other apps (.apk's) the same way. Just look at the hexen rom for the file paths. For example, you can take out the mms.apk from a rom, edit it, place it in the app folder then install it the same way. You're basically making your own theme.

    Sent from the Unbrickable DROID
  7. droiddrums
    Offline

    droiddrums New Member

    Joined:
    May 10, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    That's pretty nice. Im going to mess with it this weekend thank for the example. Exactly what I needed to know!

    Sent from my DROID2 GLOBAL using DroidForums
  8. slimpirudude
    Offline

    slimpirudude New Member

    Joined:
    Mar 24, 2011
    Messages:
    358
    Likes Received:
    0
    Trophy Points:
    0
    Could this be used to take get a diff messaging app like the htc one? I reallllyyy want it

    Sent from my DROID2 GLOBAL using DroidForums
  9. mopar57
    Offline

    mopar57 Theme Developer Theme Developer

    Joined:
    Dec 27, 2009
    Messages:
    303
    Likes Received:
    0
    Trophy Points:
    0
    Depends on the coding behind it.

    If its based on the HTC sense software then no it wont work.
    --like how the stock messageing app wont work on the customs roms, since its based off blur.

    If its just on the froyo then it could.


    This thread and ways were dealing with the framework, and just replacing image files. Alot different then replacing apk. But you could find a HTC system dump and try installing it.
  10. droiddrums
    Offline

    droiddrums New Member

    Joined:
    May 10, 2011
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
  11. mopar57
    Offline

    mopar57 Theme Developer Theme Developer

    Joined:
    Dec 27, 2009
    Messages:
    303
    Likes Received:
    0
    Trophy Points:
    0
  12. slimpirudude
    Offline

    slimpirudude New Member

    Joined:
    Mar 24, 2011
    Messages:
    358
    Likes Received:
    0
    Trophy Points:
    0
    Damn :( no way at all to make it work? As this would be best thing ever.

    Sent from my DROID2 GLOBAL using DroidForums
  13. slimpirudude
    Offline

    slimpirudude New Member

    Joined:
    Mar 24, 2011
    Messages:
    358
    Likes Received:
    0
    Trophy Points:
    0
    I have seen some blur apps on custom rims before. . . How about getting stock blur text messaging working on hexen. Possible I would think. .

    Sent from my DROID2 GLOBAL using DroidForums
Search tags for this page

how is the make a battery charge ? give me explain in zip fi