Solve SecurityException: Permission Denial: starting Intent. What permission do I need?

On that device, that Intent is getting modified to add a specific component (com.alibaba.intl.android.apps.poseidon/com.alibaba.android.intl.weex.activity.WeexPageActivity). I do not know if that is from the system chooser or something else. And, the activity that it resolves to is not exported.

So, mostly, this is a bug in that device.

However, since the activity is not exported, there is nothing you can do to start that specific activity.


You need to set android:exported="true" in your AndroidManifest.xml file

<activity
    android:name="com.anurag.example.MainActivity"
    android:label="Demo" 
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" >
        </action>
    </intent-filter>
</activity>