diff options
| author | 2020-10-06 13:42:41 +0800 | |
|---|---|---|
| committer | 2020-10-20 09:54:51 +0800 | |
| commit | a87b5f88b56418a4d3fc0896ba62379e3c761a29 (patch) | |
| tree | 3404335d490c360d2b95adae781d0e6f58c59dbf /libs/input/KeyLayoutMap.cpp | |
| parent | 72ec8853452563e219f16aef6687a3e63ea7a331 (diff) | |
Fixes De data is not backed up correctly when user locked (1/n)
https://android.googlesource.com/platform/frameworks/native/+/fda19ecdd6df8f43d3368781a633792723fb9965/cmds/installd/InstalldNativeService.cpp#933
When an APK is stage installed, snapshotAppData(..., FLAG_STORAGE_DE)
is called before user unlocked. The function bails out early at #937
because the folder is still encrypted.
We should move the if block at #958 above so we can back up De data
correctly even when Ce directories not ready.
Note we have to check if the De folder exists before making a copy.
(Cherry-picked from 1d643c77d3fcb7dfe0bf4dabed2964bbfca04c6f)
Bug: 169594054
Test: atest StagedRollbackTest
Merged-In: I2ca810bd9495de3bed58378a41b47863c6e8f8dd
Change-Id: I2ca810bd9495de3bed58378a41b47863c6e8f8dd
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions