权限拒绝:从null(pid = 30992,uid = 2000)启动Intent不从uid 10142导出

时间:2015-05-02 10:37:07

标签: android apk adb alljoyn

在adb shell中运行apk文件(AllSeenValidation14.12.00b.02.apk)时,我收到此消息:

Command to run : adb shell am start org.alljoyn.validation.validation_tests.validation_tests_it/org.alljoyn.validation.testing.instrument.ValidationInstrumentationTestActivity

错误:

"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.

注意:我没有apk文件的源代码(AllSeenValidation14.12.00b.02.apk)

1 个答案:

答案 0 :(得分:0)

这里注意conn.Open(); string delRec = "DELETE FROM myTable WHERE myDateTimeColumn < '" + DateTime.Now.Day + "'"; ExecQuery(delRec); conn.Close();这允许活动在应用程序示例之外访问其他应用程序或者您可以将Intent Filter放在需要访问的同一活动中

android:exported="true"

这允许打开

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

在您的示例中ValidationInstrumentationTestActivity Activity没有android:exported = true或intent-filter这就是为什么你会得到&#34; Permission Denial:启动Intent异常

我知道这不是答案,但它可以帮助你得到你想要的东西