网站设计速成,h5网站开发中心,国企门户网站建设情况汇报,资源搜索神器一、依赖库
os
二、命令
1.这是查看设备中所有应用包名的最简单方法。只需在命令行中输入以下命令#xff1a; adb shell pm list packages 2.打印启动的程序包名 adb shell am monitor回车#xff0c;然后启动你想要获取包名的那个应用#xff0c;即可获得 3.查看正在运…一、依赖库
os
二、命令
1.这是查看设备中所有应用包名的最简单方法。只需在命令行中输入以下命令 adb shell pm list packages 2.打印启动的程序包名 adb shell am monitor回车然后启动你想要获取包名的那个应用即可获得 3.查看正在运行的应用的包名 adb shell dumpsys window w |findstr \/ |findstr name adb shell dumpsys window windows | findstr mCurrentFocus 4.通过ADB启动一个Android应用 adb shell am start -n package_name/package_name.activity_nameegadb shell am start -n com.visteon.smartscene/com.visteon.smartscene.ui.SceneActivity egadb shell am start -n com.visteon.smartscene/com.visteon.smartscene.MainActivity
三、python代码
os.system(adb shell am start -n com.visteon.smartscene/com.visteon.smartscene.MainActivity)