Nougat is still in its early phases and needs a lot of work when it comes to development and compatibility with popular softwares and hacks. One such issue is with Rooting an android phone running Nougat.
ChainFire is one of the most influential developers on android platform because he has made SuperSU, an universal solution to root pretty much all android devices. SuperSU supports a very wide range of devices that run on different android version and different ROMs.
But since Marshmallow, Google has tightened up the security of Android OS a bit too much that some extra work was needed to properly root the device (patching some SELinux contexts to avoid bootloop). And in Nougat, things went worse.
So ChainFire introduced Systemless Root.
- Typically, rooting is done by modifying the system partitions. But Systemless root modifies the boot image instead of the /system partition to gain root access. This has some upsides such as unrooting is just a factory reset away, and official updates are easy to install, since the /system partition is untouched and the modified boot image can be easily reverted back to the original by flashing one.
But this is yet very much experimental, and people are facing several issues more than there are advantages.
One such common bug is broken sensors on Marshmallow and Nougat devices. Sensors such as gyroscope, proximity, acceleration sensors etc are found not working anymore after flashing SuperSU. Apps that tests and reads sensor data such as CPU-Z and Sensors test cannot detect those sensors and the sensors section is found empty.
sensors not working after root
screenshot credit: Issac Ali
It seems like the Systemless method of rooting is what causes the issue. SuperSU has given new versioning system called Service Release with SuperSU v2.78 since September, 2016, and this bug has been around since then. This bug affects several devices including OnePlus 2, Redmi Note 3, Custom ROMs such as Resurrection Remix 5.8.x and Lineage OS.
Also read: How To: Fix Your Phone’s Charging Issues
The latest release SuperSU 2.79 SR3 has addressed this issue and fixed it. Flashing SuperSU v2.79 SR3 will fix the broken sensors issue that was caused by flashing previous versions. Although some devices running Nougat have been reported to work just fine with SuperSU v2.78, it is always recommended to use the latest release.
Sensors work again after flashing latest SuperSU v2.79 SR3
screenshot credit: Issac Ali
If you are in such an uneasy place where your Nougat/Marshmallow device sensors are all failing to work after you have rooted, grab the latest SuperSU 2.79 SR3 zip and flash it via TWRP or any preferred custom recovery. Many recommend first unrooting, or even reflashing the ROM and then flashing it but as far as we have tested, a dirty flash works just fine!