ADB Commands

[日本語]

This is a note of ADB commands that I used when I participated in User Acceptance Test. For a description of ADB and how to use it, please refer to the link below.

https://developer.android.com/studio/command-line/adb

List of commands and used scene or explanation

adb devices

・Display a list of all attached Android devices.

adb remount

・It allows the /system directory of rooted Android device in read-write mode

adb push <File path on PC> <Android device folder path>

・Transfer files on PC to folder on Android device

adb pull <Android device file path> <Folder path on PC>

・Transfer files from Android device to folder on PC

adb install -r <sample.apk>

・Overwrite install the apps on Android devices

adb logcat

・Log Android device

adb reboot

・Restart Android device

adb reboot recovery

・Restart Android device into recovery mode

adb reboot bootloader

・Restart Android device into bootloader mode

adb start-server

・Start ADB

adb kill-server

・Stop ADB

adb shell pm clear <Package name>

・Delete app data

adb shell pm list package

・Display a list of package names for apps

adb shell getprop ro.build.version.release

・Display OS version of Android device

adb shell getprop ro.build.id

・Display OS package version of Android device

adb shell dumpsys iphonesubinfo

・Display Android device’s ID / IMEI

20161201

One thought on “ADB Commands

Leave a comment