Skip to content

Instantly share code, notes, and snippets.

@valyakuttan
Last active January 16, 2020 09:21
Show Gist options
  • Save valyakuttan/227bbb5a1215df8e21b416533257bae9 to your computer and use it in GitHub Desktop.
Save valyakuttan/227bbb5a1215df8e21b416533257bae9 to your computer and use it in GitHub Desktop.
some android commands(Moto E)

Android Cheat Sheet for Linux

1. Fastboot command - fastboot

To list attached devices

$ sudo fastboot devices

To flash twrp to recovery

$ sudo fastboot flash recovery twrp.img

2. Android Debugging Bridge - adb

To start adb session

$ sudo adb start-server

To end adb session

$ sudo adb kill-server

To list attached devices

$ sudo adb devices

To start adb shell

$ sudo adb shell

To copy files from and to your device

$ sudo adb pull /sdcard/foo ~/bar

$ sudo adb push ~/bar/foo /sdcard/foo

To boot device into fastboot mode

$ sudo adb reboot bootloader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment