[Android Software/Hacking General [Developers Only]] chiragkrishna:
If you like it then dont forget THANKS Button

Things You Need

-apkTv1(attached)- its easier for n00bs

-notepad++

-7-zip

-framework-res.apk(Your ROM)

Lets Start

1)Download apkTv1 its attached in post, extract it some where you can easily access it.

2)Copy your framework-res.apk to the directory where you extracted apkTv1

3)Now run "Run Me.bat" and press 1 to decompile. you will get a framework-res folder.

4)navigate to "framework-res\res\values"

5)open "arrays.xml" in notepad++

6)these things you can change, dont worry if you dont have few of them, just ignore

config_autoBrightnessLevels - light sensor filter values

config_autoBrightnessHysteresisLevels - prevents the light from drastically changing

config_autoBrightnessLcdBacklightValues - your display brightness values

config_autoBrightnessButtonBacklightValues - your buttons backlight values

config_autoBrightnessKeyboardBacklightValues - your keyboard backlight values

7)this is what i did with s3

original

<integer-array name="config_autoBrightnessLevels">
<item>15</item>
<item>150</item>
<item>1500</item>
<item>15000</item>
</integer-array>
<integer-array name="config_autoBrightnessHysteresisLevels">
<item>7</item>
<item>75</item>
<item>1000</item>
<item>10000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>20</item>
<item>80</item>
<item>130</item>
<item>190</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues ">
<item>255</item>
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

modified

<integer-array name="config_autoBrightnessLevels">
<item>0</item>
<item>1</item>
<item>20</item>
<item>150</item>
<item>400</item>
<item>800</item>
<item>1500</item>
<item>3000</item>
<item>6000</item>
<item>9000</item>
<item>15000</item>
</integer-array>
<integer-array name="config_autoBrightnessHysteresisLevels">
<item>0</item>
<item>2</item>
<item>50</item>
<item>110</item>
<item>320</item>
<item>900</item>
<item>2000</item>
<item>6000</item>
<item>8000</item>
<item>10000</item>
<item>12000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>30</item>
<item>30</item>
<item>50</item>
<item>60</item>
<item>80</item>
<item>100</item>
<item>120</item>
<item>150</item>
<item>190</item>
<item>210</item>
<item>230</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>
<integer-array name="config_autoBrightnessKeyboardBacklightValues ">
<item>255</item>
<item>200</item>
<item>100</item>
<item>0</item>
<item>0</item>
</integer-array>

10)again run "run me.bat" and select 2 to recompile, you will get "temp.apk"

11)open your "framework-res.apk" & "temp.apk" in 7-zip and add the "resources.arsc" from "temp.apk" to "framework-res.apk",... yes replace it,...

12)push it to your phone, make a rom or do what ever you want from here,...

13)hit THANKS if you like it and feel it was useful