美文网首页
Get your app run

Get your app run

作者: 彩虹金刚_Q | 来源:发表于2018-11-29 20:03 被阅读0次

To get your app opened automatically with appium you need at least two things

the apps package name and the activity name

for package name there is a easy way to list all package in your device and store it in a txt so that you can search it easily

adb shell pm list packages > packages.txt

And for running activity we can open the one we want and run

adb shell dumpsys window windows | grep -E 'mFocusedApp'

相关文章

网友评论

      本文标题:Get your app run

      本文链接:https://www.haomeiwen.com/subject/gyqqcqtx.html