欢迎使用CSDN-markdown编辑器

List Connected Devices
adb devices
C:\Users\yanpingc>adb devices
List of devices attached
04157df4654e6308 device

C:\Users\yanpingc>adb -s 04157df4654e6308 shell
shell@zeroltechn:/ $
Specify the device
adb -s XXXXXXX
-d specify real device.
-e specify emulator.
Output logs
adb logcat
Adb logcat | grep START
Install/Uninstall an Application
Install: adb install -r *.apk
-r is upgrade the package if it exists.
You can uninstall an android application via the shell. Switch the data/app directory (cd /data/app) and simply delete your android application.
You can also uninstall an app via adb with the package name.
adb uninstall

Go to Shell
You can get shell access to your Android device via the following command.
adb shell
This will connect you to your device and give you Linux command line access to the underlying file system, e.g. ls, rm,, cd, mkdir, etc. The application data is stored in the directory “/data/data/package_of_your_app”.
Copy files from and to your device
You can copy a file from and to your device via the following commands.
// assume the gesture file exists on your Android device
adb pull /sdcard/gestures ~/test
// now copy it back
adb push ~/test/gesture /sdcard/gestures2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值