ADB 关闭指定应用 并打开

import subprocess,time
sjh="192.168.1.102:5555"
aa1="adb -s {0} shell pm clear com.kuaishou.nebula".format(sjh)
process = subprocess.Popen(aa1,shell=True)
time.sleep(6)
aa2="adb -s {0} shell am start -n com.kuaishou.nebula/com.yxcorp.gifshow.HomeActivity".format(sjh)
process = subprocess.Popen(aa2,shell=True)

 

 

posted @ 2020-12-08 13:59  myrj  阅读(976)  评论(0编辑  收藏  举报