Warning: Exported activity does not require permission

后端 未结 3 988
再見小時候
再見小時候 2020-12-14 00:17

I recently created a project and added a splash and a main activity. I edited the manifest file and added the splash activity and the main activity in to it. After adding th

相关标签:
3条回答
  • 2020-12-14 00:17

    add this to your activity definition

    android:exported="false"
    
    0 讨论(0)
  • 2020-12-14 00:40

    It could be due to the <action android:name="com.sliit.droidman.main.MAINACTIVITY" />. I don't know why you add that intent filter?

    You normally don't need an intent-filter for other normal activities.

    0 讨论(0)
  • 2020-12-14 00:41

    This warning means that your activities are exposed to different-process apps that might instantiate them without any required permission.

    for details see: http://developer.android.com/guide/topics/manifest/activity-element.html http://developer.android.com/guide/topics/manifest/activity-element.html#prmsn

    0 讨论(0)
提交回复
热议问题