Advertisement
mechanicker

Flash android firmware without reboot

Feb 5th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Create a file named 'fastboot' in your PATH
  4. # -- begin --
  5. # fool the flash-all.sh: dtbo.sig
  6. ${ACTION} ~/installs/platform-tools/fastboot --skip-reboot $*
  7. # -- end --
  8.  
  9. for slot in b a; do
  10.     ${ACTION} fastboot set_active ${slot}
  11.     ${ACTION} fastboot reboot bootloader
  12.     ${ACTION} sleep 5
  13.     ${ACTION} ./flash-all.sh
  14.     ${ACTION} sleep 5
  15. done
  16.  
  17. echo Remember to lock bootloader: fastboot flashing lock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement