appium自动化真机app测试启动app报错貌似是因为没有权限不知道怎么解决?求大佬解惑!
本帖最后由 qlcrmc 于 2021-1-22 16:14 编辑An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.yonxin.service' 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 'D:\\file\\Android\\platform-tools\\adb.exe -P 5037 -s 9YE0218707025165 shell am start -W -n com.yonxin.service/.activity.share.LoginActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' exited with code 255'; Stderr: 'Security exception: Permission Denial: starting Intent { act=android.intent.action.MAIN cat= flg=0x10200000 cmp=com.yonxin.service/.activity.share.LoginActivity } from null (pid=24988, uid=2000) not exported from uid 10264 java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat= flg=0x10200000 cmp=com.yonxin.service/.activity.share.LoginActivity } from null (pid=24988, uid=2000) not exported from uid 10264 at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPermission(libmapleservices.so:5783280) at com.android.server.wm.ActivityStarter.startActivity(libmapleservices.so:5882752) at com.android.server.wm.ActivityStarter.startActivity(libmapleservices.so:5877396) at com.android.server.wm.HwActivityStarter.startActivity(libmaplehwServices.so:3735368) at com.android.server.wm.ActivityStarter.startActivityMayWait(libmapleservices.so:5404544) at com.android.server.wm.HwActivityStarter.startActivityMayWait(libmaplehwServices.so:3590812) at com.android.server.wm.ActivityStarter.execute(libmapleservices.so:5875432) at com.android.server.wm.ActivityTaskManagerService.startActivityAndWait(libmapleservices.so:8145712) at com.android.server.am.ActivityManagerService.startActivityAndWait(libmapleservices.so:8146592) at com.android.server.am.ActivityManagerShellCommand.runStartActivity(libmapleservices.so:8149412) at com.android.server.am.ActivityManagerShellCommand.onCommand(libmapleservices.so:8167016) at android.os.ShellCommand.exec(libmapleframework.so:8790048) at com.android.server.am.ActivityManagerService.onShellCommand(libmapleservices.so:8168740) at android.os.Binder.onTransact(libmapleframework.so:6993756) at android.app.IActivityManager$Stub.onTransact(libmapleframework.so:8143004) at com.android.server.am.ActivityManagerService.onTransact(libmapleservices.so:7411520) at com.android.server.am.HwActivityManagerService.onTransact(libmaplehwServices.so:4278196) at android.os.Binder.execTransactInternal(libmapleframework.so:8310628) at android.os.Binder.execTransact(libmapleframework.so:8309852)'; Code: '255' 参考这篇文章看下呢https://bbs.csdn.net/topics/395524475 来学习 root一下再试试?
root吧 https://bbs.csdn.net/topics/395524475参考下这篇文章
页:
[1]