ADB(Android Debug Bridge)
When developing an application with Android Phone and Android tablet, you may need to use the adb command on you PC.
You can conveniently control the device by using the adb command.
The following frequently used adb commands are summarized.
: Start the adb server. Used when it is not turned on.
adb start-server
: Stop the adb server.
adb kill-server
: Shows a list of Android devices that can be connected with adb.
adb devices
: Execute the shell.
adb shell
: Forces the termination of the app(written in package name).
adb shell am force-stop package
: Delete all data in the app.
adb shell pm clear package
: Install the app using the APK file.
adb install filename
: Update and install the already installed app.
adb install -r filename
: Delete the app.
adb uninstall package
: Copy files from the Android device(remote) to the PC(local).
adb pull remote local
: Copy the PC(local) file to the Android device(remote).
adb push local remote
: Record the Android screen as a video. Terminate Ctrl + c.
adb shell screenrecord file
: Show the Android version.
adb shell getprop ro.build.version.release
: Show the SDK version.
adb shell getprop ro.build.version.sdk
: Show the model name of the Android device.
adb shell getprop ro.product.model
'Android' 카테고리의 다른 글
[Android] Hilt @Binds, @Providers 차이점 (1) | 2021.09.27 |
---|---|
Kotlin KAPT(Kotlin Annotation Processing Tool) 이란 (0) | 2021.09.13 |
[Android] PID(Process ID)/UID(User ID) ADB로 확인하는 방법 (0) | 2021.09.07 |
[Android] logcat chatty 로그가 제대로 출력되지 않을 때 expire 1 line (0) | 2021.09.07 |
Android Annotation Summary (0) | 2021.09.07 |
List up Android version, SDK version, API level (0) | 2021.09.03 |
WifiNetworkSuggestion Example (0) | 2021.09.02 |
Android 버전, SDK 버전, API 수준 정리 (0) | 2020.07.27 |