Does flashing a custom recovery requires rooting the device, or just unlocking the boot-loader is enough? On my Nexus 7, I was able to flash custom recovery (CWM) without rooting. Is the same applicable on other android devices too?
2 Answers
No, it doesn't require root. Although we talk about rooting the device, all you're actually doing is getting root access within the Android OS. Flashing a new ROM or recovery happens before Android is running - it's a lower-level part of the firmware - so you can do it regardless of how Android is set up or what permissions you have within Android.
-
Another thing, a lot of custom ROMs come 'pre-rooted' so if you choose the right ROM the rooting process is completed during the installation of the ROM. Obviously only applicable if you are considering installing a custom ROM. Commented May 26, 2014 at 10:04
You need to unlock the bootloader to flash a custom recovery. Search over at XDA to see how and to choose the best custom recovery for your device. Some popular ones are TWRP and CWM.
fastboot
has as well. But as said before, adjusting your code goes beyond the scope of this site. You might wish to check the Android section at StackOverflow.