Failure resolution: start Job from null (pid = 30992, uid = 2000), not exported from uid 10142

When I run the apk file (AllSeenValidation14.12.00b.02.apk) in the adb shell, I get 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 do not have the source code of the apk file (AllSeenValidation14.12.00b.02.apk)

+4
source share
1 answer

Notification here android:exported="true", it allowed access activity outside the sample application of another application. Or you can put the Intent Filter in the same activity as for accessing

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

This allows you to open

 <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 does not have android: exported = true or target-filter, so you get a "Permission Denial: start intent exception

, , , .

0

All Articles