Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save willtejeda/790f6ec75fda83b6a90f9fccbc0a9236 to your computer and use it in GitHub Desktop.

Select an option

Save willtejeda/790f6ec75fda83b6a90f9fccbc0a9236 to your computer and use it in GitHub Desktop.

adb and fastboot must know

Install android SDK (bottom of the page) or full android studio if you need to develop on android.

fastboot looks like adb but it is used when device is in bootloader (or fastboot).

Check connected devices

adb:

adb devices

fastboot

fastboot devices

Reboot

normal reboot

adb reboot

bootloader reboot

adb reboot bootloader

recovery reboot

adb reboot recovery

Unlock / erase / flash

unlock bootloader

fastboot oem unlock

Warning: If you if you unlock the bootloader it will behave like a factory reset. So backup all your data before!

lock bootloader

fastboot oem lock

Warning: If you lock back the bootloader, next time you need to unlock data will still behave like a factory reset

erase

fastboot oem unlock

flash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment