Skip to content

Instantly share code, notes, and snippets.

@jacobabrahamb4
Created March 9, 2024 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobabrahamb4/9b1340e2832a6f9585c7214d0976b7fc to your computer and use it in GitHub Desktop.
Save jacobabrahamb4/9b1340e2832a6f9585c7214d0976b7fc to your computer and use it in GitHub Desktop.
Android AOSP flash.sh
#!/bin/bash
#sudo ./adb kill-server
#sleep 2
#sudo ./adb start-server
#sleep 3
#sudo ./adb root
#sudo ./adb remount
sudo adb devices
sudo adb reboot-bootloader
sleep 3
sudo fastboot devices
#sudo fastboot flash sbl1 sbl1.mbn
#sudo fastboot flash rpm rpm.mbn
#sudo fastboot flash tz tz.mbn
#sudo fastboot flash sdi sdi.mbn
#sudo fastboot flash modem NON-HLOS.bin
sudo fastboot flash system system.img
sudo fastboot flash userdata userdata.img
sudo fastboot flash boot boot.img
sudo fastboot flash cache cache.img
#sudo fastboot flash recovery recovery.img
#sudo fastboot flash persist persist.img
#sudo fastboot flash aboot emmc_appsboot.mbn
sleep 3
sudo fastboot reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment