• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Ninjamorph help custom battery icon

finnaginagain

Android Enthusiast
Im on Cm7 and i have used Metamorph on my OG droid but i know that it doesnt work with GB so i have switched to ninjamorph problem is the custom battery icons i want to use are not in .apk or.jar format i will attach the zip here if anyone could help me out that would be fantastic thanks!
 

Attachments

Im on Cm7 and i have used Metamorph on my OG droid but i know that it doesnt work with GB so i have switched to ninjamorph problem is the custom battery icons i want to use are not in .apk or.jar format i will attach the zip here if anyone could help me out that would be fantastic thanks!

I wrote this up a while ago, and made some edits so that it applies to your icons.



Here is how to change the battery images using NinjaMorph. Download and unzip the battery icon .zip file and place the icons on your sd card in a spot where you can easily find them, I used a folder named "Battery". The items you will be changing are as follows:



Battery Images

stat_sys_battery_0.png
stat_sys_battery_10.png
stat_sys_battery_20.png
stat_sys_battery_40.png
stat_sys_battery_60.png
stat_sys_battery_80.png
stat_sys_battery_100.png

stat_sys_battery_charge_anim0.png
stat_sys_battery_charge_anim1.png
stat_sys_battery_charge_anim2.png
stat_sys_battery_charge_anim3.png
stat_sys_battery_charge_anim4.png
stat_sys_battery_charge_anim5.png

stat_sys_battery_unknown.png


I wrote this rather quickly so if you have questions just let me know.

Assuming you already know the name of the icons you want to replace and the location of your new icons on you SDcard you need to do the following once you've started NinjaMorph.



1. New Project >system >framework >framework-res.apk. It will then extact a bunch of files.
2. Select res >drawable-hdpi.
3. Scroll through the list of .png files, find the one you want to replace and press on it. (should be about 3/4 of the way down the list)
4. You are then taken to the root of your SDcard where you pick the new png file. Once you find your new icon file select it, you will get a confirmation message (overwriting), select Yes.

Continue repeating steps 2-4 until you are done replacing all of the images, once you are done replacing the images continue below.

Now that you are done replacing your files and you are back to step 2 (where you have the assets, META-INF and res folders) press the blue back button (bottom right) and select Finish Project then "framework-resapk" it will then create the package and you will get a confirmation message (overwriting), select Yes, the next confirmation message is asking if you want to ZipAlign the apk file, read the message and select yes or no(i use yes), then you get the last confirmation saying that you will need to reboot, select Ok. If you were unable to hit yes when the last message popped up (asking you to delete the project) delete it the next time you start NinjaMorph). Your phone will now reboot with your new icons in place.
 
did everything right its sitting on a please wait working screen, has been for about 10 min.



Make sure there are no spaces in the directory name where the files are stored, and I got force closes when status icons are changed, and must reboot to get them to change.
 
I wrote this up a while ago, and made some edits so that it applies to your icons.



Here is how to change the battery images using NinjaMorph. Download and unzip the battery icon .zip file and place the icons on your sd card in a spot where you can easily find them, I used a folder named "Battery". The items you will be changing are as follows:



Battery Images

stat_sys_battery_0.png
stat_sys_battery_10.png
stat_sys_battery_20.png
stat_sys_battery_40.png
stat_sys_battery_60.png
stat_sys_battery_80.png
stat_sys_battery_100.png

stat_sys_battery_charge_anim0.png
stat_sys_battery_charge_anim1.png
stat_sys_battery_charge_anim2.png
stat_sys_battery_charge_anim3.png
stat_sys_battery_charge_anim4.png
stat_sys_battery_charge_anim5.png

stat_sys_battery_unknown.png


I wrote this rather quickly so if you have questions just let me know.

Assuming you already know the name of the icons you want to replace and the location of your new icons on you SDcard you need to do the following once you've started NinjaMorph.



1. New Project >system >framework >framework-res.apk. It will then extact a bunch of files.
2. Select res >drawable-hdpi.
3. Scroll through the list of .png files, find the one you want to replace and press on it. (should be about 3/4 of the way down the list)
4. You are then taken to the root of your SDcard where you pick the new png file. Once you find your new icon file select it, you will get a confirmation message (overwriting), select Yes.

Continue repeating steps 2-4 until you are done replacing all of the images, once you are done replacing the images continue below.

Now that you are done replacing your files and you are back to step 2 (where you have the assets, META-INF and res folders) press the blue back button (bottom right) and select Finish Project then "framework-resapk" it will then create the package and you will get a confirmation message (overwriting), select Yes, the next confirmation message is asking if you want to ZipAlign the apk file, read the message and select yes or no(i use yes), then you get the last confirmation saying that you will need to reboot, select Ok. If you were unable to hit yes when the last message popped up (asking you to delete the project) delete it the next time you start NinjaMorph). Your phone will now reboot with your new icons in place.

i do believe you are missing a few.
30, 50, 70, 90 to be exact lol
and since he is on cm7 i do believe its in 1% increments.
 
i do believe you are missing a few.
30, 50, 70, 90 to be exact lol
and since he is on cm7 i do believe its in 1% increments.

Stock CM7 doesn't read in 1% increments for custom pngs unless you modify the associated xmls as well as adding the pngs.
 
ahh, i have yet to mess with the cm7 theme builds yet, waiting for the weekend to do that since im sure it will be a while
 
perfect, i got everything ready so i will be set, just need to remember to have someone there to refil my tea, and have my hotpockets ready when i want them!
 
He doesn't have those images in his zip so I didn't include them in the instructions...

if he didnt have those images in his zip then how is he going to get a full battery icon... its going to revert back to whatever the other is in those increments
 
if he didnt have those images in his zip then how is he going to get a full battery icon... its going to revert back to whatever the other is in those increments

Maybe he setup his battery xmls to only read those values, though there there are no battery xmls in that zip...
 
thats where im confused, why have you battery setup in 20% increments... wouldnt that be kinda.. i dunno, strange?
 
yes they are very nice to have... sometimes... other times im looking at it going, omgwtf its dieing that quick, then i realize its possibly the same way on 10% but its reading different.
 
Back
Top Bottom