MotoActions: Add an exported flag in manifest
authorMichael Bestas <mkbestas@lineageos.org>
Sat, 29 Jan 2022 17:27:21 +0000 (18:27 +0100)
committerSevenrock <sevenrock@hotmail.de>
Sat, 29 Jan 2022 17:30:15 +0000 (18:30 +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

MotoActions/AndroidManifest.xml

index 9dc63b4d6956f2cc11fce526e3a5941c28f6ef49..6287e6a63de5f2c3fcc3ed8345adeb9ff2eef243 100644 (file)
         android:label="@string/device_settings_app_name"
         android:persistent="true">
 
-        <receiver android:name="org.lineageos.settings.device.BootCompletedReceiver">
+        <receiver
+            android:name="org.lineageos.settings.device.BootCompletedReceiver"
+            android:exported="false">
             <intent-filter>
                 <action android:name="android.intent.action.BOOT_COMPLETED" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
         </receiver>
 
-        <service android:name="ServiceWrapper" android:permission="ServiceWrapper">
+        <service
+            android:name="ServiceWrapper"
+            android:permission="ServiceWrapper"
+            android:exported="false">
             <intent-filter>
                 <action android:name="ServiceWrapper"/>
             </intent-filter>
@@ -33,6 +38,7 @@
 
         <activity
             android:name=".DozePreferenceActivity"
+            android:exported="false"
             android:label="@string/ambient_display_gestures_title"
             android:theme="@style/MotoActions">
             <intent-filter>
@@ -48,6 +54,7 @@
 
         <activity
             android:name=".ActionsPreferenceActivity"
+            android:exported="false"
             android:label="@string/moto_gestures_panel_title"
             android:theme="@style/MotoActions">
             <intent-filter>