Manual-Brightness Drop Fix !!!

gitin

Senior Member
May 15, 2009
770
433
93
The Most Irritating Feature/Bug for me !!!
Auto-Brightness even when you choose manual !


Hi Guys,

most of you won't notice this bug, sami dims brightness even after it is set on manual.
Go to a dark room or with low light and turn the brightness to maximum under (manual), then blow a torch or turn on more lights, the brightness will then increase.
Actually it is not a bug, but sami wants to save some more battery coz they think who looks at display with full brightness all the time....but they are wrong !!
I do and many of us do...

I use my phone at 90% brightness most of the time and due to this bug/feature I was so angry, its like buying a BMW but you can't run it over 100km/h, why ? because company wants you to save fuel ...lol

Anyways, I saw many users ask about brightness bug on different rom threads and its better to include the fix here at one place for those who needs it ..simple

attached are services.jar files for different firmwares, if your firmware is not listed then please pm me your firmware's services.jar + your rom and firmware name ie.. AOJ5, AOJ1 etc..

credit goes to @ultimatewaffel , because he actually made this happen and I went deep into his edited files and managed to find what is causing this bug and managed to fix it myself.
He was away for a week I guess, so i couldn't wait for the fix for my latest firmware so decided to do it myself and I did it :)

Please make a backup of your current rom (in case if something happens) and then replace services.jar in your system>framework folder and then change services.jar file permission to 644

You must be rooted and you need root explorer or any other software which allows copying in system folder and changing its permission value.

Enjoy !! this phone is beautiful, far far better than my last iphone 6 / htc m8

tested on Deodexed STOCK ROM 928 F-I-C-L-K-S-G Edge+
New links for MM 6.0.1 will be added here because I can no longer attach files here (max no. reached)

S7 Edge SM-G935F : http://www120.zippyshare.com/v/mQ6RTqJV/file.html
Edge + MM 6.0.1 929G..etc : http://www46.zippyshare.com/v/jPyBKRIG/file.html
S6 Edge Crisscross rom 4.1: http://www60.zippyshare.com/v/8jYKLmFV/file.html



PLEASE HIT THANKS IF IT WORKED
AND CREDIT ME/THREAD IF YOU ARE USING MY FILES
SO MANY DOWNLOADS BUT ONLY FEW THANKS
?

HOW TO DO IT YOURSELF (I won't be able to do any more edits coz m really busy with my work)

baksmali services.jar and remove these lines from AutomaticBrightnessController.smali file under classout>com>android>server>display:

1st para :
iget-boolean v3, p0, Lcom/android/server/display/AutomaticBrightnessController;->mSettingAutoBrightness:Z

if-nez v3, :cond_52

iget v3, p0, Lcom/android/server/display/AutomaticBrightnessController;->mAmbientLux:F

const/high16 v4, 0x42c80000 # 100.0f

cmpg-float v3, v3, v4

if-gtz v3, :cond_52

.line 1022
iget-boolean v3, p0, Lcom/android/server/display/AutomaticBrightnessController;->mUseManualAutoBrightness:Z

if-nez v3, :cond_40

.line 1023
const-string v3, "AutomaticBrightnessController"

const-string v4, "[DAB] use ManualAutoBrightness is changed from false -> true"

invoke-static {v3, v4}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 1025
:cond_40
const/4 v3, 0x1

iput-boolean v3, p0, Lcom/android/server/display/AutomaticBrightnessController;->mUseManualAutoBrightness:Z

.line 1026
iget v0, p0, Lcom/android/server/display/AutomaticBrightnessController;->mManualAdjustment:F

.line 1037
:goto_45

2nd para :

.line 1029
.restart local v0 # "autoBrightnessAdj":F
:cond_52
iget-boolean v3, p0, Lcom/android/server/display/AutomaticBrightnessController;->mUseManualAutoBrightness:Z

if-eqz v3, :cond_5d

.line 1030
const-string v3, "AutomaticBrightnessController"

const-string v4, "[DAB] use ManualAutoBrightness is changed from true -> false"

invoke-static {v3, v4}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 1032
:cond_5d
iput-boolean v5, p0, Lcom/android/server/display/AutomaticBrightnessController;->mUseManualAutoBrightness:Z

goto :goto_45

smali services.jar file again and then open services.jar using 7-zip and copy classes.dex file

code might be little different on your phone, so give it a try !
 

Attachments

Last edited:

tamir147

Senior Member
Jun 3, 2014
244
16
0
it seems your rom is stock and you haven't deodexed your rom yet, please deodex your rom, there should be some tool available on your forum or install any deodex rom into your phone 1st
services.jar file should be around 5.5mb

thanks
i love the stock rom dude can u make fix anyway?

---------- Post added at 08:17 PM ---------- Previous post was at 08:05 PM ----------

it seems your rom is stock and you haven't deodexed your rom yet, please deodex your rom, there should be some tool available on your forum or install any deodex rom into your phone 1st
services.jar file should be around 5.5mb

thanks
https://www.youtube.com/watch?v=c21cNB2fFFM this good for deodex rom ?
 

gitin

Senior Member
May 15, 2009
770
433
93
i love the stock rom dude can u make fix anyway?

---------- Post added at 08:17 PM ---------- Previous post was at 08:05 PM ----------



https://www.youtube.com/watch?v=c21cNB2fFFM this good for deodex rom ?
looks good and easy but can't say coz I haven't tried it myself....
you must deodex your rom to fix this issue

even i am on stock rom but mine is deodex rom available on my forum, please search there must be stock deodex rom on your forum also...
 

gitin

Senior Member
May 15, 2009
770
433
93
I have all stock. How i deodex stock rom?
there is already a deodex stock rom available, i am using it myself and its pure stock :
http://forum.xda-developers.com/s6-edge-plus/development/deodexed-aoh3-t3195044/page39

there are also few softwares available which can deodex your rom, search google

good, i just woke up, i will do it in few hours
 

gitin

Senior Member
May 15, 2009
770
433
93
thank you i waiting for fix :)
I have attached your fixed zip on my 1st post,
plz download and replace it in your system and change permissions to 644
plz make a backup of your rom first in case you get boot-loop (that won't happen for sure)

and confirm if its working for you, and please also confirm your firmware/model and device so it could help others

thanks
 

tamir147

Senior Member
Jun 3, 2014
244
16
0
I have attached your fixed zip on my 1st post,
plz download and replace it in your system and change permissions to 644
plz make a backup of your rom first in case you get boot-loop (that won't happen for sure)

and confirm if its working for you, and please also confirm your firmware/model and device so it could help others

thanks
download now thank you!!
 

gitin

Senior Member
May 15, 2009
770
433
93
Nope, i don't think so
Send me your installed rom's framework-res.apk, twframework-res.apk and services.jar
I will fix that for you