• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

Make your own battery mods for any rom

6 posts in this topic

Posted (edited) · Report post

Found this on XDA by shayne77. Original thread here

I've put the battery mod tool and all the battery images together in one rar file. Theres about 30 different battery mods.

I've tried it on CM9 and Cydas Stock+ rom and works on both so should work on any rom.

The zip file it creates is not the usual CWM flash zip but is based on the "universal flash tool" you can flash the battery mods with it but it takes a while to boot afterwards as you get the optimising apps on reboot.

I've also included an empty CWM flash zip file so you can just put the Systemui.apk in there and use that instead (just drop it in the app folder).

Although you have to put the frameworkres.apk into the battery mod tool for it to work its not required to flash it as you only have to flash the systemui.apk

I take no credit for this I just collected all the stuff together.

All credits to shayne77.

Get the Mod tool and battery images here

Instructions

The Instructions - by shayne77

==============================

Please read all of this, it's not much to read and can save you alot of heartache.

This tool makes modding your current ROMs battery very simple for you. I have tested the ROM I use and that is (ICS) CyanogenMod 9. It should work with Samsung Custom ROM's as well (As long as they are ICS and Deodexed)

The Instructions are very simple...

1) ====== Copy "SystemUI.apk" to the "Input_APKs" folder ======

You can grab this from either; the ZIP archive for your ROM which is located in; \system\app\ of the ROMs zip file or you can copy it off your phone. (Personally, I think it's easier to grab it from your current ROMs flashable ZIP archive)

2) ====== Copy "framework-res.apk" to the "Input_APKs" folder ======

You can grab this from either; the ZIP archive for your ROM which is located in; \system\framework\ of the ROMs zip file or you can copy it off your phone. (Personally, I think it's easier to grab it from your current ROMs flashable ZIP archive)

3) ====== Copy the 204 x Battery PNG images to the "Input_Images" folder ======

If you don't have 204, it won't work. There are 101 to show battery levels from 0 to 100 and there are another 101 to show a charging animation from 0 to 100, There are an addition 2 more to show "charge_animFULL" and "battery_FULL". If you have any of my current battery mod zip's, the PNGs are located in \MORPH\system\app\SystemUI.apk\res\drawable-hdpi\ in the zip archive.

4) ====== Double-click "Mod_my_battery!.bat" and sit back and wait ======

The process should only take a couple of minutes. I will explain in more detail later what is actually happening but, the process is; add current framework for apktool to use, decompile SystemUI, add files needed to show new battery mod in 1% increments, build SystemUI again, create both a flashable zip and also a raw SystemUI.apk. You can use either the flashable zip (as you have been if you have been using my battery mods or if you wish, you can copy the modded SystemUI.apk to your phone.

5) ====== Check the "Output" folder for your newly modded SystemUI ======

In the "Output" folder is either the "Flashable ZIP" file. This is exactly the same as what you would have been using from xda or there is a "Modded APK" file. This is a modded SystemUI.apk file for if you wish to push or copy the actual apk to your phone instead.

Now to be honest, I only learnt how to write a batch script recently so if you get any irregular errors, let me know by PM and I will see what I can do. It should work fine though.

The files I use to decompile/compile are up to date and are the latest as of today March 24th, 2012.

NOTE:

If you modify ANY files within the "Working_Dir" folder, the process will not work. Do not rename, remove or add any files to this directory

URL for Java Development Kit:

http://www.oracle.co...oad-513651.html

to download JDK, Simply;

1) Select "Accept License Agreement".

2) Select "jdk-7xx-windows-xxx.exe" for your version of Windows. (Windows x86 = 32-bit, Windows x64 = 64-bit)

3) Run installer with default settings should be fine.

Edited by Redflake
1

Share this post


Link to post
Share on other sites

Posted · Report post

Sweet Thanks :D

0

Share this post


Link to post
Share on other sites

Posted · Report post

How did it work on 'Cyda's sock'?

0

Share this post


Link to post
Share on other sites

Posted · Report post

How did it work on 'Cyda's sock'?

lol my sock? :huh: :P

1

Share this post


Link to post
Share on other sites

Posted · Report post

How did it work on 'Cyda's sock'?

Just follow the instructions.

Works sweet.

If you use the battery mod zip in ouputs, it even does an undo zip when you flash it.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

lol my sock? :huh: :P

Ha ha missed that one.

2819216385_2456d181ec_z.jpg?zz=1

Edited by Redflake
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.