[Q] [AoCP 4.6][JB][4.1.2] Framework-res.apk, power_profile.xml ?

cigdaze

New member
Nov 28, 2012
2
0
0
Hello all,

I'm running an i777 with the 4.1.2~Jellybean~AoCP CP 4.6~The Collective (11/21/2012) ROM.

I've ditched the stock 1650mah battery in favor of an aftermarket 3500mah battery and although the battery is fantastic and gets me easily through 3 days of moderate use, the percentage of battery life remaining is naturally reporting erroneously. What I'm seeing is that it drops from 100% to 90% withing minutes of unplugging, then from 90% to about 50% it slows down a bit (maybe a few hours), and from 50% to near dead it takes days. So, essentially the battery minder is fairly inaccurate.

What I'd like to ask of y'all is:

(1) Would simply editing the [<item name="battery.capacity">1650</item>] variable within the power_profile.xml file suffice to "re-calibrate" the usage accuracy?

(2) Has anyone been able to successfully decompile & recompile a JB framework-res.apk file using apktool? I can decompile just fine, but it won't recompile no matter what I try (and I've searched and searched for an answer to no avail).

(3) Would anyone happen to know definitively whether the rest of the power usage numbers in the power_profile.xml file accurately reflect what the phone is truly consuming?

Thanks in advance.

For reference, following are the contents of the power_profile.xml file:

<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">75</item>
<item name="bluetooth.active">32</item>
<item name="bluetooth.on">0.3</item>
<item name="screen.full">201</item>
<item name="wifi.on">0.3</item>
<item name="wifi.active">83</item>
<item name="wifi.scan">52</item>
<item name="dsp.audio">34</item>
<item name="dsp.video">265</item>
<item name="radio.active">242</item>
<item name="radio.scanning">82</item>
<item name="gps.on">1</item>
<array name="radio.on">
<value>2.7</value>
<value>3</value>
</array>
<array name="cpu.speeds">
<value>12000000</value>
<value>10000000</value>
<value>800000</value>
<value>500000</value>
<value>200000</value>
</array>
<item name="cpu.idle">2</item>
<item name="cpu.awake">15</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
</device>
 

shoman94

Recognized Contributor
Mar 27, 2009
8,902
12,311
0
Maine
Hello all,

I'm running an i777 with the 4.1.2~Jellybean~AoCP CP 4.6~The Collective (11/21/2012) ROM.

I've ditched the stock 1650mah battery in favor of an aftermarket 3500mah battery and although the battery is fantastic and gets me easily through 3 days of moderate use, the percentage of battery life remaining is naturally reporting erroneously. What I'm seeing is that it drops from 100% to 90% withing minutes of unplugging, then from 90% to about 50% it slows down a bit (maybe a few hours), and from 50% to near dead it takes days. So, essentially the battery minder is fairly inaccurate.

What I'd like to ask of y'all is:

(1) Would simply editing the [<item name="battery.capacity">1650</item>] variable within the power_profile.xml file suffice to "re-calibrate" the usage accuracy?

(2) Has anyone been able to successfully decompile & recompile a JB framework-res.apk file using apktool? I can decompile just fine, but it won't recompile no matter what I try (and I've searched and searched for an answer to no avail).

(3) Would anyone happen to know definitively whether the rest of the power usage numbers in the power_profile.xml file accurately reflect what the phone is truly consuming?

Thanks in advance.

For reference, following are the contents of the power_profile.xml file:

<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">75</item>
<item name="bluetooth.active">32</item>
<item name="bluetooth.on">0.3</item>
<item name="screen.full">201</item>
<item name="wifi.on">0.3</item>
<item name="wifi.active">83</item>
<item name="wifi.scan">52</item>
<item name="dsp.audio">34</item>
<item name="dsp.video">265</item>
<item name="radio.active">242</item>
<item name="radio.scanning">82</item>
<item name="gps.on">1</item>
<array name="radio.on">
<value>2.7</value>
<value>3</value>
</array>
<array name="cpu.speeds">
<value>12000000</value>
<value>10000000</value>
<value>800000</value>
<value>500000</value>
<value>200000</value>
</array>
<item name="cpu.idle">2</item>
<item name="cpu.awake">15</item>
<array name="cpu.active">
<value>577</value>
<value>408</value>
<value>249</value>
<value>148</value>
<value>55</value>
</array>
<item name="battery.capacity">1650</item>
</device>
1- I would say yes.
2- likely your errors are plural errors? Idk since you didn't post a log. The plurals needed fixing for it to compile again. This had been published on here in many threads.
3- I would leave the rest alone.

Sent from my SGH-I777 using Tapatalk 2
 

cigdaze

New member
Nov 28, 2012
2
0
0
1- I would say yes.
2- likely your errors are plural errors? Idk since you didn't post a log. The plurals needed fixing for it to compile again. This had been published on here in many threads.
3- I would leave the rest alone.

Sent from my SGH-I777 using Tapatalk 2
Many thanks for the reply and your advice. In my process of elimination, I decided to use another PC and try another attempt to de/recompile and I was successful this time - apparently I had an outdated aapt file the first go-around.

I just flashed my cloned ROM with the new framework-res.apk using the modified power_profile.xml file. So far so good. I'll report back how the battery monitor behaves after a couple cycled.

Thanks again, SHO.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone