yashsingh1/xdaforums huggingface dataset:
[Redmi Note 2 Android Development] jajk:
O.K now you have replaced services.jar with a fixed version and maybe also a framework-res.apk with a modified brightness table.

What if you want some more adjustments?

1. Hassle the kind person who uploaded the files until they get really annoyed:mad:

or

2. Help yourself..... :good:

Here's how:

1. Create a zip file called framework-res.zip

2. Copy the attached file, theme_values.xml

3. Edit the file with your new values

4. Copy the file into framework-res.zip

5. Remove the .zip extension leaving the filename as just framework-res

6. Copy this file to /system/media/theme/default

7. Reboot

8. Re-edit theme_values.xml as many times as it takes until you have the perfect values for your phone:victory:

Attached a useful spreadsheet for planning out your values and revised values in theme_values.xml to be closer to ideal;)
[Redmi Note 2 Android Development] jajk:
Fix specifically for EU MIUI 8.1.30 attached. It is not a flashable zip and it contains instructions......

I have done a second version that has modified hysteresis and sampling timings as per the first post amendments to give a much more fluid feel.....
[Redmi Note 2 Android Development] jajk:
Updated with more info;)
[Redmi Note 2 Android Development] jackjt3:
Hello friend it would be possible to do for the global MIUI 8.1 stable version 8.1.2.0 LHMMIDI I'm waiting for you now thanks :good:
[Redmi Note 2 Android Development] jajk:
[MENTION=4584690]jackjt3[/MENTION] Can you post your services.jar file and I will post a dedicated 8120 version. Is this an EU or MR ROM or stock Xiaomi release?
[Redmi Note 2 Android Development] jackjt3:
Hello friend .... I just installed the ROM MIUI 8.1.3.0 LHMCNDI I will make the adjustments and I will run what you did ... anyway thank you very much:good:
[Redmi Note 2 Android Development] vetriolo:
Thank you. It works! Finally I can use Automatic brightness !
[Redmi Note 2 Android Development] jajk:
[MENTION=7694222]vetriolo[/MENTION] Yeah, it it a novelty to walk into bright sunlight and not panic trying to wind up the brightness by guesswork to see who is calling:)

The big question is why would Xiaomi never fix such an obvious error in more than just our phone and keep releasing version after version without ever fixing errors?
[Redmi Note 2 Android Development] rafix96:
Hello [MENTION=5952980]jajk[/MENTION], can you make this for MIUI EU?
[Redmi Note 2 Android Development] jajk:
[MENTION=4954212]rafix96[/MENTION] If you tell me what version it is:rolleyes:
[Redmi Note 2 Android Development] rafix96:
Sorry, 6.12.15.

WysÅ‚ane z mojego Redmi Note 2 przy uÅ¼yciu Tapatalka
[Redmi Note 2 Android Development] jajk:
[MENTION=4954212]rafix96[/MENTION] See attached file. Only for EU version of 61215.

Enjoy;)
[Redmi Note 2 Android Development] rafix96:
Thanks [MENTION=5952980]jajk[/MENTION] but framework-res file have too small size compare to original file, it's ok?

Edit:

Thanks, it's working ! Great work!
[Redmi Note 2 Android Development] jajk:
Before anybody asks, attached for EU 61222 ;)
[Redmi Note 2 Android Development] DeKs1:
YEY :D Too Speed man :good:
[Redmi Note 2 Android Development] jajk:
O.P updated with better recommended values that are not as bright in darker conditions.

Modify the values yourself as per the instructions if you are wanting a different outcome - I don't have 3 phones with the different LCD panels to test;)

Fixes may not have latest values included.

EU 8020 autobrightness fix:

https://drive.google.com/open?id=0BwdRTuyj12_yNmFLZjk3NWlKY3c

EU61229 autobrightness fix:

https://drive.google.com/open?id=0BwdRTuyj12_yQ3B0MWdVLUVLdXM
[Redmi Note 2 Android Development] asusm930:
is a solution akin to this one http://en.miui.com/thread-293853-1-1.html possible? I've tried out it out on my Redmi Note 4 and it seems to be working (autobrightness values working properly). Thanks in advance
[Redmi Note 2 Android Development] jajk:
[MENTION=2078083]asusm930[/MENTION] That is only half of the fix and is included in the zip already. If the author actually tried the solution, they would find it doesn't work (on RN2 or RN3 at least). The net is full of "experts" that grab onto a small snippet of info, claim it as their own and try to increase hits to their complete loser blogs.

For autobrightness to function correctly, the services.jar file also has to be edited to make things work as they were meant to since it was beyond Xiaomi. That is the other half of the fix I provide and why it is specific for each ROM version.

Are you sure you have 16 steps of brightness control from pitch black to direct sunlight on RN4? All other Xiaomi phones only get 3 levels with the broken code in services.jar.
[Redmi Note 2 Android Development] asusm930:
For me the problem was auto brightness wouldn't work or workes erratically and this fixed it. What you say does make sense, though

Also happy to report that your modded camera works on my 6.12.22 rom :D
[Redmi Note 2 Android Development] dekson9:
Hello all and happy new year for all ! is it a version for hermes_global_images_V7.5.1.0 please ?
[Redmi Note 2 Android Development] jajk:
Provide me with services.jar from that ROM please.
[Redmi Note 2 Android Development] jajk:
61110_EU autobrightness fix.zip attached.

This one has the best ever brightness tracking so far since it is what I am running so I can tweak the values to perfection;)

O.P updated with the latest values - these may or may not suit yourself, your phone or ROM version.

Edit: file replaced with a better version with lazier transitions. O.P edited to reflect new recommended values.

Incidentally, the staggering on brightness transitions is an intentional feature which MIUI call a transition effect - I call it bad coding and would prefer smooth and not know my phone is adjusting the brightness. Is that not the ultimate aim:confused:

Edit: 10/01/17 file replaced with an even better version;)
[Redmi Note 2 Android Development] jajk:
EU 7530 version attached.

In 7.5.x ROMs, the slider functions as an offset when autobrightness is enabled. Sometimes old-school is better than the latest;)
[Redmi Note 2 Android Development] jajk:
EU 61117 version attached.
[Redmi Note 2 Android Development] hadi wira:
Brigthness fix v.8 7.1.2 please..
[Redmi Note 2 Android Development] rockadz9:
Yes, Please autobrighness for miui8.2-7.12. thanks
[Redmi Note 2 Android Development] jajk:
[MENTION=7820795]hadi wira[/MENTION] [MENTION=5820752]rockadz9[/MENTION] Brightness fix for MIUI-SU 7.1.20 attached.

Read the instructions in the zip file.

Let me know how you get on with this one as I do not have 7120 to load and test.
[Redmi Note 2 Android Development] rockadz9:
Thanks for advance [MENTION=5952980]jajk[/MENTION][emoji4]
[Redmi Note 2 Android Development] hadi wira:
Thank you jajk
[Redmi Note 2 Android Development] nggies:
Hi [MENTION=5952980]jajk[/MENTION], this mod can be implement on redmi pro? just want to implement on eu rom v7.2.9 thanks
[Redmi Note 2 Android Development] jajk:
[MENTION=4412739]nggies[/MENTION] Maybe... give me a link to download services.jar for your ROM and I will see what I can do.
[Redmi Note 2 Android Development] nggies:
Great...thanks a lot [MENTION=5952980]jajk[/MENTION] here you are the linkhttp://cloud.tapatalk.com/s/58a69b182bc82/services.jar.zip

Just rename "zip" to "jar". One more thanks a lot.
[Redmi Note 2 Android Development] jajk:
[MENTION=4412739]nggies[/MENTION] Totally different code sorry:( Have you checked to see the extent of it working or not? You can still put a framework.res file in /system/media/theme/default/ to modify the scaling. (a sample attached - unzip first)
[Redmi Note 2 Android Development] hpaixao:
Do you know if your solution works too on Redmi Note 3 MTK with Epic ROM Pro 8.1.3.0_5.0.2, By Epic Team?!
[Redmi Note 2 Android Development] jajk:
[MENTION=8080674]hpaixao[/MENTION] 99% sure it will since RN2 ROMs are the same as RN3 minus fingerprint apps. Why not wait for 8.2 as no doubt everyone will migrate to it.
[Redmi Note 2 Android Development] nggies:
I will try. Thanks for your effort mate.
[Redmi Note 2 Android Development] jajk:
Good news and bad news....

Good news first: Attached is the autobrightness fix for MR 7550. It has some extras for the true believers as follows:

Increase timeout for Activity Manager to kill background tasks from 30 min to 24 hr. This should lessen the mindless killing of background apps when memory is not in short supply (before LMK fires)

Hopefully increased the time between restarting a core service from 1 sec to 3 sec (gives you time to hit restart or shut apps in-between FC messages)

Disable debugging across all services included in services.jar (quite a few).

Those on EU 75xx ROMs may be able to use this as well. Backup your existing services.jar and give it a try - what could possibly go wrong:eek:

Edit: I have attached a revised version that goes much further in disabling needless debugging

plus

logging. Reboot may be slow as Dalvik must rebuild so patience is required.

Bad news is that 7.2.16 is now using code that is incompatible with the current brightness fix. Maybe they have accidentally fixed it at last? All I can see is that they have now intertwined Doze function and PowerKeeper into the AutoBrightness function to stop you from deleting Xiaomi rubbish from your phone. Every piece of Xiaomi code is there for a reason - to plunder your personal information:mad:

I am expecting 8.2.0 will contain the new code as well - it is the same code I have already seen in RN3 Pro and RN4 ROMs so it may not be of any use to the RN2 at all?
[Redmi Note 2 Android Development] DarthJabba9:
Skynet strikes again :mad:
[Redmi Note 2 Android Development] jajk:
[MENTION=5850987]DarthJabba9[/MENTION] Xiaomi want MIUI to be all encompassing - not just a removable theme engine or skin. They mistake their global audience as being as accustomed to being controlled without question as their homeland audience so will fail miserably in there quest for world domination.

I hope I don't overestimate the intelligence of the global audience - sometimes I have doubts:(
[Redmi Note 2 Android Development] DarthJabba9:
[MENTION=5952980]jajk[/MENTION] Unfortunately, your doubts are well founded. There are lots of gullible/unintelligent folk out there. Example: see how people vote in so-called mature democracies. I shall say no more ...
[Redmi Note 2 Android Development] brento285:
Hi all, I installed MIUI skinny 8.1.30 stable and I also installed the custom boot, now wants fixare automatic brightness, I downloaded the zip but in the instructions c is written to change the permissions, how do you change them, I use esfile manager

Inviato dal mio Redmi Note 2 utilizzando Tapatalk
[Redmi Note 2 Android Development] jajk:
This should be good for both EU an MR variants of 8.2.10
[Redmi Note 2 Android Development] unicastbg:
Hi, I'm on 8.2.1.0 global stable and have just applied your fix. Should the brightness slider still work?
[Redmi Note 2 Android Development] jajk:
[MENTION=4039091]unicastbg[/MENTION] On some MIUI versions the slider acts as an offset to the autobrightness, on other versions, the slider is locked mid-position when in autobrightness mode. I think 8.2.10 is the latter from memory:confused:
[Redmi Note 2 Android Development] unicastbg:
What are the chances I lost proximity sensor due to this? Something strange is happening with my phone as I tried downloading a logcat viewer from Play Store, it downloaded, but the install never started. And all that (auto brightness bug initially) when I installed a ported Xperia camera app for MIUI 7 through recovery. I made a full backup before that and restored it once I saw things were getting ugly. I'll try to reflash the phone with either global 8.2.1.0 or dev. 7.5.25 in hopes to resolve the issues.
[Redmi Note 2 Android Development] jajk:
[MENTION=4039091]unicastbg[/MENTION] Autobrightness fixes are specific for each Rom - if you have 8.2.10 recompiled by someone other than EU or MR variety, it will possibly cause issues. Unlikely to be the source of your problems though.
[Redmi Note 2 Android Development] unicastbg:
It's the official one, not modified. But I think you're right. I've reflashed the dev. version and all works fine so far :) Anyways, thanks for your hard work!
[Redmi Note 2 Android Development] whitehats:
Please for mi3w ? Firmware MultiRom 8.5.2.0.MXDCNED.
[Redmi Note 2 Android Development] anguslaw:
Hi, Jajk, will it be possible for you to fix the autobrightness fix for these versions of miui? thanks

SKINNY-V2 -> MIUI 8.6 Beta 7.6.8-SKINNY-V2 - Release Notes - MultiRom

SKINNY-V2 -> MIUI 8.6 Beta 7.6.8-SKINNY-V2 - Release Notes - Xiaomi.eu
[Redmi Note 2 Android Development] file015:
Hi, Jajk, will it be possible for you to fix the autobrightness fix for these versions of miui? thanks

SKINNY-V2 -> MIUI 9 Beta 7.9.14-SKINNY-V2 - Release Notes - Xiaomi.eu
[Redmi Note 2 Android Development] jajk:
[MENTION=5730746]file015[/MENTION] [MENTION=399136]anguslaw[/MENTION] Maybe... you have to provide me with the services.jar for each specific ROM. I would recommend you first try adding the framework-res file to /system/media/theme/default and recalibrate the brightness settings to your version of screen. (unzip the attached file) All the information on what to do is in the first posts.

The mods to services.jar only alter the

response speed

to changing light levels. It is not strictly necessary but I will do it if the files are made available.
[Redmi Note 2 Android Development] file015:
Thanks [MENTION=5952980]jajk[/MENTION], work, after 3 seconds doing the light.

Thanks
[Redmi Note 2 Android Development] Lovehepburn:
Thanks in advance.)

Hello, [MENTION=5952980]jajk[/MENTION]!

Really sorry to bother you, Sir!

I have already covered the framework-res part but having real issues fixing the services.jar file. The main issue is no PC anywhere near. Would you be so kind to help?

Thank you in advance!)
[Redmi Note 2 Android Development] jajk:
[MENTION=1640803]Lovehepburn[/MENTION] Vital piece of information missing.....which ROM is this from?
[Redmi Note 2 Android Development] Lovehepburn:
Yes, sure.

Xiaomi.eu 8.5.2.0 (NAACNED)

Miui 8, Nougat
[Redmi Note 2 Android Development] jajk:
[MENTION=1640803]Lovehepburn[/MENTION] In progress............ (if it is feasible)
[Redmi Note 2 Android Development] Lovehepburn:
Thank you for being helpful!
[Redmi Note 2 Android Development] jajk:
[MENTION=1640803]Lovehepburn[/MENTION] Bad news....8.5.20 has different code that is not able to be modded by this method. The framework.res part should still work to provide suitable scaling of brightness. I don't know how slow or fast the 8.5.20 code responds to light level changes - maybe it is already O.K?
[Redmi Note 2 Android Development] Lovehepburn:
Thank you [MENTION=5952980]jajk[/MENTION] for the attempt! And sorry for all the time you've spent. Auto-brightness is quite slow in 8.5 but I think I can learn to live with it.))
[Redmi Note 2 Android Development] JustACatRu:
Hello!

I've made changes for my needs at brightness.

And puted file to /system/media/theme/default/ (without .zip) rights is 0644

So all should be fine, but after rebooting no changes.

As for my needs Autobrightness should start from 120 (~50%) and go higher. But It does not do that.

Could someone help?

I have MIUI 9.5.1.0 stable.

And there is other files in /system/media/theme/default/ like com.android.systemui
[Redmi Note 2 Android Development] jajk:
[MENTION=4918245]JustACatRu[/MENTION] Your file looks correct. I cannot guarantee this still works on later versions of MIUI and I won't be revising it. Make sure you don't have a theme that is hijacking this functionality.

You can decompile frameworks.res.apk and directly edit the very same brightness array found in /res/values/arrays.

TickleMyAndroid works to decompile / recompile successfully.
[Redmi Note 2 Android Development] arddy1:
The theme_values method still work in MIUI 10 global beta android p mi mix 2s, but the lcd brightness value 1-255 now has changed to 1-4095, and the max brighness value is 4000. With a magisk module you can do it systemlessly :D
[Redmi Note 2 Android Development] nded:
What the module name bro.? I have bug on my ported nougat rom in kenzo
[P3600 ROM Development] rekall:
Have been using WM6 (Bepe 0.79 build) for a while now but have since purchased a lot of the SPB software. I dont really use the WM6 HTC Home features and was wondering what advantages there are really with WM6. Apart from Exchange server contact lookup and timelines within the calendar app is there much else?

I am suffering battery drain and memory leaks constantly with WM6.

Help appreciated as to whether I should downgrade to WM5. Will this make the device faster and more stable?

Thanks reKall
[P3600 ROM Development] zonz:
Hi,

I've been in the same case as I'm using SPB mobile shell.

So I downgraded to WM5.

I think in our quiery for the best we've all forgot how fast is WM5 on trinity.

I found WM5 faster than any WM6 ROM I have tested, and with NO memory loss.

BUT (yes there is a BUT) I came back to WM6 beacause I have data corruption on my 2Go SD card. If I find a fix, I wil definitely return to WM5.
[P3600 ROM Development] kunz:
SD card encryption does it for me .. :)
[Sony Xperia M5] chicken_nugz:
Hi everyone,

I'm a long time ios jailbreaker and I'm kind of new to android, I've been doing a lot of research on downgrading to lollipop 5.1 but I'm confused as to how to get the fsc script option to pop up. So if anyone could give a full tutorial on downgrading that would be appreciated because i really dont want to brick my phone, also a link for 5.1 generic Australia if possible. Thanks :D
[Sony Xperia M5] ih8redsn0w:
http://xdaforums.com/xperia-m5/help/flashing-tutorial-using-flashtool-t3425555

Do a bit more research
[Sony Xperia M5] chicken_nugz:
Thanks bud
[Mate 8 General] somboons:
#Nougat #Mate8 #Root #droidth

www.facebook.com/droidth

Download

- superuser-r275.zip from http://phhusson.free.fr/superuser-r275.zip

- Superuser 2.0 Beta 9.apk from http://xdaforums.com/showpost.php?p=69224582&postcount=1896&nocache=1&z=9811859473848826

then copy it to external sdcard or with the same address nougat zip file

HOW-TO ROOT YOUR MATE 8

1. After you installed all Nougat version from TWRP don't reboot

.

2. Install superuser-r275.zip via TWRP and reboot

.

4. After reboot to system install Superuser 2.0 Beta 9.apk

.

5. Download Root checker to check rooted :)

.

6. Enjoy

VDO Install Nougat L29C185B520 (on C185B320) + ROOT

[YOUTUBE]AF0A1gccU5Y[/YOUTUBE]

credit :

http://xdaforums.com/mate-9/development/recovery-unofficial-twrp-huawei-mate-9-t3515617
[Mate 8 General] sachathull:
Hello, it is a systemless version of root ?
[Mate 8 General] misho_20063:
Video Plz I don't understand Method 2 We will use this root method: Phh's superuser? Plz upload video how to root and Thanx ???
[Mate 8 General] gm007:
Skip number 2 it's for reference to original thread :D
[Mate 8 General] somboons:
updated instruction for easy understand.
[Mate 8 General] somboons:
ีupdated VDO :)
[Mate 8 General] misho_20063:
Very Thnx

Very Thnx To upload This Video I need Asked Another Question Are This Root Turn Off Ota Update From Huawei Or no because it Bootloader On:confused::confused:
[Mate 8 General] somboons:
To be honest, I don't know.
[Mate 8 General] tknguyencsu@gmail.com:
Do we have full root with this method? I flash the superuser.zip in Nougat and I only have partial root even though the rootchecker confirms the phone is rooted.
[Mate 8 General] mr.reza.reza:
Veryyy tnx.... its work on b562
[Mate 8 General] tknguyencsu@gmail.com:
Can you cut and paste in the system partition?
[Mate 8 General] mr.reza.reza:
Yes
[Mate 8 General] cline2:
All work except titanium backup. Can't restore apps its just stuck. But if you install from play store then restore data backup from titanium backup works. Weird. Any idea?
[Mate 8 General] amin318:
need systemless root i guess( system is not writable ) , i dnt know why luckypatcher and adb pc cant detect root access in my device; adaway not working also busybox is weird

any idea how to move superSU app to system? i think superSU will work better than superuser

i tried disabling and updating binary via superSu but got error also corrupted the superuser app
[Mate 8 General] jamalalbas:
I have twrp fot nouget mate 8

---------- Post added at 09:04 PM ---------- Previous post was at 09:00 PM ----------

Busybox apps not work in nouget I want update app..

And I want font for nougrt .

Thanks
[Mate 8 General] tknguyencsu@gmail.com:
I follow the procedure in post #1. However I cannot cut and paste in the system partition although I can use some apk that requires root and I can cut and pass in the data partition. Is there anything that you did differently than in post #1 to be able to cut and paste in the system partition?
[Mate 8 General] hanygrandaton:
First of all , let me thank you for this working method to root Mate 8 that runs Android 7 EMUI 5...

But is there any way else to flash the super su itself as before in EMUI 4 through TWRP

---------- Post added at 01:01 PM ---------- Previous post was at 12:58 PM ----------

Why We Can't Flash Supersu in android 7 .. Thanks
[Mate 8 General] tknguyencsu@gmail.com:
Yes we can flash - superuser-r275.zip in android 7 using twrp from http://xdaforums.com/honor-8/how-to/twrp-nougat-edition-t3504140

After that we can run Superuser 2.0 Beta 9.apk from http://xdaforums.com/show...11859473848826

However I only obtain partial root. I cannot cut and paste in the system partition however I can cut and paste in the data partition and run some apk like reboot manager that requires root.

When I follow the procedure suggested by post #1, I get the same result, only partial root.
[Mate 8 General] sibiyav1486:
I also get partial root, cannot install busybox, can this be fixed? any workaround for this issue?
[Mate 8 General] amin318:
I guess we should wait for official twrp for emui5 , then we can use superSU and systemless rooting
[Mate 8 General] 0mran:
Unfortunately I haven't flashed superSU while installing Nougat via TWRP which is not exist any more, is there any way to root my device ?
[Mate 8 General] tknguyencsu:
You can flash the twrp in this site:

http://xdaforums.com/mate-8/general/twrp-3-0-2-0-mate-8-t3521215

Then follow the procedure suggested in the post to obtain partial root. Not all function of this twrp work but you should be able to flash the superuser file and run the superuser.apk to obtain partial root.
[Mate 8 General] blinkt88:
What is means partial root?Is this not full root?

https://facebook.com/groups/huaweifanclub
[Mate 8 General] tknguyencsu@gmail.com:
You will not be able to cut and paste in system partition even though you can cut and paste in data partition. You can also run some apks that require root such as reboot manager or es file explore but you cannot mount system as R/W.
[Mate 8 General] danterape:
doesnt work for me. root checker shows rooted but its not.
[Mate 8 General] amin318:
It's rooted but u can't write in system partition, we need TWRP to do a systemless root via superSU

Then we can mess with system as well :D
[Mate 8 General] hanygrandaton:
But It is Partially Rooted ... Why Super Su Itself Not Working
[Mate 8 General] thullsacha:
Help

The systemless root is ok ?
[Mate 8 General] fazal.mehmood:
i am able to get root access of my NXT-AL10C00B577. but i cant access developer option. did factory reset it. i want to debrand it to L29. can any body tell me how do i enable usb debugging without using developer option? Thanks
[Mate 8 General] paulcl:
Update with a KangVip version, latest is M8_A_EMUI5.0_B577_Kangvip.zip https://mega.nz/#!wtpGQQwZ!muqfxNnAWbPdXe-aEcqNsxDTmDXR2kfQK-fSu8RPVac

Gives you root and some interesting KangVip features.
[Mate 8 General] fazal.mehmood:
Already done it. But Thanks for Help. :D one more thing. i rebranded it to L29. now can i downgrade it? tried with roll back package but not work.
[Mate 8 General] paulcl:
Easiest way to downgrade is by HiSuite on PC.
[Mate 8 General] bluheart:
Link isn't working buddy!
[Mate 8 General] paulcl:
Lookup in Kangvip subjectif, can't copy by Phone.
[Mate 8 General] bluheart:
Sure. Thanks.