Fix opt-out apps showing up as not yet backed up
This bug also caused APKs of opt-out apps not getting backed up.
This commit is contained in:
parent
9f2b56e4ce
commit
3e176c8e1c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue