美文网首页
2018-12-20 adb shell 处理app进程的部分命

2018-12-20 adb shell 处理app进程的部分命

作者: 俊德 | 来源:发表于2018-12-20 12:33 被阅读0次

1. ADB连接至客户机

在宿主机的shell中运行以下命令:

adb connect 192.168.122.131:5555

2. 检查app是否在运行

在宿主机的shell中运行以下命令:

adb shell ps | grep sohu

3.找到app的系统进程

在宿主机的shell中运行以下命令:

adb shell ps | grep train

4.杀死进程

adb shell am force-stop com.hl.train

若上述命令的输出如下所示,则表示成功杀死进程

5.清理进程数据

adb shell pm clear com.hl.train 

6.启动进程

adb shell am start -a android.intent.action.MAIN -n com.hl.train/.activity.SplashActivity

Starting: Intent { act=android.intent.action.MAIN cmp=com.hl.train/.activity.SplashActivity }

相关文章

网友评论

      本文标题:2018-12-20 adb shell 处理app进程的部分命

      本文链接:https://www.haomeiwen.com/subject/hehykqtx.html