Unfortunately it gives the same error message if i used “BottomBarActivity”
C:\WINDOWS\system32>adb -P 5037 -s 73QDU17616006662 shell am start -W -n com.us
er.android.thoag/com.user.android.thoag.BottomBarActivity -S
Stopping: com.user.android.thoag
Starting: Intent { cmp=com.user.android.thoag/.BottomBarActivity }
java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000
cmp=com.user.android.thoag/.BottomBarActivity } from null (pid=19690, uid=2000)
not exported from uid 10143
at android.os.Parcel.readException(Parcel.java:1665)
at android.os.Parcel.readException(Parcel.java:1618)
at android.app.ActivityManagerProxy.startActivityAndWait(ActivityManager
Native.java:3204)
at com.android.commands.am.Am.runStart(Am.java:630)
at com.android.commands.am.Am.onRun(Am.java:388)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.am.Am.main(Am.java:121)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)
Same command works fine with another activity “MainActivity”
C:\WINDOWS\system32>adb -P 5037 -s 73QDU17616006662 shell am start -W -n com.use
r.android.thoag/com.user.android.thoag.MainActivity -S
Stopping: com.user.android.thoag
Starting: Intent { cmp=com.user.android.thoag/.MainActivity }
Status: ok
Activity: com.user.android.thoag/.MainActivity
ThisTime: 567
TotalTime: 567
WaitTime: 577
Complete