Advertisement
metalx1000

Flash Stock Firmware on Motorola Android

Jan 9th, 2022
3,867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #flashing Stock Firmware on Android Motorola
  2. #get firmware for device
  3. #https://mirrors.lolinet.com/firmware/
  4.  
  5. #after unzipping use flashfile.xml to get a list of partitions and images to flash
  6. grep '"flash"' flashfile.xml|cut -d\" -f4,8|tr '"' ' '|awk '{print "fastboot flash " $2 " " $1}'
  7.  
  8. #clear data
  9. fastboot erase carrier
  10. fastboot erase userdata
  11. fastboot erase metadata
  12. fastboot erase ddr
  13. fastboot oem fb_mode_clear
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement