From fcdacf22a77e40c07af9e091fb658629d79e543e Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Sun, 8 Oct 2023 00:20:26 +0530 Subject: [PATCH] 14: Add new permission FOREGROUND_SERVICE_DATA_SYNC * Android.bp build means we get set to targetSdk 34 already Fixes: Starting FGS with type dataSync targetSDK=34 requires permissions See: https://developer.android.com/about/versions/14/changes/fgs-types-required#data-sync Change-Id: I69932d778e870535522e08dff131f1bb1d128955 --- README.md | 1 + app/src/main/AndroidManifest.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 05ed0c19..e6fa5f96 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ It uses the same internal APIs as `adb backup` which is deprecated and thus need * `android.permission.MANAGE_EXTERNAL_STORAGE` to backup and restore files from device storage. * `android.permission.ACCESS_MEDIA_LOCATION` to backup original media files e.g. without stripped EXIF metadata. * `android.permission.FOREGROUND_SERVICE` to do periodic storage backups without interruption. +* `android.permission.FOREGROUND_SERVICE_DATA_SYNC` to do periodic storage backups without interruption. * `android.permission.MANAGE_DOCUMENTS` to retrieve the available storage roots (optional) for better UX. * `android.permission.USE_BIOMETRIC` to authenticate saving a new recovery code * `android.permission.INTERACT_ACROSS_USERS_FULL` to use storage roots in other users (optional). diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 58bd3c00..57c91c08 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -64,6 +64,9 @@ android:name="android.permission.READ_LOGS" tools:ignore="ProtectedPermissions" /> + + +