add dataSync fgs type for backup import/export
This commit is contained in:
parent
c636401232
commit
10c47d86e9
|
@ -54,6 +54,9 @@
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
||||||
|
|
||||||
|
<!-- this foreground service type permission is exclusively used for import and export backup -->
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||||
|
|
||||||
<uses-feature
|
<uses-feature
|
||||||
android:name="android.hardware.camera"
|
android:name="android.hardware.camera"
|
||||||
android:required="false" />
|
android:required="false" />
|
||||||
|
@ -116,7 +119,25 @@
|
||||||
tools:ignore="ForegroundServicePermission">
|
tools:ignore="ForegroundServicePermission">
|
||||||
<property
|
<property
|
||||||
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
||||||
android:value="im" />
|
android:value="xmpp-im" />
|
||||||
|
</service>
|
||||||
|
|
||||||
|
<service
|
||||||
|
android:name=".services.ExportBackupService"
|
||||||
|
android:exported="false"
|
||||||
|
android:foregroundServiceType="dataSync" />
|
||||||
|
|
||||||
|
<service
|
||||||
|
android:name=".services.ImportBackupService"
|
||||||
|
android:exported="false"
|
||||||
|
android:foregroundServiceType="dataSync" />
|
||||||
|
<service
|
||||||
|
android:name=".services.ContactChooserTargetService"
|
||||||
|
android:exported="true"
|
||||||
|
android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.service.chooser.ChooserTargetService" />
|
||||||
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
|
@ -331,19 +352,6 @@
|
||||||
android:name=".ui.MediaBrowserActivity"
|
android:name=".ui.MediaBrowserActivity"
|
||||||
android:label="@string/media_browser" />
|
android:label="@string/media_browser" />
|
||||||
|
|
||||||
<service android:name=".services.ExportBackupService" />
|
|
||||||
<service
|
|
||||||
android:name=".services.ImportBackupService"
|
|
||||||
android:exported="false" />
|
|
||||||
<service
|
|
||||||
android:name=".services.ContactChooserTargetService"
|
|
||||||
android:exported="true"
|
|
||||||
android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.service.chooser.ChooserTargetService" />
|
|
||||||
</intent-filter>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
android:authorities="${applicationId}.files"
|
android:authorities="${applicationId}.files"
|
||||||
|
|
Loading…
Reference in a new issue