android: Explicitly mark Activities/Services with intent-filter as exported
Required when targeting Android 12.
This commit is contained in:
@@ -38,7 +38,8 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".ui.MainActivity"
|
android:name=".ui.MainActivity"
|
||||||
android:label="@string/main_activity_name"
|
android:label="@string/main_activity_name"
|
||||||
android:launchMode="singleTop" >
|
android:launchMode="singleTop"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
@@ -52,7 +53,8 @@
|
|||||||
android:theme="@style/TransparentActivity"
|
android:theme="@style/TransparentActivity"
|
||||||
android:taskAffinity=""
|
android:taskAffinity=""
|
||||||
android:excludeFromRecents="true"
|
android:excludeFromRecents="true"
|
||||||
android:launchMode="singleTask" >
|
android:launchMode="singleTask"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="org.strongswan.android.action.START_PROFILE" />
|
<action android:name="org.strongswan.android.action.START_PROFILE" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
@@ -88,7 +90,8 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".ui.VpnProfileSelectActivity"
|
android:name=".ui.VpnProfileSelectActivity"
|
||||||
android:label="@string/strongswan_shortcut"
|
android:label="@string/strongswan_shortcut"
|
||||||
android:icon="@mipmap/ic_shortcut" >
|
android:icon="@mipmap/ic_shortcut"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.CREATE_SHORTCUT" />
|
<action android:name="android.intent.action.CREATE_SHORTCUT" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
@@ -98,7 +101,8 @@
|
|||||||
android:name=".ui.VpnProfileImportActivity"
|
android:name=".ui.VpnProfileImportActivity"
|
||||||
android:label="@string/profile_import"
|
android:label="@string/profile_import"
|
||||||
android:taskAffinity=""
|
android:taskAffinity=""
|
||||||
android:excludeFromRecents="true" >
|
android:excludeFromRecents="true"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
@@ -144,7 +148,8 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".ui.TrustedCertificateImportActivity"
|
android:name=".ui.TrustedCertificateImportActivity"
|
||||||
android:label="@string/import_certificate"
|
android:label="@string/import_certificate"
|
||||||
android:theme="@style/TransparentActivity" >
|
android:theme="@style/TransparentActivity"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter tools:ignore="AppLinkUrlError">
|
<intent-filter tools:ignore="AppLinkUrlError">
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
@@ -162,7 +167,7 @@
|
|||||||
<service
|
<service
|
||||||
android:name=".logic.CharonVpnService"
|
android:name=".logic.CharonVpnService"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:permission="android.permission.BIND_VPN_SERVICE" >
|
android:permission="android.permission.BIND_VPN_SERVICE">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.net.VpnService" />
|
<action android:name="android.net.VpnService" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@@ -171,7 +176,8 @@
|
|||||||
android:name=".ui.VpnTileService"
|
android:name=".ui.VpnTileService"
|
||||||
android:label="@string/tile_default"
|
android:label="@string/tile_default"
|
||||||
android:icon="@drawable/ic_notification"
|
android:icon="@drawable/ic_notification"
|
||||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|||||||
Reference in New Issue
Block a user