Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD]Auto Brightness Patch - add battery life to One S - Now with APM for JB 16.12.

OP he_stheone64

6th May 2012, 09:19 AM   |  #1  
he_stheone64's Avatar
OP Recognized Contributor / Themer
Flag Düsseldorf
Thanks Meter: 10,781
 
4,989 posts
Join Date:Joined: Aug 2008
More
Auto Brightness Patch, Advanced Power Menu & Menu Remaps

HTC has coded fairly generous Auto Brightness values into their framework, which is better then the ultra dark values, that plagued Galaxy Nexus users. Anyway I analyzed the code and decreased the values depending on the level between 10% and 20%. The new values are still fairly bright, but will have a decent impact on your battery life. Since the display consumes about 2/3 of battery especially during browsing sessions or gaming, this mod can add up to 10% of battery life to your device, depending on your usage pattern (especially while browsing). I also added a "back to stock" zip, which helps you to return to previous state without any issues. A Nandroid is nevertheless strongly recommended before you flash this mod.

Note: PLEASE don`t ask for screenshots


What do you need?
  • Unlocked and rooted device
  • Deodexed Sense ROM - this mod should work on all Virtuous based ROM`s


How to flash:
  • Download the update.zip and copy on your SD
  • Boot in recovery and flash





Download APM for Virtuous Ville jellybean RC1

http://sdrv.ms/USJ0Fx

Download back to stock Power Menu Virtuous Ville jellybean RC1

http://sdrv.ms/VJ7hz2


Download for 1.78 Base:

http://minus.com/mmzKoWs46/


Download back to stock framework 1.78 Base

http://minus.com/mmzKoWs46/5


Download incl. Advanced Power Menu for 1.78 Base

http://minus.com/mmzKoWs46/9


Download for 1.53 & 1.70 Base:

http://minus.com/mbn5xXgCkk/17


Download back to stock framework 1.53 Base

http://minus.com/mbn5xXgCkk/16


Download incl. Advanced Power Menu for 1.53 & 1.70 Base

http://minus.com/mbn5xXgCkk/18



ALL IN ONE MOD For Deodexed 1.78 ROM base

As promised here is the "ALL IN ONE" Mod for deodexed 1.78 Base. ROM dev`s can certainly include this in their ROM`s, but please ask and insert credit in your threads.

Credits: Virtuous Team and blubbers for original Remapping Mod`s on 1.53 base
Me for Auto Brightness and porting custom Menu & APM to latest platform

  • Auto Brightness Patch to improve battery life
  • Remapped recents button to Menu
  • Longpress Menu remappped to recents
  • Removed annoying 3-dot menu
  • Advanced Power Menu

How to install:
  • Flash update.zip in recovery
  • Insert the following line in build.prop (you can use Root Explorer, dev´s will certainly insert that with Notepadd++ in their build.prop) somewhere in the ADDITIONAL_BUILD_PROPERTIES section and reboot after the change

qemu.hw.mainkeys=1


If you prefer ADB:

adb pull /system/build.prop build.prop

then edit in Notepad ++, then push build.prop from fastboot folder with:

adb shell sysrw
adb push build.prop /system/

Set 644 permissions:

adb shell
su
chmod 644 /system/build.prop


Download:

http://minus.com/mmzKoWs46/8


Menu Remap inkl. Longpress Version for stock Odexed 1.78 ROM - made by ovimunt with my friendly PM support


Download Menu Remap:

http://sdrv.ms/LjUALE


Back to stock:

http://sdrv.ms/LjUsMc
Last edited by he_stheone64; 16th December 2012 at 12:07 PM.
The Following 23 Users Say Thank You to he_stheone64 For This Useful Post: [ View ]
6th May 2012, 10:42 AM   |  #2  
xkonni's Avatar
Senior Member
berlin
Thanks Meter: 723
 
361 posts
Join Date:Joined: Jan 2010
Donate to Me
Nice! Could you just post the changed files in framework-res too?
Or i'll just diff later :)


Sent from my HTC One S
Last edited by xkonni; 6th May 2012 at 10:45 AM.
6th May 2012, 11:07 AM   |  #3  
he_stheone64's Avatar
OP Recognized Contributor / Themer
Flag Düsseldorf
Thanks Meter: 10,781
 
4,989 posts
Join Date:Joined: Aug 2008
More
Quote:
Originally Posted by xkonni

Nice! Could you just post the changed files in framework-res too?
Or i'll just diff later :)


Sent from my HTC One S

I'll do that once I'm back at my PC. Oh btw - maybe our teams meet in a few weeks for relegation

Send from my One S
Last edited by he_stheone64; 6th May 2012 at 12:36 PM.
The Following User Says Thank You to he_stheone64 For This Useful Post: [ View ]
6th May 2012, 11:12 AM   |  #4  
jureca's Avatar
Senior Member
Flag Murcia
Thanks Meter: 78
 
898 posts
Join Date:Joined: Feb 2011
This preparation to power menu? ,Sabria to say to me to the archives of power meno and put I them, thanks
6th May 2012, 11:22 AM   |  #5  
ZeppeMan's Avatar
Senior Member
Flag De Haan
Thanks Meter: 73
 
588 posts
Join Date:Joined: Dec 2009
More
Working without probs on TrickDroid. Thx for this mod
6th May 2012, 12:32 PM   |  #6  
he_stheone64's Avatar
OP Recognized Contributor / Themer
Flag Düsseldorf
Thanks Meter: 10,781
 
4,989 posts
Join Date:Joined: Aug 2008
More
Here are my current values - they might change a bit going forward, but they are decent values, that should be fine with most users (taste certainly varies, but call that the "golden center" )

I might also test a version with more steps involved going forward, but that`s still up in the air.

PHP Code:
<integer-array name="config_autoBrightnessLevels">
        <
item>11</item>
        <
item>41</item>
        <
item>91</item>
        <
item>161</item>
        <
item>226</item>
        <
item>321</item>
        <
item>641</item>
        <
item>1281</item>
        <
item>2601</item>
    </
integer-array>
    <
integer-array name="config_autoBrightnessLcdBacklightValues">
        <
item>45</item>
        <
item>50</item>
        <
item>55</item>
        <
item>75</item>
        <
item>105</item>
        <
item>125</item>
        <
item>150</item>
        <
item>180</item>
        <
item>200</item>
        <
item>255</item>
    </
integer-array> 
Last edited by he_stheone64; 6th May 2012 at 12:34 PM.
The Following 2 Users Say Thank You to he_stheone64 For This Useful Post: [ View ]
6th May 2012, 12:38 PM   |  #7  
he_stheone64's Avatar
OP Recognized Contributor / Themer
Flag Düsseldorf
Thanks Meter: 10,781
 
4,989 posts
Join Date:Joined: Aug 2008
More
Quote:
Originally Posted by jureca

This preparation to power menu? ,Sabria to say to me to the archives of power meno and put I them, thanks

I`m not exactly sure, what you mean? If you are asking for an Advanced Power Menu, this framework-res does support APM, but you need the matching androidpolicy.jar, in this case from Virtous v.140 ROM. If you are already using a ROM with APM based on Virtuous, you`ll be fine anyway.
The Following 2 Users Say Thank You to he_stheone64 For This Useful Post: [ View ]
6th May 2012, 12:53 PM   |  #8  
jureca's Avatar
Senior Member
Flag Murcia
Thanks Meter: 78
 
898 posts
Join Date:Joined: Feb 2011
Quote:
Originally Posted by he_stheone64

I`m not exactly sure, what you mean? If you are asking for an Advanced Power Menu, this framework-res does support APM, but you need the matching androidpolicy.jar, in this case from Virtous v.140 ROM. If you are already using a ROM with APM based on Virtuous, you`ll be fine anyway.

Ok thank you very much to that I meant, thanks for your work.

Enviado desde mi HTC One S usando Tapatalk 2
6th May 2012, 01:53 PM   |  #9  
torxx's Avatar
Senior Member
Thanks Meter: 21,651
 
8,033 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Thanks for your mod buddy
6th May 2012, 09:35 PM   |  #10  
ozzie1p's Avatar
Senior Member
Thanks Meter: 44
 
400 posts
Join Date:Joined: Jun 2010
Do you have to sign up with minus to download?

Sent from my HTC One S using Tapatalk 2

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes