doze: Add an exported flag in manifest

Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present

Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
This commit is contained in:
Micheal
2021-10-17 17:01:03 +02:00
committed by LuK1337
parent 760aded5b9
commit 3f5b2402b6

View File

@@ -30,7 +30,8 @@
android:label="@string/device_settings_app_name"
android:persistent="true">
<receiver android:name=".BootCompletedReceiver">
<receiver android:name=".BootCompletedReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.DEFAULT" />
@@ -38,11 +39,13 @@
</receiver>
<service android:name=".DozeService"
android:permission="OneplusDozeService">
android:permission="OneplusDozeService"
android:exported="true">
</service>
<activity
android:name=".DozeSettingsActivity"
android:exported="false"
android:label="@string/ambient_display_title"
android:theme="@style/Theme.Main">
<intent-filter>