From 2c4d44c5b9b351bb3db0cf0f4122fc771f270541 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 19 Sep 2019 15:21:48 -0300 Subject: [PATCH] Grant MANAGE_USB permission, so we can get USB serial numbers This is needed to reliably identify USB mass storage devices. If someone has several identical thumb drives, this prevents a backup from being performed when non-backup drives get attached. --- app/src/main/AndroidManifest.xml | 5 +++++ .../main/java/com/stevesoltys/backup/UsbIntentReceiver.kt | 2 +- .../java/com/stevesoltys/backup/settings/SettingsManager.kt | 2 +- permissions_com.stevesoltys.backup.xml | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5bb46f4e..fdded5ea 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -14,6 +14,11 @@ android:name="android.permission.MANAGE_DOCUMENTS" tools:ignore="ProtectedPermissions" /> + + + + \ No newline at end of file