summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-01-26 04:53:29 +0000
committer Eric Biggers <ebiggers@google.com> 2022-03-14 23:03:44 +0000
commitbd03d7606d1feebca9498d4e807c5af043cf8f58 (patch)
tree05fd32693fb21c7249820878ee7488626130aa8d /libs/androidfw/StringPool.cpp
parentdc2f8bfaeea8355a17d98483b97e0104c4e0d1eb (diff)
Remove checks for FDE in 'adb backup'
The deviceIsEncrypted() methods in BackupRestoreConfirmation.java and UserBackupManagerService.java only return true if the device is using FDE (Full Disk Encryption), for which support has been removed in favor of FBE (File Based Encryption). Therefore, the logic to require a backup password no longer applies to any device. Remove this logic to simplify the code. It is possible that this was actually a bug, and this logic should have applied to FBE devices too. But given that the code has worked this way for years, and there isn't necessarily a logical connection between whether the device is encrypted and whether a backup *must* be encrypted, I decided not to change the current behavior. Bug: 208476087 Test: 'adb backup' and 'adb restore' still work. Change-Id: Idc72d2a4c3e8bfa10a32cdc57884159b37635e81 (cherry picked from commit d5b040ed643948dd892f4ad8e2d0f3cfa8d4613d) Merged-In: Idc72d2a4c3e8bfa10a32cdc57884159b37635e81
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions