Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,778 Members 38,310 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Auto Brightness Patch & Advanced Power Menu - Update 09.02. - NOW WITH TUTORIAL

Tip us?
 
he_stheone64
Old
(Last edited by he_stheone64; 10th February 2012 at 10:17 AM.)
#1  
he_stheone64's Avatar
Recognized Contributor / Themer - OP
Thanks Meter 10,775
Posts: 4,982
Join Date: Aug 2008
Location: Vienna & Düsseldorf
Default [MOD] Auto Brightness Patch & Advanced Power Menu - Update 09.02. - NOW WITH TUTORIAL

Auto Brightness Patch

The Auto Brightness settings of GN remind me to old times of CAVEMEN, so I had to patch it in order to see the light

Especially in low light conditions it`s usually hard to read and white´s look like dirty tables after a nice party

Just flash in recovery and enjoy, don`t forget a nandroid in case you don`t like the patch. You can also flash back to stock with 2nd restore.zip

Advanced Power Menu

Credits: BIG THX to MCOGW for his help, sicopat for his GB based How-To

NEW - the Auto Brightness Patch now comes bundled with Advanced Power Menu. This allows you to reboot or reboot to recovery from Power Menu.


NEW - since most ROM`s have APM by now and there are too many floating around with updates every day, I stop offering the fish and better teach you fishing


Tools: Installed SDK & JDK, apktool or apkmanager, Notepad++


AB Patch is fairly simple (unlike APM):

1. Decompile framework-res.apk
2. Open arrays.xml in values folder and adjust Brightness levels and Backlight values to your preference
3. Copy my background_holo_light.png to no-dpi folder - http://www.multiupload.com/CAC2RX3VDE
3. Compile and flash with one of my update zips

Here my MID values for your reference, you can copy - paste it over the default code in arrays.xml

To better understand what you do here:

autoBrightness levels are the brightness levels, where your Sensor should alter brightness (4.01 ROM`s had 5, 4.03 have 20 - I prefer 10 levels)

autoBrightnessLcdBacklightValues are the actual corresponding brightness values of your LCD (Stock ROM values are way to low especially at the first 4 steps)

background_holo_light.png delivers a better white in contacts

PHP Code:
<integer-array name="config_autoBrightnessLevels">
        <
item>6</item>
        <
item>14</item>
        <
item>30</item>
        <
item>68</item>
        <
item>154</item>
        <
item>346</item>
        <
item>778</item>
        <
item>1752</item>
        <
item>3941</item>
        <
item>8867</item>
    </
integer-array>
    <
integer-array name="config_autoBrightnessLcdBacklightValues">
        <
item>40</item>
        <
item>45</item>
        <
item>50</item>
        <
item>55</item>
        <
item>60</item>
        <
item>80</item>
        <
item>100</item>
        <
item>130</item>
        <
item>175</item>
        <
item>230</item>
        <
item>250</item>
    </
integer-array> 

What you need: Deodexed Custom ROM with matching Base, Nandroid Backup


The patch now comes in 3 Brightness levels:

LOW - brighter then stock, but still relatively moderate
MID - good mid values for most users
HIGH - higher values especially at low light conditions to avoid "ugly" whites


Since multiupload went mad like a lot of other fs sites after the big crash of Mega Upload, here are new download folders for AB, APM & battery mods for GNex. Most file names clearly tell you, for which platform / ROM they are, some have additional comments when you hit the blue button.


New download folder for Android 4.04 based mods (since multiupload has issues since a while...)

http://www.box.com/s/3zfsypc44ibi9viirrmv


New download folder for IML74K mods (since multiupload has issues since a while...)

http://www.box.com/s/85kortrv1zborri0ymjb


New download folder for ICL53F mods (since multiupload has issues since a while...)

http://www.box.com/s/0chgsg8i912kk8xv3fqb


New download folder for ITL41F mods (since multiupload has issues since a while...)

http://www.box.com/s/k8bodh9c9zjudzjfdfrv

IML74K Base

Download AB Patch IML74K MID:

http://www.multiupload.com/LBH2EWCJ0D


Back to stock framework IML74K

http://www.multiupload.com/DPFPG5KZYR


ICL53F Base

Download AB Patch ICL53F LOW:

http://www.multiupload.com/FAG6BIB46O


Download AB Patch ICL53F MID:

http://www.multiupload.com/LVO2G93RUI


Download AB Patch ICL53F HIGH:

http://www.multiupload.com/JM5JT8LKOJ


ITL41F Base

Update Autobrightness & Advanced Power Menu Patches

Thx @ Thyrus for the good idea

Changelog:
  • Higher resolution for dark gradient background, which is pulled from framework by settings and some market apps (e.g. Root Explorer)
  • Much clearer white for contacts background, also for market apps, who pull the same resource from framework (still very few, but might increase with devs adding ICS support)


Download AB Patch ITL41F LOW:

http://www.multiupload.com/3I5AWVZI7Z


Download AB Patch ITL41F MID:

http://www.multiupload.com/PG3K7BDRXT


Download AB Patch ITL41F HIGH:

http://www.multiupload.com/Q5WXR435EP

Screenshot Contacts (YES - I know, Screenshots don`t reflect what you really see on your display, but you`ll see in real life it`s way brighter now in contacts, since source was not true white in stock ROM at this point, in fact a light gray gradient).




In case you want to return to stock - here the restore zip. Copy this zip on your GN together with your prefered patch, then you can restore very quick in case of issues.

Download "back to stock" framework ITL41F

Multiupload.com - upload your files to multiple file hosting sites!


Screenshot Advanced Power Menu:

The Following 26 Users Say Thank You to he_stheone64 For This Useful Post: [ Click to Expand ]
 
EddyOS
Old
#2  
EddyOS's Avatar
Recognized Contributor
Thanks Meter 3,015
Posts: 13,268
Join Date: Jan 2010
Location: Liverpool, Merseyside
How is this different from Paul O'Brien's fix?
Google Nexus 5 D821 (Black) 32GB
ROM: Android 4.4.4 (KTU84P) | Bootloader: HHZ11K | Recovery: Stock | Radio: 2.0.50.1.16 | Kernel: Stock

If you have a question, great - but DO NOT PM ME WITH IT!!! | [GUIDE] Return your EU M8 to 100% Stock (S-OFF Required) | [GUIDE] Return your OPO to 100% Stock
 
he_stheone64
Old
#3  
he_stheone64's Avatar
Recognized Contributor / Themer - OP
Thanks Meter 10,775
Posts: 4,982
Join Date: Aug 2008
Location: Vienna & Düsseldorf
For me Paul`s fix was too dark, so it all comes down to preference. If you are happy with the current solution, there is no need to flash this, if you want brighter levels especially in low light conditions, it will make sense. You can always restore either with my attached "back to stock" or Paul`s version.
 
ShOrTyNaToR
Old
(Last edited by ShOrTyNaToR; 5th December 2011 at 04:36 PM.)
#4  
Member
Thanks Meter 33
Posts: 40
Join Date: Nov 2008
Doesnt work for me...

Many FC's

//edit: "Back-to-Stock" the same :-O

Nandroid Backup ftw
 
BlackDino
Old
(Last edited by BlackDino; 5th December 2011 at 05:08 PM.)
#5  
BlackDino's Avatar
Senior Member
Thanks Meter 2,296
Posts: 1,952
Join Date: Sep 2010

 
DONATE TO ME
You should probably note that users should only download this if on stock ITL41F framework-res
LG G2
Nexus 7 (2013)
Samsung Galaxy S 4
Samsung Galaxy S III
Nexus 7 (2012)
Samsung Galaxy Nexus
Motorola Xoom
Samsung Galaxy S
Samsung Focus
Nexus One
The Following User Says Thank You to BlackDino For This Useful Post: [ Click to Expand ]
 
he_stheone64
Old
#6  
he_stheone64's Avatar
Recognized Contributor / Themer - OP
Thanks Meter 10,775
Posts: 4,982
Join Date: Aug 2008
Location: Vienna & Düsseldorf
Updated OP, thx
 
ShOrTyNaToR
Old
#7  
Member
Thanks Meter 33
Posts: 40
Join Date: Nov 2008
Quote:
Originally Posted by BlackDino View Post
You should probably note that users should only download this if on stock ITL41F framework-res
I'm on stock ITL41F...
 
he_stheone64
Old
#8  
he_stheone64's Avatar
Recognized Contributor / Themer - OP
Thanks Meter 10,775
Posts: 4,982
Join Date: Aug 2008
Location: Vienna & Düsseldorf
Then something went wrong with your flash, tested this already in another Forum (and certainly myself) and no issues at all. This is a very basic mod anyway, so never had issues with array changes.
 
deezid
Old
#9  
deezid's Avatar
Senior Member
Thanks Meter 87
Posts: 651
Join Date: Jun 2010
Location: Viersen
Thx. First mod that works, finally

Gesendet von meinem Galaxy Nexus mit Tapatalk
Motorola Milestone -> Galaxy S -> Galaxy Tab -> DesireHD -> Galaxy S (Still the best)
 
EddyOS
Old
#10  
EddyOS's Avatar
Recognized Contributor
Thanks Meter 3,015
Posts: 13,268
Join Date: Jan 2010
Location: Liverpool, Merseyside
Quote:
Originally Posted by he_stheone64 View Post
For me Paul`s fix was too dark, so it all comes down to preference. If you are happy with the current solution, there is no need to flash this, if you want brighter levels especially in low light conditions, it will make sense. You can always restore either with my attached "back to stock" or Paul`s version.
That's cool, was just wondering

Sent from my HTC Sensation with Beats Audio Z710e using xda premium
Google Nexus 5 D821 (Black) 32GB
ROM: Android 4.4.4 (KTU84P) | Bootloader: HHZ11K | Recovery: Stock | Radio: 2.0.50.1.16 | Kernel: Stock

If you have a question, great - but DO NOT PM ME WITH IT!!! | [GUIDE] Return your EU M8 to 100% Stock (S-OFF Required) | [GUIDE] Return your OPO to 100% Stock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes