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-10 23:04:26 +0000
commit99a7078cdf789ed54e7ec6e3db8dfc25752343f0 (patch)
tree2943f9d795b3264a86643b929ae063deedf718db /libs/androidfw/StringPool.cpp
parent11b768841d9c0c7fcab5066153ca58231b86c62a (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