If sensors on your Nexus 5X or Nexus 6P are broken after downgrading from Android O DP2, then you can simply fix it. The procedure is very simple, so you can easily bring your sensors back to life. All you need to relock the bootloader. If you are experiencing sensor issue after downgrading to Android Nougat from the Android O, then check out the guide below.

Before begin with the guide, note that this method might not work with every device. In addition, we do not know if this is a perfect and practical remedy for fixing sensor issue on Nexus 5X or Nexus 6P. Read on to know how to fix sensor issue on Nexus 5X or Nexus 6P after downgrading it to Android Nougat from Android O Developer Preview 2.

How to Fix Sensor Issue on Nexus 5X/Nexus 6P

  1. Connect your device to your PC, go to the ‘Platform tools’ folder and open a command window from there.
  2. Reboot your device into fastboot mode by issuing the command: adb reboot bootloader
  3. Now, issue the below command to relock the bootlosder: fastboot flashing lock Note: Locking the bootloader will wipe the data you have on the phone. So back up any important file before proceeding. Does this method helped you to fix sensor issues on your Nexus 5X or Nexus 6P. Let us know in the comment section below. (Source)