安卓iot-adb常用调试命令

本文介绍了一系列ADB命令的实际应用场景,包括截屏、应用安装与启动、设置默认输入法等操作,并提供了详细的命令实例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

//截图
adb -s 192.168.30.40:5555 shell screencap -p /sdcard/sreen192.168.1.40.png
adb -s 192.168.30.40:5555 pull /sdcard/sreen192.168.1.40.png


//安装并打开
adb -s 192.168.30.80:5555 install -r  C:\Users\911\Desktop\xx_release_v1.10.apk
adb -s 192.168.30.80:5555 shell am start -n  com.zk.zkClassBoard/com.xx.xx.MainActivity

//打开静默安装的大数据屏幕
adb -s 192.168.1.12:5555 shell am start -n  com.example.datashow/com.example.datashow.MainActivity

// 安装设置默认输入法
adb -s 192.168.x.xshell  ime list -a  看mid
adb -s 192.168.x.x:5555 install C:\Users\911\Desktop\WI_IME.apk
adb -s 192.168.x.x:5555 shell settings put secure enabled_input_methods com.hit.wi/.SoftKeyboard
adb -s 192.168.x.x:5555 shell ime set com.hit.wi/.SoftKeyboard

adb kill-server //结束adb服务
adb start-server //启动adb服务
adb devices //获取adb设备列表

adb -s 192.168.30.69:5555 shell am start -n  com.zk.zkClassBoard/com.xx.xx.MainActivity

//卸载
adb uninstall 包名

//关闭应用程序

adb shell am force-stop 包名

//清空应用程序数据
adb shell pm clear 包名
adb shell am start -n 包  启动

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值