AdvancedDisplay: Add exported flags in manifest
authorMichael Bestas <mkbestas@lineageos.org>
Mon, 11 Oct 2021 15:20:51 +0000 (18:20 +0300)
committerFrancescodario Cuzzocrea <bosconovic@gmail.com>
Sat, 26 Feb 2022 20:24:41 +0000 (21:24 +0100)
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present

Change-Id: I2ce2b2cd1dcd69e343ae8577587483b19d825fdc

AdvancedDisplay/AndroidManifest.xml

index f5fd7c3dee9a36680220496f326ba16bb18a3e9d..0566b4fc05f0407ca85a57095ab4c78a9f17736d 100644 (file)
@@ -8,7 +8,9 @@
     <application
         android:label="@string/app_name"
         android:theme="@style/Theme.SubSettingsBase">
-        <receiver android:name="org.lineageos.settings.device.BootCompletedReceiver">
+        <receiver
+            android:name="org.lineageos.settings.device.BootCompletedReceiver"
+            android:exported="true">
             <intent-filter>
                 <action android:name="android.intent.action.BOOT_COMPLETED" />
                 <category android:name="android.intent.category.DEFAULT" />
@@ -17,7 +19,8 @@
 
         <activity
             android:name=".AdvancedDisplayActivity"
-            android:label="@string/app_name">
+            android:label="@string/app_name"
+            android:exported="true">
             <intent-filter>
                 <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
             </intent-filter>