Useful ADB Commands

adb install C:\package.apk – Installs the package located at C:\package.apk on your computer on your device.

adb uninstall package.name – Uninstalls the package with package.name from your device. For example, you’d use the name com.rovio.angrybirds to uninstall the Angry Birds app.

adb push C:\file /sdcard/file – Pushes a file from your computer to your device. For example, the command here pushes the file located at C:\file on your computer to /sdcard/file on your device

adb pull /sdcard/file C:\file – Pulls a file from your device to your computer – works like adb push, but in reverse.  

 

adb logcat – View your Android device’s log. Can be useful for debugging apps.

 

adb shell – Gives you an interactive Linux command-line shell on your device.

adb shell command – Runs the specified shell command on your device.

 

 

Type adb -e install [path of the apk]. For example, adb –e install c:\app\apkinfo.apk.  - Inta
l
l
 
a
p
p to a emulator.

posted on 2016-08-29 16:10  alicegu  阅读(115)  评论(0)    收藏  举报