获取app 的Activity 和 Package

对于Android来说,以下两个参数都是必不可少的

'appPackage'
'appActivity'

 可以通过以下adb shell命令获得

adb shell dumpsys window |findstr /|findstr name=
adb shell dumpsys window | findstr mCurrentFocus

 

对于ios,app包名可以通过tidevice来获取

简介
tidevice 是阿里的内部的一个小组用来做 iOS 自动化用的工具,这个工具是纯 Python 写成的,所以也是跨平台的。也就是可以在能跑起来 Python 的 Windows、Linux、Mac 上运行。

安装tidevice,需要先安装iTunes

输入tidevice applist ,查看设备上的第三方应用包名:

更多详细的功能可以查看 tidevice 的github文档:https://github.com/alibaba/taobao-iphone-device

原文地址:https://www.cnblogs.com/muxs/p/15161451.html