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

'appPackage'
'appActivity'

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

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

获取app 的Activity 和 Package 

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

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

安装tidevice,需要先安装iTunes

获取app 的Activity 和 Package

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

获取app 的Activity 和 Package

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

相关文章:

  • 2021-09-05
  • 2021-12-14
  • 2021-07-30
  • 2021-10-10
  • 2021-12-30
  • 2021-08-05
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-06-10
  • 2021-08-03
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案