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

Search This thread

keinengel

Senior Member
Dec 7, 2009
461
32
@he_stheone64: The Advanced Power Menu doesn't seem to always be working properly for me. I had two stuck notifications (Facebook failed to upload 2 photos because of the crappy reception I had) that just wouldn't go away, so I tried Hot restart a few times and nothing happened. Trying a normal reboot immediately afterwards also didn't work, but after a fresh boot (through adb) it started working again. This shows up in logcat when tapping Hot restart and, subsequently, Reboot:
Code:
D/memalloc(  205): ion: Allocated buffer base:0x43ffb000 size:1114112 fd:73
D/memalloc(  441): ion: Mapped buffer base:0x57705000 size:1114112 offset:0 fd:225
D/memalloc(  205): ion: Allocated buffer base:0x4444c000 size:1114112 fd:76
D/memalloc(  441): ion: Mapped buffer base:0x59ba3000 size:1114112 offset:0 fd:270
D/memalloc(  441): ion: Unmapping buffer  base:0x5793f000 size:1392640
D/memalloc(  441): ion: Unmapping buffer  base:0x58ffc000 size:1392640
D/memalloc(  205): ion: Freeing buffer base:0x42c33000 size:1392640 fd:40
D/memalloc(  205): ion: Unmapping buffer  base:0x42c33000 size:1392640
D/memalloc(  205): ion: Freeing buffer base:0x4301e000 size:1392640 fd:46
D/memalloc(  205): ion: Unmapping buffer  base:0x4301e000 size:1392640
D/memalloc(  441): ion: Unmapping buffer  base:0x59a4f000 size:1392640
D/memalloc(  205): ion: Freeing buffer base:0x43a69000 size:1392640 fd:70
D/memalloc(  205): ion: Unmapping buffer  base:0x43a69000 size:1392640
Also, Power off and Hibernate do the same thing on my phone.

I'm running PaulOBrien's Ir1 1.78.401.2 DUO with no other mods.
 

lainemac

Senior Member
Sep 29, 2010
1,190
203
Vegas
Soft Reboot

Anyone else had any reboots after flashing any of these? I flashed the one with apm for 1.70 and I'm on 1.53.
 

DSSLE

Senior Member
Apr 28, 2011
86
16
I've got a problem:

After flashing the 178 Patch with recovery my Rom hang in the Bootscreen and nothing happens.
I use LeeDroid v 2.1.0

What can i do?

Gesendet von meinem HTC One S
 

MadJoe

Senior Member
Jul 18, 2007
839
146
Boston
I have read and reread this thread looking for the "explanation" of what you need to "add" to your build prop to remove the 3 dot menu, but I can't find it. I've managed to remap my Activities button to Menu, and I would love to get rid of the 3 dot mess in some apps, so is there anyone who could simply spell it out, exactly what line must be added or modified in build.prop, so I can see if it works on my US T-Mo 1.84 Odexed stock ROM?
 

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
Just add "qemu.hw.mainkeys=1" in build.prop under # ADDITIONAL_BUILD_PROPERTIES.

There´s also a solution, that does not need any build.prop edits, which I comoiled directly in framework in my latest versions in Tweak Machine and Summer Breeze, but this will be quicker for you.
 
  • Like
Reactions: MadJoe

Phssthp0k

Member
Sep 17, 2012
34
9
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

Hey pal, will it be working for the HTC One S s3 crappy chipset stock rom?

Should I do something more?

Thx for listening!
 

invasion2

Senior Member
Oct 3, 2011
3,103
1,243
Space, the ONLY Frontier
Do not expose the battery to heat or cold day like a dog, you should not put the phone in the car, to withstand the scorching sun exposure; or get air-conditioned rooms, a place on the cold air blowing straight.When charging, the battery a little heat is normal, but you can not let it weather the high temperature "suffering" have to do these cell phone battery will get a good protection

Lolwut. Wrong thread maybe lol?
 

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>