[Samsung Galaxy Nexus] he_stheone64:
[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 :D

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

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

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