From 3e176c8e1c64c5a0a360f6f8821340a1f165f74a Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 21 Sep 2020 09:57:46 -0300 Subject: [PATCH] Fix opt-out apps showing up as not yet backed up This bug also caused APKs of opt-out apps not getting backed up. --- .../stevesoltys/seedvault/transport/backup/PackageService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/transport/backup/PackageService.kt b/app/src/main/java/com/stevesoltys/seedvault/transport/backup/PackageService.kt index 4b66ebf0..2a7844b0 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/transport/backup/PackageService.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/transport/backup/PackageService.kt @@ -154,6 +154,6 @@ internal fun PackageInfo.isNotUpdatedSystemApp(): Boolean { internal fun PackageInfo.doesNotGetBackedUp(): Boolean { if (packageName == MAGIC_PACKAGE_MANAGER || applicationInfo == null) return true - return applicationInfo.flags and FLAG_ALLOW_BACKUP == 0 && // does not allow backup + return applicationInfo.flags and FLAG_ALLOW_BACKUP == 0 || // does not allow backup applicationInfo.flags and FLAG_STOPPED != 0 // is stopped }