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

Search This thread

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
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 :D


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


APMJellybean.png



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 :D 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 :D


Download Menu Remap:

http://sdrv.ms/LjUALE


Back to stock:

http://sdrv.ms/LjUsMc
 
Last edited:

xkonni

Senior Member
Jan 16, 2010
377
1,041
berlin
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:

jureca

Senior Member
Feb 18, 2011
1,277
251
Murcia
This preparation to power menu? ,Sabria to say to me to the archives of power meno and put I them, thanks
 

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
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" :D)

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

PHP:
<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:

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
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.
 

jureca

Senior Member
Feb 18, 2011
1,277
251
Murcia
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
 

ozzie1p

Senior Member
Jun 17, 2010
417
46
Do you have to sign up with minus to download?

Sent from my HTC One S using Tapatalk 2
 

ozzie1p

Senior Member
Jun 17, 2010
417
46
Thanks for the reply. I can't download on my phone........ Will try on the desktop.

Sent from my HTC One S using Tapatalk 2
 

jodue

Senior Member
Dec 15, 2009
453
37
vienna
Thanks for the reply. I can't download on my phone........ Will try on the desktop.

Sent from my HTC One S using Tapatalk 2

the mobile site didn't work for me either. just switch to the desktop version ;)
thanks for the mod btw. auto brightness was far too high which bothered me a little since i got the device ;)
 

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
Update: Added a version to OP, that includes Advanced Power Menu for people using a deodexed ROM, that currently is missing that mod. Also safer to use on ROM`s, which use their own APM (so far all APM`s seem to be based on Virtuous anyway, but that can always change...)

Credits for APM: Virtuous Team
 

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
No - it does not. At least I did not try... In any case the APM version would definetely deliver a decent bootloop, since androidpolicy.jar is deodexed. You can try the standard version and give feedback (after doing an nandroid).
 
Last edited:
  • Like
Reactions: main_shoby

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    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 :D


    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


    APMJellybean.png



    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 :D 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 :D


    Download Menu Remap:

    http://sdrv.ms/LjUALE


    Back to stock:

    http://sdrv.ms/LjUsMc
    8
    Advanced Power Menu for Virtuous Ville RC 1 JB ROM

    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[/QUOTE]


    APMJellybean.png
    3
    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 :D for Auto Brightness and porting custom Menu & APM to latest platform


    For Deodexed 1.78 ROM base

    • 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
    3
    Successfully merged and ported my AB Mod with Advanced Power Menu, Menu Button Remapping, Longpress Menu Recents and removal of annoying settings bar to new 1.78 Base.

    Will be launched tomorrow with the TrickDroid 3.0 ROM by torxx. Once I have time (will be traveling this weekend), I will also pack this as add-on for 1.78 Base.
    2
    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" :D)

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

    PHP:
    <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>