Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission Denial: starting Intent from null (pid=30992, uid=2000) not exported from uid 10142

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)

like image 870
Naresh Reddy Avatar asked May 02 '15 10:05

Naresh Reddy


1 Answers

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

like image 113
sushant gosavi Avatar answered Oct 02 '22 15:10

sushant gosavi