Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to launch app via ADB i get "java.lang.SecurityException: Permission Denial: starting Intent" Exception

Tags:

adb

appium

While i try to launch app via adb i am getting below exception

java.lang.SecurityException: Permission Denial: starting Intent

CMD used : adb shell am start -n pakage/mainactivity name

like image 269
dolittle Avatar asked Oct 23 '25 05:10

dolittle


1 Answers

Make sure that the activity you are launching has the right intent action and category. For example:

<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />

Check the android docs for more info:
https://developer.android.com/guide/topics/manifest/manifest-intro
https://developer.android.com/reference/android/content/Intent

There's also this very similar question with more details on android manifests:
Android - java.lang.SecurityException: Permission Denial: starting Intent

like image 152
Nico Avatar answered Oct 25 '25 15:10

Nico



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!