While running a apk file (AllSeenValidation14.12.00b.02.apk) in adb shell, I am getting this eror message:
Command to run : adb shell am start org.alljoyn.validation.validation_tests.validation_tests_it/org.alljoyn.validation.testing.instrument.ValidationInstrumentationTestActivity
Error:
"Permission Denial: starting Intent { flg=0x10000000 > cmp=org.alljoyn.validation.validation_tests.validation_tests_it/org.alljoyn.validation.testing.instrument.ValidationInstrumentationTestActivity } from null (pid=30992, uid=2000) not exported from uid 10142 " error.
Note: I don't have the source code of apk file (AllSeenValidation14.12.00b.02.apk)
Here Notice android:exported="true"
this allowed activity to access outside of application example other app Or you can put Intent Filter in same activity that need to access
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
This allow to open the
<activity
android:name=".activity.LoginActivity"
android:hardwareAccelerated="false"
android:exported="true"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
In your example ValidationInstrumentationTestActivity Activity doesn't have android:exported=true or intent-filter thats why you get "Permission Denial: starting Intent exception
I know this is not the answer but it help you to get what you want
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With