adb 开启和关闭一个程序

adb 开启和关闭一个程序

启动      adb shell am -n 包名/要启动的activity路径(相对或绝对路劲)  shell


关闭      adb shell "kill $(ps | busybox grep 包名 | busybox tr -s ' ' | busybox cut -d ' ' -f2)"  spa

相关文章
相关标签/搜索