Help with battery mod - Android Themes

Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help

Related

[Q] Milestone2 2.3UI framework-res.apk

I just edit the framework-res.apk for my milestone2,
it have a black status bar now
but the text-color still black,I try deodex the services.odex ,edit it and smali
insert classes.dex into services.jar
adb push services.jar /system/framework
but it doesn't work... and cann't boot~~
what's the right way to deodex it?
I'm having problems deodexing too...
I used dsixda's Android Kitchen to deodex the framework from my system.img (created a blank boot.img to be able to load the files), but can't deodex android policy and service. They're the only two apks I can't deodex.
Someone could post a tutorial or already patched files.
Sent from my Milestone 2 XDA App
http://forum.xda-developers.com/showthread.php?t=765270
PS: Could a mod put this into Dev Forum of MS2 ? Since deodexing & Framework stuff is less or more developing..
I'm having black bar since the second day of my phone...
so if u don't want to bother:
download metamorph from market and open this file and apply:
http://www.megaupload.com/?d=YQ8CDVBU
you have to be rooted!
not my work somebody made it here on xda i just couldn't find the threat now...
Hi
Do anyone know wich Gingerbread Notification Bar can I use in my Milestone 2?
I installed the one posted by elfodd and I don't really like.
Thanks!
hey,,,u know how install burhome.apk, launcher in edited rom argen2stone ??i hope u so much that u can help me with this...thanks
elfodd said:
I'm having black bar since the second day of my phone...
so if u don't want to bother:
download metamorph from market and open this file and apply:
http://www.megaupload.com/?d=YQ8CDVBU
you have to be rooted!
not my work somebody made it here on xda i just couldn't find the threat now...
Click to expand...
Click to collapse
It works but clock and date (and operator also) are still black instead of white

[Q] Need Help modifing Framework-res.apk in 2.3.3

Hi,
I'm trying to modify the Framework-res.apk from the GPC Pure gingebread 2.0
its AOSP 2.3.3 but it dont work i did it in all versions before and it worked
i want to replace the Battery indicator with a Circle Batterie
but i always get errors and boot loops can some experience one maybe help me ? =)
i will attach the apk and the icons if someone has maybe time to look,
i would be very happy
with best regards
Alexi
hi
i had a look at your framework-res.apk
but the sys-stat-batt files are unusable
and i don't feel much for rewriting those.
so please get some workable sys-stat-batt files and i'll gladly do it for you,
however using apkmanager is really easy, so why not try it yourself.
grtz steef

Battery Percent Mod

Hi all,
A friend of mine just acquired a captivate and asked if he can get a good battery widget etc but I suggested a battery percent icon. I haven't been able to find one, however. Is it possible/does it exist for the stock rom?
The phone has a captivate rooted stock rom (baseband I897UCKF1, Gingerbread.uckf1 - let me know if you need anything else)
Thanks!
it has to be deodexed so you can edit the right files. theres a kk4 rom out there he can use as well as a guide on how to do it. or you can use the kitchen to build a pack. i forget what kitchen i used. i think its the systemui.apk and a few jar or xml files that have to be tinkered with. search for accurate battery mod.
^Nope, framework-res.apk
The images need to be added to drawable-hdpi 1 for every percent, for draining and charging, for a grand total of 200.
Then in drawable you need to edit stat_sys_battery.xml and stat_sys_batterycharge.xml to control the newly added images. The ROM does need to be deodexed, you're right about that.
Uot kitchen is great for stuff like this for beginners. Pick out your battery and whatever else you would like, upload the files, wait, download, flash, profit.
Thanks for the suggesstion! Ill give it a try.
Sent from my Desire HD using xda premium

SystemUI mods

Hi
I had played with Virtuous Ten Studio and i was trying to learn from scrats.
in the insanly cool sense there is an bad translation to danish in systemUI, in english the automatic brightness translated to automatisk lydstyrker, also automatic sound, in decompiled systemUI with VTS and edited the xml file for danish and then compiled the apk file again and pushed it to the device and checked for permission and edited them as they shoud in the file and rebooted.
i also tryed recompiled the apk and copyed it over on sd card, set permission and copy into system/app folder again and then reboots with same result
results was:
NO STATUSBAR i tryied everything but the only way i could fix it was using the orignial apk file again ?
what did i do wrong?
anders3408 said:
Hi
I had played with Virtuous Ten Studio and i was trying to learn from scrats.
in the insanly cool sense there is an bad translation to danish in systemUI, in english the automatic brightness translated to automatisk lydstyrker, also automatic sound, in decompiled systemUI with VTS and edited the xml file for danish and then compiled the apk file again and pushed it to the device and checked for permission and edited them as they shoud in the file and rebooted.
i also tryed recompiled the apk and copyed it over on sd card, set permission and copy into system/app folder again and then reboots with same result
results was:
NO STATUSBAR i tryied everything but the only way i could fix it was using the orignial apk file again ?
what did i do wrong?
Click to expand...
Click to collapse
Your ROM is deodexed?
and then i cant edit systemUI? :s
claudenegm said:
Your ROM is deodexed?
Click to expand...
Click to collapse
i got the same issue with a deodexed file... tried Vten, apktool but same issue..
but it must be pousible on some how, because the systemUI.apk file in the insanly cool sense 3.6 is not standart, it is modded. but how do we do it ? what are we doing wrong?
anders3408 said:
but it must be pousible on some how, because the systemUI.apk file in the insanly cool sense 3.6 is not standart, it is modded. but how do we do it ? what are we doing wrong?
Click to expand...
Click to collapse
not sure.. didn't find any guide on theming / modding Sense esp 3.6.. u have anything on it?
as i understands it, VTI can maby do it, it supports sense 3 and up, i have maby some link at my home laptop but not here at work
http://forum.xda-developers.com/showthread.php?t=1473293
http://forum.xda-developers.com/showthread.php?t=1645650
there is a start maby
Edit:
after reading the link about modding battery icon it makes sense :
Sense 4.0/3.6 (ICS)
1. Pull /system/app/SystemUI.apk from your phone
2. Rename SystemUI.apk to SystemUI.apk.zip
3. Using WinRAR copy attached "res" folder (in zip) directly into the root of SystemUI.apk.zip
4. Leave the settings and just hit OK.
5. Rename back to SystemUI.apk and push to device
*This method may work for Sense 3.6 ROMs as well. If not, see below.
i had read a place that the systemUI.apk is signed, and only works if it is signed, but when you decompile it and compile it again the sign disapper. therefore as i understands it you may not decompile the original systemUI.apk file, you just push the files that you edited in the file, as it say i point 3. i had not tried it out yet but i do to night and i may think it will work
anders3408 said:
as i understands it, VTI can maby do it, it supports sense 3 and up, i have maby some link at my home laptop but not here at work
http://forum.xda-developers.com/showthread.php?t=1473293
http://forum.xda-developers.com/showthread.php?t=1645650
there is a start maby
Edit:
after reading the link about modding battery icon it makes sense :
Sense 4.0/3.6 (ICS)
1. Pull /system/app/SystemUI.apk from your phone
2. Rename SystemUI.apk to SystemUI.apk.zip
3. Using WinRAR copy attached "res" folder (in zip) directly into the root of SystemUI.apk.zip
4. Leave the settings and just hit OK.
5. Rename back to SystemUI.apk and push to device
*This method may work for Sense 3.6 ROMs as well. If not, see below.
i had read a place that the systemUI.apk is signed, and only works if it is signed, but when you decompile it and compile it again the sign disapper. therefore as i understands it you may not decompile the original systemUI.apk file, you just push the files that you edited in the file, as it say i point 3. i had not tried it out yet but i do to night and i may think it will work
Click to expand...
Click to collapse
I always use the last method that you describe here when modding frameworks and SystemUI's, and had no problem so far with any ROM i modded/themed, not too many to be honest, i modified Sense v3.6's Battery only, but that change was in framework-res.apk not in the SystemUi.apk.
Don't know if this can help you in any way, but i believe feedback is always welcomed
Thanks for sharing guys, but i think i reached a point where i m successful in some thing atleast.. i'll play more & will update u how n what i did
fshami said:
Thanks for sharing guys, but i think i reached a point where i m successful in some thing atleast.. i'll play more & will update u how n what i did
Click to expand...
Click to collapse
Share the goodies with us
Lexmazter said:
Share the goodies with us
Click to expand...
Click to collapse
Sure, will give the exact details in a while
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
Finally i managed to change font colors .. still digging things
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
keep up the good works

[Q] Battery Icon to % in Senseless ROM

How to Change Battery Icon to % in Senseless Rom. Is there any flashable Zip to do so? If so please Provide it. Thanks by the way .
9291514329 said:
How to Change Battery Icon to % in Senseless Rom. Is there any flashable Zip to do so? If so please Provide it. Thanks by the way .
Click to expand...
Click to collapse
9291514329 said:
How to Change Battery Icon to % in Senseless Rom. Is there any flashable Zip to do so? If so please Provide it.
Thanks by the way . I loved ur Kernal. awesome. :good::good:
Click to expand...
Click to collapse
I don't know of any flashable zip out there, but you can make one
Learn to DIY (do it yourself ).
What you need is a archiver tool like WinRAR or any other archiver, take the framework-res.apk from system/framework of your senseless, and open it in the archiver tool or extract it in some folder, find the .png of the battery out there in the .apk, and you can replace the .png's with whatever icons you want, or you can use the kitchen to do this thing, search for tutorials out there in the www .
To make it you need a uot or apk tool. If you change only png you will get nothing.
File to change SystemUI.apk
Lex go back to cook your kernel
Sent from my HTC One X using xda premium
And the uot he means uot kitchen
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
stona175 said:
To make it you need a uot or apk tool. If you change only png you will get nothing.
File to change SystemUI.apk
Lex go back to cook your kernel
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
Well, i did it the way i said and it worked on Incredibly Cool Sense v3, the zip is out here There are various ways to get things done, i exemplified my way of doing this kind of things, with no apk tool and no kitchen
--
I also made a whole custom-edited rom using this method on the Dell Streak 5 , so it is possible.
--
I fogot to mention that after you change the /png, you copy all the contents of you folder you dezarchived in the .apk you opened with your archiver tool, in this way you don't need to sign the apk or other things like that

Categories

Resources