Telegram Channel: t.me/amazon_oss
adb shell twrp wipe
adb shell twrp cache
adb shell twrp system
adb shell twrp dalvik
adb push ROM.zip /sdcard/
adb shell twrp install /scard/ROM.zip
adb shell mount /system_root
adb shell "sed -i 's|ro.secure=1|ro.secure=0|g' /system_root/system/build.prop"
adb shell "sed -i 's|ro.adb.secure=1|ro.adb.secure=0|g' /system_root/system/build.prop"
adb shell "echo 'persist.sys.usb.config=adb ' >> /system_root/system/build.prop"
echo -ne "UART_PLEASE" | dd of=misc-uart.bin bs=1 seek=16 conv=notrunc
# sudo ./boot-fastboot.sh
fastboot flash MISC misc-uart.bin
# From live env, no twrp!
adb shell settings put global device_provisioned 1
adb shell settings put secure user_setup_complete 1