[GUIDE] [Mi 4] Fix sensors not working!

userprince

Senior Member
Mar 12, 2012
732
181
0
Nice!

I have managed to set it to permissive and it's works, but do I need to set up to permissive always I want to use ir blaster?! Also, whats mean to be on permissive mode? Any kind of risk or similar?

Thank you.
No risk. Once you set it to permissive you don't need to do that again until a reboot.
 

jesuslg123

Senior Member
Mar 8, 2011
161
32
0
If the app is changed to system app type, permisisve mode won't be required? Make sense?

I have tried to move my IR app to system app, but it's crash because can not find some library.
 

hottracks4

Senior Member
Sep 18, 2008
988
99
0
Bangalore
I'm in the same soup.. How is this not a bug?! I mean, how on earth can your own software (MIUI) kill certain parts of a device you (Xiaomi) manufactured?! Can someone link me to the rooting procedure for MM, build version MMB29M, MIUI 8 Global 6.7.5 Beta.. I've tried flashing the persist.img through fastboot.. I need to try the root way.. I'm ready to downgrade or do whatever.. Please just help me get my phone working.. TIA!
 

hottracks4

Senior Member
Sep 18, 2008
988
99
0
Bangalore
The persist file from fastboot doesn't work on my phone too, both MM and KK.

Try use the persist file link I'd attached page before and use Wanam Partition Backup to restore. The persist file came from a working MI3 and it work for me.
This worked for me as well. Phew.. Thanks a ton!

Edit: FYI, used this method to Root the latest MIUI 8 Beta and then do the above method - http://en.miui.com/thread-254954-1-1.html
 
Last edited:

2rndwn4wut

New member
Sep 21, 2016
1
1
0
Ok this one works for me.

1. flash mi3 global developer rom (6.9.15 miui 8)

2. flash twrp-3.0.0-0-cancro-20160309.zip
(not the .img) via miui recovery 2.0.1. rename it to update.zip and place it on root directory.
a. boot into miui's recovery by pressing vol up + power button
b. select english > install update.zip to system.
c. after that press vol up + power to boot into recovery again this time it will boot into twrp and not miui's recovery.

Note: step above can be done via pc using fastboot mode but using the .img version of twrp.

3. flash the the latest version of SuperSU via twrp

4. reboot and check if your mi3 is now rooted by downloading SuperSU app from playstore

5. download CM13 stable version and flash it via twrp. dont forget to wipe and flash open_gapps. i use the pico version.

6. once you have flash cm13 rom on your mi3
a. go to about phone > tap build number until developer options pops up
b. go to developet options > set root access to apps and adb

7. Download Terminal for android from playstore and also Sensor Box for testing our sensors later.

8. Open Terminal and type in the following:
su (prompt appears, just press allow)
su 0 setenforce 0 (enforcing to permissive)
reboot (this will reboot your device)

9. aftet reboot open Sensor Box and check if all sensors are working exept for Temp coz by default it is not supported on mi3

***credits to 2rndwn4wut***
 
  • Like
Reactions: sergiosoldo