Appium appium 无法识别打开 app

辉影 · 2020年01月09日 · 最后由 snowLiang 回复于 2020年01月09日 · 2311 次阅读

电脑上面 appium 环境都 ok,打开其他 app 也可以,但是公司 app 就是不行
下面是报错信息:
An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.fiture.taurus' application. Visit
https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'C:\Android\android-sdk\platform-tools\adb.exe -P 5037 -s a0e00fa8 shell am start -W -n com.fiture.taurus/com.fiture.taurus.ui.home.HomeActivity -S' exited with code 255'; Stderr: 'Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.fiture.taurus/.ui.home.HomeActivity } from null (pid=15302, uid=2000) not exported from uid 10650

java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.fiture.taurus/.ui.home.HomeActivity } from null (pid=15302, uid=2000) not exported from uid 10650
at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1866)
at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:762)
at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:562)
at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1279)
at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:500)
at com.android.server.am.ActivityManagerService.startActivityAndWait(ActivityManagerService.java:5444)
at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:474)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:161)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:16600)
at android.os.Binder.shellCommand(Binder.java:629)
at android.os.Binder.onTransact(Binder.java:527)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3498)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3373)
at android.os.Binder.execTransact(Binder.java:726)'; Code: '255'

共收到 1 条回复 时间 点赞

'Security exception: Permission Denial: starting Intent
找你们的开发区问一下吧。估计是做了什么策略,没办法通过 activity 启动 app

辉影 关闭了讨论 01月09日 18:00
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册