let's say I have about 100 old kindle fires to root (or other android devices). Of course I don't want to waste days to root them one by one, is there any way to optimize the process?
The first step must be done manually, and one extra tap (confirm a prompt) for each device is required.
SuperSU.zipand your recovery image to
Script (Unix version):
#!/bin/sh echo "install /sdcard/SuperSU.zip" > openrecoveryscript echo "cmd reboot" >> openrecoveryscript adb wait-for-device adb reboot bootloader fastboot wait-for-device fastboot flash recovery recovery.img fastboot boot recovery.img adb wait-for-device adb push SuperSU.zip /sdcard/SuperSU.zip adb push openrecoveryscript /cache/recovery/openrecoveryscript adb reboot recovery # You're done!