krlaboratories

Android device command line cheatsheet by Cr0n

Dec 31st, 2021 (edited)
3,802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.96 KB | None | 0 0
  1. /* install Android SDK tools */
  2.  
  3. sudo apt-get update
  4. sudo apt-get install android-tools-adb android-tools-fastboot
  5.  
  6. /* ADB command line */
  7.  
  8. adb devices
  9. adb reboot bootloader
  10. adb shell
  11. adb root
  12. adb reboot recovery
  13.  
  14. /* Fastboot command line */
  15.  
  16. sudo fastboot devices
  17. fastboot oem device-info
  18.  
  19. fastboot flash recovery twrp.img
  20.  
  21. fastboot boot twrp.imp
  22.  
  23. fastboot flash bootloader bootloader-name-device-version.img
  24. fastboot reboot-bootloader
  25. fastboot flash radio radio-name-device-version.img
  26. fastboot reboot-bootloader
  27. fastboot flash system system.img
  28. fastboot reboot-bootloader
  29. fastboot flash userdata userdata.img
  30. fastboot flash recovery recovery.img
  31. fastboot flash boot boot.img
  32. fastboot erase cache
  33. fastboot flash cache cache.img
  34.  
  35. /* heimdall flash tool */
  36.  
  37. sudo heimdall-frontend
  38. heimdall detect
  39. heimdall flash --RECOVERY ~/twrp-recovery.img --noreboot
  40.  
  41. /* Multi-users */
  42.  
  43. adb shell pm list users
  44. adb shell pm create-user --guest NEWUSER
Advertisement
Add Comment
Please, Sign In to add comment