LineageParts: Add exported flags in manifest
Targeting S+ (version 31 and above) requires an explicit value
for android:exported to be defined when intent filters are present.
Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: I2ce2b2cd1dcd69e343ae8577587483b19d825fdc
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index b9fd387..a3b2e43 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -40,7 +40,8 @@
<activity
android:name=".PartsActivity"
- android:configChanges="orientation|keyboardHidden|screenSize">
+ android:configChanges="orientation|keyboardHidden|screenSize"
+ android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
@@ -65,7 +66,8 @@
<receiver
android:name=".BootReceiver"
- android:enabled="true">
+ android:enabled="true"
+ android:exported="false">
<intent-filter android:priority="2147483647">
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
@@ -73,7 +75,8 @@
<receiver
android:name=".PartsUpdater"
- android:enabled="true">
+ android:enabled="true"
+ android:exported="false">
<intent-filter>
<action android:name="lineageos.intent.action.UPDATE_PREFERENCE" />
<category android:name="android.intent.category.DEFAULT" />
@@ -95,6 +98,7 @@
<!-- Charging control settings (Battery category) -->
<activity-alias
android:name=".health.ChargingControlSettings"
+ android:exported="true"
android:label="@string/charging_control_title"
android:targetActivity="PartsActivity">
<intent-filter>
@@ -106,6 +110,7 @@
<!-- Button settings (System category) -->
<activity-alias
android:name=".input.ButtonSettings"
+ android:exported="true"
android:label="@string/button_pref_title"
android:targetActivity="PartsActivity">
<intent-filter>
@@ -139,6 +144,7 @@
<!-- Profiles settings (System category) -->
<activity-alias
android:name=".profiles.ProfilesSettings"
+ android:exported="true"
android:label="@string/profiles_settings_title"
android:targetActivity="PartsActivity">
<intent-filter>
@@ -170,6 +176,7 @@
<!-- Status bar settings (System category) -->
<activity-alias
android:name=".statusbar.StatusBarSettings"
+ android:exported="true"
android:label="@string/status_bar_title"
android:targetActivity="PartsActivity">
<intent-filter>
@@ -201,6 +208,7 @@
<!-- Trust interface (Privacy category) -->
<activity-alias
android:name=".trust.TrustPreferences"
+ android:exported="true"
android:label="@string/trust_title"
android:targetActivity="PartsActivity">
<intent-filter>
@@ -226,6 +234,7 @@
<!-- Contributors Cloud (MyDeviceInfo category) -->
<activity-alias
android:name=".contributors.ContributorsCloudFragment"
+ android:exported="true"
android:label="@string/contributors_cloud_fragment_title"
android:targetActivity="PartsActivity">
<intent-filter>
@@ -270,7 +279,9 @@
android:name=".lineagestats.StatsUploadJobService"
android:permission="android.permission.BIND_JOB_SERVICE" />
- <activity android:name=".profiles.NFCProfile">
+ <activity
+ android:name=".profiles.NFCProfile"
+ android:exported="true">
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
@@ -286,6 +297,7 @@
<activity
android:name=".logo.PlatLogoActivity"
android:configChanges="orientation|keyboardHidden"
+ android:exported="true"
android:theme="@style/EggStyle">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -295,6 +307,7 @@
<activity
android:name=".egg.octo.Ocquarium"
+ android:exported="true"
android:label="@string/egg_title"
android:theme="@style/EggStyle">
<intent-filter>