get_cpu='''adb shell dumpsys cpuinfo | findstr "com.qiyi.video.lite"'''
os.system(get_cpu)
get_cpu='''adb shell "dumpsys cpuinfo | grep com.qiyi.video.lite"'''
os.system(get_cpu)
//实时获取cpu信息,-d 1 间隔1秒刷新
adb shell top -d 1 | findstr "com.qiyi"
# PR优先级,S进程状态:D=不可中断的睡眠状态, R=运行, S=睡眠, T=跟踪/停止, Z=僵尸进程
# #THR 程序当前所用的线程数
adb shell top
//获取应用的uid
adb shell "ps | grep com.qiyi.video.lite"
//按HOME键
adb shell input keyevent 3
//启动应用
adb shell "am start com.qiyi.video.lite/com.qiyi.video.lite.homepage.HomeActivity"
//强制停止应用
adb shell "am force-stop com.qiyi.video.lite"
//获取当前页面的应用包名和activity
adb shell dumpsys window | findstr mCurrentFocus