[Desire Android Development] t-minik:
with the new snq- GB sense kernel we have some more auto-brightness levels available and we can adjust these levels in Framework-res.apk :

i'm not sure others GB SENSE kernel will works.

it's sure it works with DEODEX roms but it works to on my BravoS V7 ODEX Rom, so test by yourself and never forget to make a nandroid backup before flashing anything !

link for the snq- kernel working with this mod, all others will works to :

http://xdaforums.com/showpost.php?p=17688555&postcount=644

How to :

At first, i'm not responsible for your problems. it worked well for me.

I will only explain with the use of APKManager but you can do it with all apk compiler decompiler.

at least i forgot to say that you can use a moded framework from UOT to do the trick.

the better way for me is to do your UOT mods before tweaking the sensor levels.

if you tweak you famework before doing UOT mods, framework-res.apk will be much bigger, probably due to a lower zip compression level with UOT.

1 - install APKManager,

2 - place Framework-res.apk from your ROM in the \apkmanager\place-apk-here-for-modding\ folder,

3 - launch Script.bat, a cmd prompt window will apear,

4 - type 22 and choose your framework-res.apk,

5 - type 9 for decompiling, when done your decompiled framework-res.apk files

are in \apkmanager\projects\ folder,

6 - minimize apkmanager window,

7 - go in \APKmanager\projects\framework-res.apk\res\values\ and edit arrays.xml,

8 - search for this : (exemple with BravoS V7 framework)

*** Here you can modify the values for backlight :

- Do not change "config_autoBrightnessLevels" before

- you can modify "config_autoBrightnessLcdBacklightValues" / "config_autoBrightnessLcdBacklightValuesUp" / "config_autoBrightnessLcdBacklightValuesDown" with your own values between 0 an 255.

40/45 is a good start point for indoor use

personally I use these :

41

55

72

87

121

141

161

201

231

255

--------------------------------------------------------------------------------------------------------------

*** OPTIONAL : Here you can modify the keyboard backlight on/off :

- the four first 255 says "led on" for the corresponding levels, the -1 value say "led turn off" for the corresponding level.

9 - save changes for arrays.xml,

10 - return to APK manager window,

11 - type 11 for recompiling apk

- is this a system APK : y

- Aside from the signature ... : y

-remove resources.asrc from \apkmanager\keep\ folder then return to apkmanager window and press a key.

12 - type 22 an select unsignedframework-res.apk,

13 - type 5 and zipalign,

14 - type 24 to exit : DONE.

now rename unsignedframework-res.apk to framework-res.apk and you get your moded file!

for pushing the new framework-res.apk i use a existing zip file and flash it with recovery :

these come from Acesmod007, please do not flash this without any changes !

- for Stock Hboot : http://dl.dropbox.com/u/22617624/Android/lumisense/Framework-Stock.zip

- for CM7 Hboot : http://dl.dropbox.com/u/22617624/Android/lumisense/Framework-CM7.zip

open it with and replace framework-res.apk in the zip file by yours in /framework/ folder for Stock and /sdext/framework_s/ folder for CM7.

put your zip in your sdcard, reboot into recovery

!!!!! always make a nandroid backup before flashing !!!!!

then flash your zip.

you can wipe dalvik but it seems it will works without.