app真机启动报错求帮助

今天用mumu模拟器可以用命令:adb shell am start -W -n com.tencent.wework/.launch.WwMainActivity
可以正常启动模拟器,但换真机不知道为何报错,在网上查看没有找到原因,求帮助
adb shell am start -W -n com.tencent.wework/.launch.WwMainActivity
Starting: Intent { cmp=com.tencent.wework/.launch.WwMainActivity }
Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.
tencent.wework/.launch.WwMainActivity } from null (pid=27378, uid=2000) not expo
rted from uid 10509

java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000
cmp=com.tencent.wework/.launch.WwMainActivity } from null (pid=27378, uid=2000)
not exported from uid 10509
at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPe
rmission(ActivityStackSupervisor.java:1089)
at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.j
ava:789)
at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.j
ava:588)
at com.android.server.wm.ActivityStarter.startActivityMayWait(ActivitySt
arter.java:1390)
at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:51
9)
at com.android.server.wm.ActivityTaskManagerService.startActivityAndWait
(ActivityTaskManagerService.java:1281)
at com.android.server.am.ActivityManagerService.startActivityAndWait(Act
ivityManagerService.java:3581)
at com.android.server.am.ActivityManagerShellCommand.runStartActivity(Ac
tivityManagerShellCommand.java:515)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityM
anagerShellCommand.java:172)
at android.os.ShellCommand.exec(ShellCommand.java:111)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityM
anagerService.java:10098)
at android.os.Binder.shellCommand(Binder.java:881)
at android.os.Binder.onTransact(Binder.java:765)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:47
27)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManag
erService.java:2799)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)

activity不对;建议使用adb logcat ActivityManager:I | grep "cmp" 抓下正确的启动activity

感谢

关闭