Most Android devices come with an stock android 3e recovery. However, if you’re adventurous user you might have flashed a custom recovery like TWRP, CWM or Philz to your device.

While flashing custom recovery is safe as long as you’ve the correct recovery file for your device, but in case you flashed an incompatible recovery file then chances are your devices will go into a recovery loop where your device no longer boots into the system and keeps rebooting into recovery.

To fix a recovery bootloop, you need to run a few ADB commands while you’re in the custom recovery. Let’s get started..

  1. On TWRP recovery, select Mount and tick/check the System partition.
  2. Go back and select Advanced » Terminal.
  3. Now issue the following command:
    grep -r recovery /sys
  4. The above command will result in a kernel panic and force your device to boot into System/ROM.

Happy Androiding!