CLI ssh (solution 1)
– Copy the archive using scp -i key.pem archive.zip [email protected]_ip:/sdcard/Download/archive.zip
– Log in with SSH ssh -i key.pem [email protected]_ip
– Run su to switch to root user. For more information about root access, please refer to
section using root access in the user guide.
– Flash the archive using /system/bin/flash-archive.sh /sdcard/Download/archive.zip
– Reboot your instance.
CLI adb (solution 2)
– Copy archive adb push archive.zip /sdcard/Download/archive.zip
– Flash archive adb shell /system/bin/flash-archive.sh/ sdcard/Download/archive.zip
– Reboot adb reboot