yashsingh1/xdaforums huggingface dataset:
[G3 Android Development] horsetastic:
Horsetastic's AutoBrightness MOD

I was getting annoyed with the battery drain from the screen so decided to mod the brightness values for myself.

I am by no means a developer so cannot promise this will work, any doom that may occur as a result of flashing this mod is at your own risk!

Save zip to sdcard and install by flashing from recovery. Simples :)

Any issues let me know.

Build V6 - should work on any stock ROM

V6 Optimal

V6 SuperDim

V6 SuperDim Mirror on Mega

V6 Remover Mirror on Mega

Stock CloudyG3 framework files for those who flashed on of the older versions of the MOD to return framework back to origional. These are not needed if you've only flashed V6 as that doesn't replace framework any more. Note that flashing stock framework back will break any theme you have installed and ensure to backup before flashing in-case of DOOM!

Flash zip file in recovery:

CloudyG3 2.2 Stock Framework

CloudyG3 2.3 Stock Framework

CloudyG3 2.4 Stock Framework

Thanks to [MENTION=5573806]Det45ku11[/MENTION] for the files

Old Versions

For CloudyG3 2.2

V5 4 Step Mega download

V5 4 Step Mediafire download

V5-Curve Mega Download

V5-Curve Mediafire Download

For CloudyG3 2.3

V3 Curve - Super Dim

V3 4 Step - Dim

For CloudyG3 2.4

V4 4 Step - Dim (Mega Download)

V4 4 Step - Dim (Mediafire Download
[G3 Android Development] pramathesh:
Can you host this elsewhere, please. Not accessible on my connection. Can this be used on Android now HD 9.4?
[G3 Android Development] horsetastic:
If you extract your framework-res.apk and upload it I'll mod if for you.

I'll put a new link in a bit too.
[G3 Android Development] horsetastic:
Additional link added.
[G3 Android Development] chuyennho184:
Please give screenshot to view. Thanks!
[G3 Android Development] pikachukaki:
post the guide cause this framework wont work on stock 20i!!
[G3 Android Development] DelBoy:
Screenshot to view brightness? Are you joking or?
[G3 Android Development] dietoro:
Waiting 20H Brightness MOD , or change the Rom??

I would really like the idea to low down the brightness a little bit more.

Unfortunatly I am on another rom, that is my first rom : chupa chups based on 20H.

I will stay tuned, in order to know if it comes for my rom, because I don't know if it worth to change rom only for this awesome Mod.

:confused:

In your opinion it worth to change the rom for this?

Reinstall all the applications?

Maybe I will wait a little bit.

This is the framework-res apk from 20h based rom Chupa chups
[G3 Android Development] iam_delan0:
-Deleted-
[G3 Android Development] jojobans:
V20i working?
[G3 Android Development] DelBoy:
OP says:

This is based from the Rom I am currently on which is the latest CloudyG3. It's the 20F base.
[G3 Android Development] horsetastic:
It's not necessary an awesome mod yet. I don't know for sure if the values are going to be actually any better. So I'll need feedback. Tbh I'm surprised nobody has actually played with the values yet.

I'll post up the other framework files people have linked to soon but won't be able to test them.

This isn't a ROM either. Its just a flashable MOD. So no need to start over.
[G3 Android Development] NisseGurra:
Lol, i always changed the brightness values on stock roms, but to higher values as the default is way to dim :D
[G3 Android Development] horsetastic:
It seems strange its not been done in any of the custom roms though.
[G3 Android Development] horsetastic:
OK so say 1 seems that my values actually made battery life worse haha. Going to see how tomorrow goes then tighten then up a bit.

Edit. Just realised that I didn't charge my phone last night. It's actually done quite well. But I think it can be better still.
[G3 Android Development] anderson79:
install in 20i mya rom that works for me as well
[G3 Android Development] petros70:
I am on cloudy 1.2 kitkat is there any way to use this mod on kitkat?
[G3 Android Development] horsetastic:
To be fair it will 'probably' work fine in any lollipop rom. But don't quote me on that. Note, not AOSP or CM variants of course.
[G3 Android Development] horsetastic:
You can use the mod on any rom on the world I should imagine. Just not the modded framework. It's only lollipop based. 20H.

I was going to write a guide to how to do the mod but there are so many out there already it seemed mad to.

I will if people really want it though. It's dead easy really.
[G3 Android Development] horsetastic:
New version up!
[G3 Android Development] brolic925t:
Thank god i found this... I felt like a vampire in sunlight when i turn my screen on at night
[G3 Android Development] mistry121:
Hey [MENTION=4124985]horsetastic[/MENTION] I tried this on denes Canadian rom (version 20C) and its not working, tried both zips. Any chance you can make a compatible version for that?
[G3 Android Development] nuwan32:
yea.. i always do this too. i thought it was by design? sometimes i feel the lowered autobrightness is not bright enough so i move the slider up and it gets a bit brighter. i'm pretty sure it sticks because once i change it, i dont need to change it again.
[G3 Android Development] horsetastic:
No sorry, though if you have a zip that works for your phone you could try using the updater binary from that to see if it works with my mod.
[G3 Android Development] Grumps:
Does the latest version have a lower minimum value and still the stock max value? Dont want to change the max brightness only lower the low brightnes
[G3 Android Development] horsetastic:
The optimum version does what you want :)
[G3 Android Development] arebokert:
Now that I've been using the super dim version for a while I have to say that it really does make a difference! I used to use lux for this reason, but being able to make the screen dimmer without an external app really is great.

Thank you [MENTION=4124985]horsetastic[/MENTION], this mod really is a life saver! :)
[G3 Android Development] horsetastic:
Hey no worries. I dislike external apps controlling my brightness due to the fact that in order to run they also use power up. It's better controlled internally.
[G3 Android Development] cowboysgz:
[MENTION=4124985]horsetastic[/MENTION] I tried looking at the graphs but I dont really know which one better suits my needs or how the super dim is different to the optimal version? Im running cloduy 2.5 on ironhide v2, AWESOME!
[G3 Android Development] areq1987:
Does it work with v20U? After installing and rebooting I dont see any changes...
[G3 Android Development] cimdrap:
i just low down all the same the 3 values of blue green and red in screen section of adiutor. I lowered them from 255 to 180 each one....done
[G3 Android Development] qWantUS:
But the backlight of your phone is still blasting the same amount of light, what you have done is just tinted the screen :)

The way I understand , the purpose of this mod is to save battery ,not to make screen darker IMHO....

Išsiųsta naudojantis LG-D855 Tapatalk 4 Lt
[G3 Android Development] Orcam:
If I am correct. Wont having more values for light ambience polling have an effect on processor cycles? Wont the screen brightness tweaks loose all battery gains from polling the light sensor and adjusting the screen more?

I just installed it, but how much better will battery life be?

Also to the OP [MENTION=4124985]horsetastic[/MENTION] , is there a way I can edit these values to create a custom profile for myself? As your values are just a tad off for where I live, which has no clouds.

Thanks for the great mod!
[G3 Android Development] horsetastic:
Hey, sorry for my delayed reply, I've basically retired from tinkering now so not really ever on here.

Battery life shouldn't suffer at all, I never noticed any issues with it anyway, only improved things having a dimmer screen. It's an old trick used on so so so many ROM's before the G3, I was just suprised not to see it used on our phone especially as the damn screen is the one thing that truely kills the battery.

Anyway the only way to really test how much better battery life will be would be to run test for yourself. There's no real science behind it I suppose.

Also yes you could do the MOD yourself, it's easy enough. If you google framework overlay apk or something along those lines you can see how to create the overlay file. Basically you decompile the framework-res.apk for the ROM you're using then remove everything out of it apart from the arrays part you need then mod the brightness values in the arrays file and recompile the minimal apk. I don't remember the exact steps I'm afraid. Anyways after all that you name the apk file as I have in my mod <--- open the zip and explore and you'll soon see. Hell you could even just use my zip and replace the framework overlay apk with my one and then flash and enjoy.

This is also a cool way to add theme mods etc to framework without bricking your phone. :D
[G3 Android Development] Orcam:
Thanks for the help. I thought it would have an effect on battery life since Lux would poll the light sensor and then use cpu cycles. None the less. Thanks for the help!

Another question, a bit off topic are you still developing for the G3 or?
[G3 Android Development] horsetastic:
That's OK, hopefully it helped a little if any.

In answer to your off topic question, no. I have retired from G3 development. Mostly because I decided to completely (accidently) smash my G3 in to a million pieces whilst out running a little while ago. Although my insurance paid out i decided to go for something completely crazy so now am the proud owner of a Lenovo K3 Note. So far this thing is better then my G3! Don't ask me how, it's just flipping amazing haha. So anyway I may do a little developing for the K3 Note, well actually I have already though there's not much support out there for it. Probably doesn't help you much though haha.
[G3 Android Development] Orcam:
Well thats a real shame. Not that I was going to ask you to do it for me. Meerly that it seems to me, that this device is becoming somewhat abandoned. It won't be im sure, but it is sad to see developers leaving. I want to get started on some development my self, as I have a bit of time, but need to find some that are still active for the G3!

Thanks for the help on this one anyway. Have fun on a different device.
[G3 Android Development] switchgott:
:D
[G3 Android Development] mrmattolsen:
I attempted to flash both the dim and optimized mods on my D850 with TWRP but it said the zip files were corrupt. Am I missing a step? Fulmics ROM.
[G3 Android Development] cowboysgz:
Maybe a current download? Download them again.

Hit the Thanks button if I helped you
[G3 Android Development] nuraH6:
Can you make this MOD for stock MarshMallow v30b?
[G3 Android Development] reggiexp:
wanted to say the same

but accualy the screen is okay :) i have a g flex 2 now and that screen is bright AF at 0%

anyway the autobrightness is kind of messed up on androdi MM it's to fragile. but im not sure if thats normale or because i installed your mod and removed it later cause it didnt work
[G3 Android Development] inman1031:
Good day sir. Is it possible to make one more version which seat in between the optimal one and the stock one coz the optimal one seems a bit dim in the darker environment (which dim warm light source but not completely dark)， the auto brightness bar goes to 5-10% (too dim) and compare with stock at 40-50% (too bright)， and I need to manually adjust it to 20-30%. Really appreciate your works. Thank you.[emoji120]
[G3 Android Development] inman1031:
Thanks admin for the tips. Here is the framework zip:

https://mega.nz/#!IpIDGZLL!NZ1PCLrj8HIYNKYG8mhXuCZ2zerscx1TSvechFKtFBQ

This is my first time using mega upload， hope it works. Appreciate that[emoji120]

---------- Post added at 02:47 PM ---------- Previous post was at 02:44 PM ----------

Kindly note that this file is abstracted from the system with your optimal dim version implemented and I am using fulmics 5.3 on d855， not sure if its related but hope the info I provided would be useful， many thanks.
[G3 Android Development] ceza1380:
Does this work on Marshmallow?
[G3 Android Development] 87mpi:
Does this work on stock based rom like fulmics 5? many thanks
[G3 Android Development] ceza1380:
Lol I don't know I was asking same question.
[G3 Android Development] 87mpi:
sorry LoL
[G3 Android Development] linuthomas11:
Remover zip is not available for download from MEGA. Please update the link. and thanks for the amazing mod :)
[G3 Android Development] SickBeast:
I'm sorry if this is a stupid question but... can't you just lower the brightness setting and enable automatic brightness? Doesn't that do the same thing as this mod?
[G3 Android Development] horsetastic:
This is lower autobrightness. Much lower then stock. ;)
[G3 Android Development] o1d8oy:
I tried it with stock 20p + Gabriel kernel and com.android.phone and nfc stopped working. Can you provide flashable file with stock values so in case of a problem like mine it is possible to revert back the changes?
[G3 Android Development] horsetastic:
Always backup before playing. I did state it was cloudyg3 2.3 and might work on 20p so risk was known ;)
[G3 Android Development] brom25:
is it working well with Lux?

Thank you!
[G3 Android Development] o1d8oy:
Yes you did. I have no problem with that :) Just reporting it's not working for me.

This file with stock values though would be useful also for people that are not happy with your mod. That's just my 2 cents ;)
[G3 Android Development] der.einstein:
Will thiis Work with CloudyG3 2.2?
[G3 Android Development] horsetastic:
I have done a 2.2 version actually but waiting for it to be tested.
[G3 Android Development] pikachukaki:
2.2 cloudy crashing everything... System ui nfc phone everything
[G3 Android Development] mostafaz:
congrats man

i will try asap :o
[G3 Android Development] horsetastic:
It's still a work in progress until ideal values are reached. It's almost perfect for me atm though. :) so dark haha.
[G3 Android Development] Rapooo:
Does it work on Lion Rom D855 V20P

And which one to choose?

V3 Curve - Super Dim?

V3 4 Step - Dim?
[G3 Android Development] horsetastic:
It might work but it might not. It's from cloudy 2.3 so could break it. Try it out and see but backup first of course. Try curve first and if that's too dark try 4 step
[G3 Android Development] pikachukaki:
both crashing hard on cloody 2.3....it can't even fix after flashing the stock framework-res.apk...need reflash the rom again....maybe you can make it with VRpatch so it could be universal!
[G3 Android Development] mostafaz:
Im agree
[G3 Android Development] horsetastic:
This is so odd. Build V3 is working perfectly on my phone. Very strange. I need to rebuild this next week. Damn it!
[G3 Android Development] Sighfighter:
It World be very nice if you rebuild it. On my cloudy 2.3 with kickoffs hybrid Theme I get many errors and must reinstall the Rom + mod.

Gesendet von meinem LG-D855 mit Tapatalk
[G3 Android Development] ehmjay:
working fine on cloudy 2.3 with gabriel's 0.7c.. sooo dark! [emoji14]
[G3 Android Development] horsetastic:
Haha it is soo dark...

Weird how works on some but not others. What the hell did i do haha.
[G3 Android Development] pikachukaki:
Maybe it's the hybrid theme... It could be better if you also add a guide/tutorial too

EDIT use those zips http://xdaforums.com/showpost.php?p=31258022&postcount=624 there are vrtheme based to do exacly the same thing you do....i try to make one for me but i wasnt succesfull and its pretty late...give it a try!
[G3 Android Development] rayraycarter4:
what did you mod to get the brightness lowered in trying to do it for the d851
[G3 Android Development] sanogueralorenzo:
[MENTION=4124985]horsetastic[/MENTION]

Wow didn't see this thread till today (I reccomended you to make a thread yesterday in a pm lol, sorry about that)

If you want pm me and I can provide a logo for this mod and a nice first post structure.

You've explained this in the last page: Try curve first and if that's too dark try 4 step.

Maybe in the first post you could explain it a bit better so people know which one to download straight away?

V3 Curve - Super Dim

V3 4 Step - Dim

Is it only that v3 curve has a lower value to each autobrightness than v3 4 step? or maybe the 4 step is more equally divided?

Thanks for your work btw, I'm very happy using v3 curve!
[G3 Android Development] lexman098:
Thanks for the effort, but this does not work on d855 stock 20p rom with Gabriel kernel.

Everything just crashes over and over.
[G3 Android Development] sanogueralorenzo:
It works, just don't flash it the first time because you will get all of those crashes.

This happened to me when trying to flash cloudy, kernel and this mod without starting the rom at least once. It also happens when you flash cloudy rom and this mod without even starting the rom once. So, install rom, restart and then install this mod!

Edit: Can someone post the stock autobrightness in case someone wants to go back? Thank you!
[G3 Android Development] lexman098:
I've been running the rom for a while now already. That's not the problem.
[G3 Android Development] pereira6david:
Here is the modified zip file with the default brightness. It came from cloudy 2.3.

https://mega.nz/#!sd50yZpZ!fKI_-Y4qJMlbdobvxXXuzRMztBgu4DzDPa7Eo7UY8eI
[G3 Android Development] sanogueralorenzo:
Hello there, I'm sorry to hear that, I just had this problem that everything would crash if you installed the rom and this mod together.

Give us some more information. Model? Rom? any kernel installed?

Mine is D855 International with latest cloudy and it is working! If you have the same model/rom it should work with a fresh flash of the rom, boot it and then get into recovery to install this mod.

Again, stock brightness values in a zip would be nice. I like this mod quite a lot.

Feedback:

1. At complete dark it is still too much (but it can be solved by lux)

2. Under medium sunlight, the phone sometimes stays too dark, I've tested this without the mod and it isn't a problem. High or low lux it is handled correctly without any problem.

Edit: Thank you, lets see if this link can be added to the first post ^^
[G3 Android Development] pikachukaki:
Did you test it with hybrid theme?

i saw this is stock values...nevermind!
[G3 Android Development] sanogueralorenzo:
[MENTION=4124985]horsetastic[/MENTION]

Can you go any lower? I've read that programs like lux just put a black overlay on top of the screen so no battery is saved

I feel like your mod is great when reading at night, but I would be fine with a lower setting (and would get higher battery)

Have you tried going down to 5 in backlight values? Could you provide us the guide you used to do this? ^^

I've followed this tutorial to find out what v3 actual values are.

http://xdaforums.com/showthread.php?t=1488193

<integer-array name="config_autoBrightnessLevels">

<item>10</item>

<item>20</item>

<item>30</item>

<item>60</item>

<item>120</item>

<item>240</item>

<item>500</item>

<item>900</item>

<item>1400</item>

<item>1900</item>

<item>3000</item>

<item>4763</item>

</integer-array>

<integer-array name="config_autoBrightnessLcdBacklightValues">

<item>30</item>

<item>35</item>

<item>40</item>

<item>50</item>

<item>60</item>

<item>75</item>

<item>90</item>

<item>110</item>

<item>130</item>

<item>150</item>

<item>190</item>

<item>230</item>

</integer-array>

I would go with something like:

same config_autoBrightnessLevels... and

<integer-array name="config_autoBrightnessLcdBacklightValues">

<item>10</item>

<item>10</item>

<item>10</item>

<item>30</item>

<item>40</item>

<item>60</item>

<item>70</item>

<item>80</item>

<item>100</item>

<item>140</item>

<item>175</item>

<item>220</item>

</integer-array>

What do you think? I don't like when there is a little light and the screen autobrightness goes up (since its nice at lowest setting)

And is there a way to modify the Lowest manual birghtness value? I remember in nexus 7 2013 there was a mod for it (included in elemental kernel), it decreased the lowest manual value by a lot, the rest of manual values were the same

Hope you can provide us with an even LOWER autobrightness mod and if its possible a manual mod too ^^

I will try to do something but I'm not very sure how to do the last steps (compile again and make a .zip to make it flashable)
[G3 Android Development] horsetastic:
I don't have a guide that i followed. It's something i learned a while back and still just remember what to do. It's very easy though. Just have to decompile app edit arrays and then recompile. There's loads of apps out there that can do it... But I'm home from holiday now so will try to sort it out asap
[G3 Android Development] jojobans:
Hi

this mod just working for cloudy 2.3??
[G3 Android Development] sanogueralorenzo:
oh no please don't, enjoy your holidays! :D I finnally did it, now I must learn how to make a flashable zip ^^ will find out in a few days!
[G3 Android Development] Kimbo82:
Would be really cool if this could work on other rom's than just cloudy :)
[G3 Android Development] Kappa Lamda:
I can confirm that this rom works with LamHoang 2.2. Basically I flashed it and phone booted just fine. And screen seems to be more dark now!

Many many many thanks to dev... :good::good:
[G3 Android Development] horsetastic:
Should work fine on any 5.1 rom as long as it's not themed or no mods installed etc. Trying to find a way for it to play a little nicer with everything else though :)
[G3 Android Development] Ashieboy™:
Can this work side by side with other modifications regarding the screen?
[G3 Android Development] horsetastic:
Depends what the mod does. Basically this replaces your framework-res.apk so any mods to that this will kill and it may kill your phone. If you flash this first then the other mods it should be fine. I think.
[G3 Android Development] reggiexp:
does this work on cloudy 2.4 ? cause i can't find cloudy 2.3 anymore
[G3 Android Development] pikachukaki:
Working great on 2.4 cloudy
[G3 Android Development] reggiexp:
thanks

downloading cloudy 2.4 im still on 2.2 time to update and flash a new kernel gabriel one looks nice plus this brightness mod

cause i now run a old shupa shups kernel
[G3 Android Development] Ashieboy™:
What if i wanna change from super dim to dim, can i just flash the dim over super dim or do i have to remove the mod first?
[G3 Android Development] horsetastic:
Just flash mod over top should be fine. I'm doing an update soon for cloudy 2.4 with only dim as super dim isn't great I dont think.
[G3 Android Development] horsetastic:
V4 added for Cloudy 2.4
[G3 Android Development] pikachukaki:
Curve is working on 2.4 but isn't the curve more useful than dim?? with only 4 steps?
[G3 Android Development] horsetastic:
I don't really know. At least I've stopped using the super-dim curve personally as it was a bit temperamental and possibly too dark. If people want the curve for 2.4 I can add that.
[G3 Android Development] der.einstein:
Guys. Is it possible to make a generic mod which can be applied to several stock roms is kernels? :rolleyes:
[G3 Android Development] horsetastic:
Yes think so. I'm working on it but progress is slow.
[G3 Android Development] mostafaz:
You mean it doesn't work? If so i think coz of for example cloudy 2.3/4 used ported G4 apps that means updated and modified one therefore there is some conflicts with stock and 2.2 apps

But horestastic can give you proper andwer [emoji736]
[G3 Android Development] der.einstein:
For example I am on CloudyG3 2.2 and don't want to switch to 2.4 just for Lower Brightness mod. Maybe there are other people on still different Roms that would like to use the mod....

So would be great if it would work more general.

But I don't know if this is possible...
[G3 Android Development] pikachukaki:
Im gonna use the dim too see which is better..the only think i dont want to stay dark alot of time!!

This is the first time a zip file manage to create a recovery loop....how did you do that?? :P
[G3 Android Development] filbertmang:
You forgot to change the title to V4.
[G3 Android Development] napster_nagrath:
None of the links working here

Could you post a non-mega mirror for Cloudy 2.3 as none of the links work for me