I have a non-exported activity in my project.
If I try to launch it on my phone using adb
:
adb shell am start -n "packagename/activityname"
I get the error:
java.lang.SecurityException:
Permission Denial: starting Intent { ... } from null (...) not exported from uid ...
But, if I run the same command on an emulator, then everything works Okay. How comes?