forked from mirror/monocles_chat
explicitly declare foreground service type (part 2)
This commit is contained in:
parent
999617232b
commit
edd1599209
1 changed files with 15 additions and 5 deletions
|
@ -36,6 +36,16 @@
|
|||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<!-- New permissions required to run as foreground service on Android 14.
|
||||
SYSTEM_EXEMPTED is used when the app is on the doze allow list. This is normal
|
||||
and the expected default behaviour. The other two hijack RECORD_AUDIO and CAMERA if they
|
||||
happen to be granted. -->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
||||
|
||||
<uses-feature
|
||||
android:name="android.hardware.camera"
|
||||
android:required="false" />
|
||||
|
@ -108,12 +118,13 @@
|
|||
android:name="androidx.multidex.MultiDexApplication"
|
||||
android:allowBackup="true"
|
||||
android:appCategory="social"
|
||||
android:fullBackupContent="@xml/backup_content"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_content"
|
||||
android:hardwareAccelerated="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:largeHeap="true"
|
||||
android:localeConfig="@xml/locales_config"
|
||||
android:networkSecurityConfig="@xml/network_security_configuration"
|
||||
android:preserveLegacyExternalStorage="true"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
|
@ -121,7 +132,6 @@
|
|||
android:theme="@style/ConversationsTheme"
|
||||
tools:ignore="GoogleAppIndexingWarning"
|
||||
tools:replace="android:label, android:allowBackup"
|
||||
android:localeConfig="@xml/locales_config"
|
||||
tools:targetApi="tiramisu">
|
||||
|
||||
<service android:name="de.monocles.chat.DownloadDefaultStickers" />
|
||||
|
@ -155,7 +165,9 @@
|
|||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
|
||||
<action
|
||||
android:name="android.net.conn.CONNECTIVITY_CHANGE"
|
||||
tools:ignore="BatteryLife" />
|
||||
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
|
||||
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
||||
<action android:name="android.media.RINGER_MODE_CHANGED" />
|
||||
|
@ -221,7 +233,6 @@
|
|||
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||
<activity
|
||||
android:name=".ui.UriHandlerActivity"
|
||||
android:label="@string/app_name"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
@ -373,7 +384,6 @@
|
|||
android:windowSoftInputMode="stateHidden" />
|
||||
<activity
|
||||
android:name=".ui.ShareWithActivity"
|
||||
android:label="@string/app_name"
|
||||
android:launchMode="singleTop"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
|
|
Loading…
Add table
Reference in a new issue