android命令大全 pdf,Android adb命令大全

adb 查看当前展示的Activity

adb shell dumpsys activity | grep "mResumed"

//单设备

adb shell

dumpsys activity | grep "mResumed"

//多设备

//OXF-AN00

adb -s 8UJDU19B15018870 shell

adb -s VEG5T20324000109 shell

adb -s L8K5T19903009922 shell

dumpsys activity | grep "mResumed"

adb 查看APP的包名

连接打开前台app

adb shell "dumpsys window | grep mCurrentFocus"

adb wifi调试

连接adb connect ip

adb connect

断开adb disconnect ip

adb disconnect

查询当前设备所有安装应用包名

adb shell pm list packages

卸载apk

adb uninstall 应用包名

adb uninstall com.live.yinyu

adb uninstall com.netease.nim.demo

//OXF-AN00,HONOR V30

adb -s 8UJDU19B15018870 uninstall com.netease.nim.demo

启动APP

第1步:

adb shell dumpsys window windows | findstr "Current"

第2步:

adb shell am start -n 应用包名/启动页完整包名

adb shell dumpsys window windows | findstr "Current"

adb shell am start -n com.liantuo.xiaojingling.newsi/com.liantuo.xiaojingling.newsi.view.activity.SplashActivity

多设备情况下安装apk

adb -s CLB7N19212003136 install D:\ZxnWork\gitee\XiaoJingLing\apk\1.13.apk

adb -s da4dd095 install D:\ZxnWork\gitee\XiaoJingLing\apk\1.13.apk

列出当前设备

adb devices

D:\ZxnWork\gitee\xjl_mzks>adb devices

List of devices attached

CLB7N19212003136 device

da4dd095 device

连接单个手机安装apk

adb install -r xxxx.apk

注意:应用名称xxxx不能有中文

例如:安装医库app

`adb install -r D:\apks\com.medicool.zhenlipai.apk`

指定设备安装apk

//在emulator-5554模拟器上安装ebook.apk:

adb -s emulator-5554 install ebook.apk

//在真机上安装ebook.apk:

adb -s HT9BYL904399 install xx.apk

adb -s CLB7N19212003136 install D:\ZxnWork\gitee\xjl_mzks\app\build\outputs\apk\release\app-release.apk

显示系统中全部Android平台:

**android list targets**

终止adb服务进程:

adb kill-server

重启adb服务进程:

adb start-server

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值