battery mod - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello,
I found this thread :
http://forum.xda-developers.com/showthread.php?t=765419
and I have some questions about this :
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
4) Do you know an other easylier method to tweak icons on the HD2 under android ?
Thanks a lot !

+1 I asked myself to but no time to seach forum

@Karlichon
What is with this batmod? Are you done with them?

karlichon said:
1) Is it possible to "tweak" our framework-res.apk with this battery mod.
2) Can I use this method to "tweak my framework-res.apk : http://circle.glx.nl/
3) When I download my new framework-res.apk, how to boot on recover mode on the phone to put the framework-res.apk on the system ?
Thanks a lot !
Click to expand...
Click to collapse
Ok I think I'll answer this, but bear with me as it's NOT easy or for the faint of heart. If you read this and you DO NOT feel comfortable I would recommend you not giving this a go.
Before you start ANY of these steps below, MAKE SURE YOU BACKUP YOUR FILES BEFORE REPLACING THEM. I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED FOLLOWING THESE STEPS! You have been warned.
1) Visit the website above and run through the steps to get the battery images you want. For the purposes of this tutorial/howto I am not covering how to change anything else (KISS: Keep It Simple, Stupid).
2) The easiest ones to change are the Version A-I ones, just choose which battery set would work best for you on your phone and click "Next"
3) Choose "Do not include icons" and click next. The icons it is talking about here are the signal, wifi, usb etc notification bar icons and as I mentioned I will not cover how to change those here.
4) Leave "Do not change notification status bar" selected and click next. Again I'm not covering that here.
5) You can choose a different boot anim if you want, they are very easy to upload to your phone and you can figure out where they have to be put yourself with no problems. IMPORTANT: If you do change the boot animation, make sure you choose the correct type of rom you have from the dropdown selection.
6) Upload your existing framework-res.apk (using something like DroidExplorer, navigate to /system/framework and paste it onto your desktop, then upload here). This will update the relevant files in your framework-res.apk automatically. (If you cannot obtain your existing framework-res.apk I cannot guarantee method 2 will work, sorry but feel free to try)
7) Replace your framework-res.apk (via DroidExplorer or your chosen ADB browser) on your phone and reboot. Voila!
This worked for me on shubcraft 2.0 drop mode but obviously I cannot guarantee it will work for everyone. Please remember my warnings above that this is not guranteed.

hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?

karlichon said:
hello, thanks for your quick help, but it doesn't work for hyperdroid rom V1.7
any idea ?
Click to expand...
Click to collapse
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.

I tried the kitchen method, but I receive a huge error log after uploading the framework apk

is the page currently partly down?

rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
It doesn't seem to work all that well with frameworks from our current modded builds. I've tried it with a rooted desire framework (from my gf's desire) and that worked. Evidently all the work that the devs do on our hd2's make them very different to other android builds. the second method I posted (adding the png's to your existing framework) works perfectly.
BlackPit666 said:
is the page currently partly down?
Click to expand...
Click to collapse
Nope, seems up to me.

yes its up again

rafpigna said:
I tried the kitchen method, but I receive a huge error log after uploading the framework apk
Click to expand...
Click to collapse
for me the same, desirehd revolution rom of mdj
can anybody help me?

Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
can you tell me which files i need to replace to get another battery icon? only the files which "batt" in it?

Reno_79 said:
there is another far more complicated way around it, but it really does take about half an hour to work out.
Basically, you need to get your framework-res.apk and extract it with winrar or something similar (an apk is basically just a zip file) and find the folder called res/drawable-HDPI. this is where all the icons for things like your battery icons live.
Copy and paste the new icons from someone elses framework-res or even one you download from the website above into this folder and replace the drawable-HDPI folder into your framework-res.apk, replace it onto your phone and reboot.
Again, this is a quick description of a much lengthier way of doing it but it does work. Also, my disclaimer in the post I made before still stands, do this AT YOUR OWN RISK and do NOT complain to me if something breaks. If you don't fully understand, don't do anything.
Click to expand...
Click to collapse
This method will not work with the battery icons which shows all 100% increments. This method will only work for the standard battery icons, which only involves like 12 battery icons.
In order to add the 1% increment readings in the battery, it involves modifying xml files to read and associate the correct battery icons at each increment.

can you give a tut how to add the version a manually?

nvm, I got it!

Related

[Q] How to edit theme images and not have phone hang on boot?

I've figured out all apk files are really just zip files, but why am I not able to unzip the framework-res.apk file, edit the images within, then save it again without causing my phone to hang on boot?
Is there some step I am missing? I've tried rezipping with normal compression, store only, and only photoshopping and resaving a single image within the apk and still it fails.
How are images edited and updated? What am I missing?
I use apkmanager myself for most theming. You might look into it
Sent from my SCH-I500 using XDA App
An apk is a zip, but it's a *signed* zip
Sent from my SCH-I500 using XDA App
Here is the way I do it. I use 7zip to do this and I think it is the only program that can do it.
The way you can do it is to extract the drawable-hdpi folder within the framework-res.apk then do all your edits and save them with the exact same file names. Then you can go back into your framework-res.apk and drag and drop the drawable-hdpi folder back in and it will over write the original ones. Now just hit the Up (like to move up a directory) button until you see the message "framework-res.apk has been changed. Update it in the archive?" then click yes. Now you can put it on your phone without force closing. If you were just editing framework-res and it was not within another .zip file then you won't get that message and that is fine.
APK Manager.
You can use extract/zip (2/3) for image-only edits, but you need to decompile/compile (9/11) to mess with xml files.
Do *not* sign system apks (like framework-res.apk). Do sign other apks.
Btw, this is in the wrong forum.
(Next step: learn about the update.zip packaging script. Remember to name it something besides update.zip afterwards, because on the Fascinate we're installing everything through Clockwork, which should be the only file actually called update.zip.)
s44 said:
APK Manager.
You can use extract/zip (2/3) for image-only edits, but you need to decompile/compile (9/11) to mess with xml files.
Do *not* sign system apks (like framework-res.apk). Do sign other apks.
Click to expand...
Click to collapse
Oooh! I didn't know this app made xml's editable. That opens up a whole new set of theming fun. I can't wait to release my new theme. It should be well received (I hope)
Btw, this is in the wrong forum.
Click to expand...
Click to collapse
I considered putting this in Themes, but this was a theme development question, so here it ended up. If the Theme and Development forums ever hook up and have a few drinks, then spawn a sub-forum, Theme Development, I assure you it would have been a much easier decision to make
Thanks everyone for helping me out. My last time playing with a phone is an old WinMo 5 device. Anroid seems limiting in it's own ways (no dedicated theme files (can't update without losing the apk theme), but much better for customizing for a 'look' of the OS.

[Q] A500 status bar icons/clock/buttons change?

Hi to all...
after seraching and reading a looong time now, i am stucked, the only thing i found was this: http://forum.xda-developers.com/showthread.php?t=1033366
But i own a A500 not a Xoom... so what to do?
Wishlist:
- White Home/Backbuttons (have some, from Dexters Rom)
- white clock
- white Wifi/Battery Icon (at least not this &%$(/& stock blue)
dreaming:
when you scroll through your homescreens, a blue frame appears, how can i change those color into black? would be awesome, let it completly disappear, so transparent maybe?
I know many of you like the Blue Theme from honeycomb, but... i really hat it!!!
So, if anyone could help me... please feel free.
I am using Dexters Iconia P2-2, and dont want to use another. So maybe someone can post a modified systemui.apk ?
I have no idea if such a apk is always compatible to all ROMs from 3.1, so i dont want to test the Xoom one, and in this apk are things i dont want to have (like green google search bar, green glow and so on) modding,opening apk files by myself... i think its easier for me went back in time and kill hitler...
I wonder why there is no real theme mod around here for the Acer A500.
Hope some knowing guys can help, or want the same... let's see
Thank you anyway
Derrico said:
modding,opening apk files by myself... i think its easier for me went back in time and kill hitler...
Click to expand...
Click to collapse
thats easy....I can tell you how to do it yourself..
NOTE: an apk is just a zip file, do not decompress these, rather double click them and open them in winrar and you can see the contents.
Download the xoom theme, and there is a folder called "System App" this has the apk you want to play with. inside each apk there is a file called "res" inside this there are a few folders, the ones you are interested in are any named "drawable..." this is where all of the graphics are held.
then open the zip the rom comes in, i.e double click and winrar will open, go to system\app and find the same apk that are contained in the theme, then it is a process of swapping the files from one to the other.
when you are finished making changes, copy your edited apk back into your rom and flash it without wiping data, because it is the same rom nothing will happen apart from th4e new apk will be installed!!
Hope that helps...
MG
Wow, great insight! Thanks MysticGenius. I had no idea the .apk's were just archives and could be opened up
gammaRascal said:
Wow, great insight! Thanks MysticGenius. I had no idea the .apk's were just archives and could be opened up
Click to expand...
Click to collapse
yeah, this is what I love about android, you can take someone elses rom, skin the apk to your liking, even add missing applications you use regularly and just flash.
as long as you dont decompress, the signature usually stays intact.
if you need further assistance, pm me
edit : most imagery is in the drawable-mdpi folder
I just skinned the systemui.apk is 10 minutes just so you have an idea of how easy this is!!!!

Transparent statusbar...!!! Guide needed!!!

I'm [12.Aug.2012] NexusHD2-ICS-4.0.4-CM9-HWA V2.6 (Kernel: tytung_HWA_r3.4) And tried hard for a mod to make its statusbar transparent...!!!:fingers-crossed::fingers-crossed::fingers-crossed:
Followed this guide but failed as it resulting no statusbar at the end.
Please can anybody guide us(noobs) with a proper tutorial for systemUI.apk mods for our leo???
Been looking for one as well, always end up stuffing mine up.
I'm not sure which guide you followed but you can try this one - http://forum.xda-developers.com/showpost.php?p=20654552&postcount=3
And if you are looking for different mods in general check out the SGN Themes&Apps section http://forum.xda-developers.com/forumdisplay.php?f=1340
It's way more active when it comes to mods&themes compared to the HD2 section (Which consists mostly of Questions and Disscusions anyway )
gogodu5sU said:
I'm not sure which guide you followed but you can try this one - http://forum.xda-developers.com/showpost.php?p=20654552&postcount=3
And if you are looking for different mods in general check out the SGN Themes&Apps section http://forum.xda-developers.com/forumdisplay.php?f=1340
It's way more active when it comes to mods&themes compared to the HD2 section (Which consists mostly of Questions and Disscusions anyway )
Click to expand...
Click to collapse
Sorry this is the guide I followed!!!!
http://forum.xda-developers.com/show....php?t=1523703
jhha said:
Sorry this is the guide I followed!!!!
http://forum.xda-developers.com/show....php?t=1523703
Click to expand...
Click to collapse
You were right, this guide - http://forum.xda-developers.com/showthread.php?t=1523703 works well.
I actually never sign SystemUI.apk nor framework-res.apk, never had a problem with that, so you can skip that part.
Try APK Multi-Tool - http://forum.xda-developers.com/showthread.php?t=1310151
and don't forget to drop framework-res.apk into Apk_Multi-Tool\other
next open Command prompt and navigate to that folder
type
Code:
apktool if framework-res.apk
and you should be ready to de- and recompile.
Attached is 100% transparent and 50% transparent. (have not tested 50% though)
Flash in recovery.
grumbles
im trying to figure this out for the rom in my sig which is a jb rom
but that guide did help me at all lol
none of the code matched up
Thanks those two mods worked, thanks.
Kameirus said:
grumbles
im trying to figure this out for the rom in my sig which is a jb rom
but that guide did help me at all lol
none of the code matched up
Click to expand...
Click to collapse
Probably because it's a different version of Android
Permissions???
gogodu5sU said:
You were right, this guide - http://forum.xda-developers.com/showthread.php?t=1523703 works well.
I actually never sign SystemUI.apk nor framework-res.apk, never had a problem with that, so you can skip that part.
Try APK Multi-Tool - http://forum.xda-developers.com/showthread.php?t=1310151
and don't forget to drop framework-res.apk into Apk_Multi-Tool\other
next open Command prompt and navigate to that folder
type
Code:
apktool if framework-res.apk
and you should be ready to de- and recompile.
Attached is 100% transparent and 50% transparent. (have not tested 50% though)
Flash in recovery.
Click to expand...
Click to collapse
Thanks man I'll definitely try with this & let you know & many thanks for the modded zips(till I learn how to manipulate SystemUI.apk successfully my leo can enjoy it!:highfive::highfive::highfive! Thanks again.!
I found this guide too...!!! :fingers-crossed::fingers-crossed::fingers-crossed:
http://rootzwiki.com/topic/31785-co...ng-and-recompiling-jb-systemuiapk-jelly-bean/
& managed to compile the SystemUI.apk but still it results in absent status bar in either way of following
1. Replacing the original SystemUI.apk in the ROM with the modded one & installing the ROM(Tried both signed & unsigned versions)
2. After installing the original ROM & later replace the SystemUI.apk with the modded one with root explorer (Tried signed version)
But when I Edit the permission(with root explorer) of the modded SystemUI.apk copied to the system folder (As in 2nd method), as for other system apps it worked. :cyclops::laugh::laugh::laugh:
I cant understand in which step I made things wrong! In which step we manage permissions of an app while decompiling, compiling or modding.!
It'd be nice if somebody can direct me right.! Love to learn from XDA...!!!
Kameirus said:
grumbles
im trying to figure this out for the rom in my sig which is a jb rom
but that guide did help me at all lol
none of the code matched up
Click to expand...
Click to collapse
Try above link...!!! Its originally for JB...!!!:laugh:
jhha said:
Thanks man I'll definitely try with this & let you know & many thanks for the modded zips(till I learn how to manipulate SystemUI.apk successfully my leo can enjoy it!:highfive::highfive::highfive! Thanks again.!
I found this guide too...!!! :fingers-crossed::fingers-crossed::fingers-crossed:
http://rootzwiki.com/topic/31785-co...ng-and-recompiling-jb-systemuiapk-jelly-bean/
& managed to compile the SystemUI.apk but still it results in absent status bar in either way of following
1. Replacing the original SystemUI.apk in the ROM with the modded one & installing the ROM(Tried both signed & unsigned versions)
2. After installing the original ROM & later replace the SystemUI.apk with the modded one with root explorer (Tried signed version)
But when I Edit the permission(with root explorer) of the modded SystemUI.apk copied to the system folder (As in 2nd method), as for other system apps it worked. :cyclops::laugh::laugh::laugh:
I cant understand in which step I made things wrong! In which step we manage permissions of an app while decompiling, compiling or modding.!
It'd be nice if somebody can direct me right.! Love to learn from XDA...!!!
Try above link...!!! Its originally for JB...!!!:laugh:
Click to expand...
Click to collapse
yes ive seen that thanks
found out last night that the status bar transparency on jb cant be done yet
pier10 said:
Unfortunately, there's still no hack on CM10 ...the .smali files (that need to modify) isn't exist in JB.
It's rather easy on CM9. Here's the guide http://forum.xda-developers.com/showthread.php?t=1523703
btw, the notification is transparent on this theme
Click to expand...
Click to collapse
im gonna try and figure out the notification pull down later today
jhha said:
Thanks man I'll definitely try with this & let you know & many thanks for the modded zips(till I learn how to manipulate SystemUI.apk successfully my leo can enjoy it!:highfive::highfive::highfive! Thanks again.!
I found this guide too...!!! :fingers-crossed::fingers-crossed::fingers-crossed:
http://rootzwiki.com/topic/31785-co...ng-and-recompiling-jb-systemuiapk-jelly-bean/
& managed to compile the SystemUI.apk but still it results in absent status bar in either way of following
1. Replacing the original SystemUI.apk in the ROM with the modded one & installing the ROM(Tried both signed & unsigned versions)
2. After installing the original ROM & later replace the SystemUI.apk with the modded one with root explorer (Tried signed version)
But when I Edit the permission(with root explorer) of the modded SystemUI.apk copied to the system folder (As in 2nd method), as for other system apps it worked. :cyclops::laugh::laugh::laugh:
I cant understand in which step I made things wrong! In which step we manage permissions of an app while decompiling, compiling or modding.!
It'd be nice if somebody can direct me right.! Love to learn from XDA...!!!
Try above link...!!! Its originally for JB...!!!:laugh:
Click to expand...
Click to collapse
Permissions are set in the AndroidManifest.xml. (in the root folder of the decompiled apk)
Sometimes, if an app is asking for "wierd" permissions which i/it doesn't need i just delete those lines from that file.
But in your case, i don't know what happend.
Kameirus said:
yes ive seen that thanks
found out last night that the status bar transparency on jb cant be done yet
im gonna try and figure out the notification pull down later today
Click to expand...
Click to collapse
Sorry Kameirus
but i can't help you with that either, i guess you would be better off downloading the jellybean source
and try to mod it that way or wait until somebody else does.
I don't think that those "smalis" don't exist, they are just named differently
and overall just different since it's a new android version.
My guess would be, if you want to add transparency you might want to look at:
SystemUI.apk\smali\com\android\systemui\statusbar\BaseStatusBar.smali
If you are going to learn a bit about smali, you could try Virtuous Ten Studio - http://forum.xda-developers.com/showthread.php?t=1619473
It makes smali's a bit easier on the eye and has a nice smali-guide within.
gogodu5sU said:
Permissions are set in the AndroidManifest.xml. (in the root folder of the decompiled apk)
Sometimes, if an app is asking for "wierd" permissions which i/it doesn't need i just delete those lines from that file.
But in your case, i don't know what happend.
Sorry Kameirus
but i can't help you with that either, i guess you would be better off downloading the jellybean source
and try to mod it that way or wait until somebody else does.
I don't think that those "smalis" don't exist, they are just named differently
and overall just different since it's a new android version.
My guess would be, if you want to add transparency you might want to look at:
SystemUI.apk\smali\com\android\systemui\statusbar\BaseStatusBar.smali
If you are going to learn a bit about smali, you could try Virtuous Ten Studio - http://forum.xda-developers.com/showthread.php?t=1619473
It makes smali's a bit easier on the eye and has a nice smali-guide within.
Click to expand...
Click to collapse
thanks
i saw that smali a little while ago when i was going thru the folders
ill look at it later after i get home
thanks for the tip
well no luck lol
but i did learn how to flash a backup blindfolded lmao
Ok I think I figured out whats the problem is with my compiling...!!!
When you run the compile it ask to replace every thing that not modified from the original. I chose "yes" earlier all the time! But when I select "no"
I could get a working SystemUI.apk even without zipaligning or signing.! :cyclops::cyclops::cyclops:
Learning something everyday!

[Q] Tweaking Nexus 4 (SystemUI.apk/framework-res.apk)

Hi guys.
I am trying to tweak my phone by my self and was wondering about how to do it.
What I want to do is change the battery icon in the notification bar to show percentages. I know there's already a flashable mod available, but I wanted to use my own icons and to learn how to do the mods my self so that I can modify the phone more to my tastes my self. (You know, since I do own a nexus phone now) (Also, I completely agree with what efrant said in his post about knowing about how to do things yourself, not only how to use 1-click tools and ask people "Help!! I bricked my phone!!" without knowing what I did wrong..)
I used to own a galaxy s and had changed the battery icon there by modifying the framework-res.apk file, but when I downloaded the existing battery percentage mod, I found that the modder actually changed the SystemUI.apk file, so I'm kinda stumped.
The process I used to modify the galaxy s was:
- Uncompile the framework-res.apk using apkmanager
- Edit the /res/drawable/stat_sys_battery.xml and /res/drawable/stat_sys_battery_charge.xml files
- Put the new icons into /res/drawable-hdpi
- Recompile the apk to unsignedframework-res.apk
- Open both the original framework-res.apk and unsignedframework-res.apk and move the edited files and icons from framework-res.apk to unsignedframework-res.apk
- Copy /resources.arsc from unsignedframework-res.apk to framework-res.apk
- Done.
So to summarize, my question is: Is the process I used okay for the Nexus 4? If there are any differences what are they and what do I have to do.
Of course, I would be grateful if I could get a detailed guide to modifying the phone, since I'm kind of a noob when it comes to doing my own modifications.
bef0re y0u d0 that, can y0u share y0ur framework-res and SystemUI?? I want t0 m0d my htc desire....
sakithree said:
Hi guys.
I am trying to tweak my phone by my self and was wondering about how to do it.
What I want to do is change the battery icon in the notification bar to show percentages. I know there's already a flashable mod available, but I wanted to use my own icons and to learn how to do the mods my self so that I can modify the phone more to my tastes my self. (You know, since I do own a nexus phone now) (Also, I completely agree with what efrant said in his post about knowing about how to do things yourself, not only how to use 1-click tools and ask people "Help!! I bricked my phone!!" without knowing what I did wrong..)
I used to own a galaxy s and had changed the battery icon there by modifying the framework-res.apk file, but when I downloaded the existing battery percentage mod, I found that the modder actually changed the SystemUI.apk file, so I'm kinda stumped.
The process I used to modify the galaxy s was:
- Uncompile the framework-res.apk using apkmanager
- Edit the /res/drawable/stat_sys_battery.xml and /res/drawable/stat_sys_battery_charge.xml files
- Put the new icons into /res/drawable-hdpi
- Recompile the apk to unsignedframework-res.apk
- Open both the original framework-res.apk and unsignedframework-res.apk and move the edited files and icons from framework-res.apk to unsignedframework-res.apk
- Copy /resources.arsc from unsignedframework-res.apk to framework-res.apk
- Done.
So to summarize, my question is: Is the process I used okay for the Nexus 4? If there are any differences what are they and what do I have to do.
Of course, I would be grateful if I could get a detailed guide to modifying the phone, since I'm kind of a noob when it comes to doing my own modifications.
Click to expand...
Click to collapse
Sounds like it should still work. The only difference is the nexus uses xhdpi images, but the hdpi will still work as well.
Sent from my Nexus 4 using xda premium

Battery Drain Fix (Stock KK/CM11)

- Unzip and copy this file (power_profile.xml) with winRAR to your current framework-res.apk (res/xml)
- Flash your rom again
- wipe cache and dalvik
(decompiling and recompiling not needed !)
- Unzip and copy this file (power_profile.xml) with winRAR to your current framework-res.apk (res/xml)
- Flash your rom again
Click to expand...
Click to collapse
If you flash your rom again, the edited framework-res.apk will get overwritten, so what's exactly the point of editing it?
And what does this change exactly do?
zxz0O0 said:
If you flash your rom again, the edited framework-res.apk will get overwritten, so what's exactly the point of editing it?
Click to expand...
Click to collapse
You decompress your rom and put that file on framework-res/res/xml with winRAR and you repack your rom again. That's all !
Update : fix radio voltage
marouane80 said:
- Unzip and copy this file (power_profile.xml) with winRAR to your current framework-res.apk (res/xml)
- Flash your rom again
Click to expand...
Click to collapse
This is just plain wrong on so many levels...
1. Don't tinker with an .apk unless you decompiled it. With your way you will inevitable break zipalign, thus slowing everything down.
2. The power_profile.xml you provided is already pre-compiled. Why?
3. You flash the Rom again - This overwrites the changes you made before. Lee me guess, without going back to the original framework you device did not boot? That is because you not only broke zipalign, but also the .apk's signature. So the system refuses to install the vital framework.
I said it before in one of your threads. Be careful on what you upload here, as people usually trust xda and, excuse my language, rubbish like yours is of no use for anyone...
I hope you realize that by now.
So long...
Wooaarr said:
This is just plain wrong on so many levels...
1. Don't tinker with an .apk unless you decompiled it. With your way you will inevitable break zipalign, thus slowing everything down.
2. The power_profile.xml you provided is already pre-compiled. Why?
3. You flash the Rom again - This overwrites the changes you made before. Lee me guess, without going back to the original framework you device did not boot? That is because you not only broke zipalign, but also the .apk's signature. So the system refuses to install the vital framework.
I said it before in one of your threads. Be careful on what you upload here, as people usually trust xda and, excuse my language, rubbish like yours is of no use for anyone...
I hope you realize that by now.
So long...
Click to expand...
Click to collapse
you can verify it by decompiling your new framework-res.apk and compare it with stock one.
just for sharing with people
if you don't like it so it's not for you and don't use it. it's simple
marouane80 said:
you can verify it by decompiling your new framework-res.apk and compare it with stock one.
if you don't like it so it's not for you and don't use it. it's simple
Click to expand...
Click to collapse
If you upload something that is wrong, than I think it is fair enough if I say something. It seems you find stuff on the internet and just upload it as 'new' here.
Anyway best of luck with your endeavors. I'm out...
Wooaarr said:
If you upload something that is wrong, than I think it is fair enough if I say something. It seems you find stuff on the internet and just upload it as 'new' here.
Anyway best of luck with your endeavors. I'm out...
Click to expand...
Click to collapse
who told you that ??? give me the link where you found my work !
i think you are a little bit paranoid. don't use anything from me or talk to the moderator or specialist, he can verify my files !
please leave this thread alone
if someone want to verify. see these two files and compare them
marouane80 said:
who told you that ??? give me the link where you found my work !
i think you are a little bit paranoid. don't use anything from me or talk to the moderator or specialist, he can verify my files !
please leave this thread alone
Click to expand...
Click to collapse
Ok I said I'm out, but you are pushing it...
Do you have any idea what the power_profile.xml actually does?
It provides consumption values to the framework, so that this may properly calculate the battery consumption. Changing values in there won't change anything else then the readings in the battery report or apps that call upon that data.
It will in no way affect the actual energy consumption, so I stand by what I said before.
You provide a not working thing, period!
If you don't believe me read more about it over
here...
Anyway that's it from me, good luck...
Wooaarr said:
Ok I said I'm out, but you are pushing it...
Do you have any idea what the power_profile.xml actually does?
It provides consumption values to the framework, so that this may properly calculate the battery consumption. Changing values in there won't change anything else then the readings in the battery report or apps that call upon that data.
It will in no way affect the actual energy consumption, so I stand by what I said before.
You provide a not working thing, period!
If you don't believe me read more about it over
here...
Anyway that's it from me, good luck...
Click to expand...
Click to collapse
u're wrong. it works for me :good:
there are many errors when compiling roms from cyanogenmod and stock rom by sony and samsung and others. see my sound fix thread for example you will see the difference ! cyanogenmod didn't fix that sound problem yet !
http://forum.xda-developers.com/sony-xperia-z1-compact/general/cm11-sound-fix-ultimate-t2861135
And as you can see on stock rom or cm11 give a high value (for radio, BT,GPS, screen-on or cpu idle) will drain battery fast !
compare the two files decompiled !
So what is about with this mod? What are the benefits of using this? Can someone confirm working this? I read this discusion and i dont know its safe or i brick my device?
it really works for me. i never upload that never works or never tested. i got a great battery life after found this solution : two days with heavy usage. believe it or not ! make a backup and test. better you decompile and modify the values like uploaded here. :good:
ok so can you adviced me what i need to do?
im using stsock kk russian second edition 108.
what i need to change or is any option to create flashable zip file to instal it via recovery or i need to push it manually? why i need to flash new firmware after this operation? after flashing i understand that all of my data will erased with all settings and all my file will be cleaned ? i dont udnerstand why it wouldnt works after flashing? maybe you could post some instructions step by step to clean up everything im a little bit scared that i can brick my phone or something.
cheers
I see that it was mentioned before, but it seems it went unheard.
This mod will not work because of the simple reason that the second step overwrites the change!
Flashing the ROM again will remove the modified framework-res.apk file.
You can try and see for yourself. after doing the steps, unpack the apk again and see which power_profiles.xml is there.
I'm pretty sure you'll find the default one.
Also, the file has nothing to do with actual power consumption, as is mentioned in the Android documentation.
I hate to say it but the battery improvement you noticed is just a placebo
If you really want us to believe it works, then at least show us what you got. A screenshot of battery usage and screen time are a good proof
oshmoun said:
I see that it was mentioned before, but it seems it went unheard.
This mod will not work because of the simple reason that the second step overwrites the change!
Flashing the ROM again will remove the modified framework-res.apk file.
You can try and see for yourself. after doing the steps, unpack the apk again and see which power_profiles.xml is there.
I'm pretty sure you'll find the default one.
Also, the file has nothing to do with actual power consumption, as is mentioned in the Android documentation.
I hate to say it but the battery improvement you noticed is just a placebo
If you really want us to believe it works, then at least show us what you got. A screenshot of battery usage and screen time are a good proof
Click to expand...
Click to collapse
I think he means open the ZIP of your Rom on PC, put that file in and then put the Rom to phone again and flash it over your current Rom.
And yes, a proof would be good
Is there any way to fix/improve battery life on CM11? Z1C with the same usage on stock rom gets over 2.5x longer battery life.
marouane80 said:
- Unzip and copy this file (power_profile.xml) with winRAR to your current framework-res.apk (res/xml)
- Flash your rom again
- wipe cache and dalvik
(decompiling and recompiling not needed !)
Click to expand...
Click to collapse
Well, I replaced in the archive file, but how to pack in the APK?
P.S Understood with the help of Root Explorer
oshmoun said:
I see that it was mentioned before, but it seems it went unheard.
This mod will not work because of the simple reason that the second step overwrites the change!
Flashing the ROM again will remove the modified framework-res.apk file.
You can try and see for yourself. after doing the steps, unpack the apk again and see which power_profiles.xml is there.
I'm pretty sure you'll find the default one.
Also, the file has nothing to do with actual power consumption, as is mentioned in the Android documentation.
I hate to say it but the battery improvement you noticed is just a placebo
If you really want us to believe it works, then at least show us what you got. A screenshot of battery usage and screen time are a good proof
Click to expand...
Click to collapse
you got a bad or an oudated apktool. i don't have any error after decompiling. try it by yourself !
it's not a placebo. it's my work
John.D.. said:
Well, I replaced in the archive file, but how to pack in the APK?
P.S Understood with the help of Root Explorer
Click to expand...
Click to collapse
sorry but you must have some basic knowledge on decompiling to make the change. if you don't know what is decomiling/compiling, juste take the file and put it like in OP. thanx
marouane80 said:
sorry but you must have some basic knowledge on decompiling to make the change. if you don't know what is decomiling/compiling, juste take the file and put it like in OP. thanx
Click to expand...
Click to collapse
Yes, but it was very simple) I just renamed the Root Explorer in zip archive, there has replaced the file, and then simply copied the zip on the apk, it works)
but how does it affect the battery, I still do not understand

Categories

Resources