diff options
| author | 2022-01-17 23:39:21 +0000 | |
|---|---|---|
| committer | 2022-04-06 15:00:31 +0000 | |
| commit | 5dd86bcb8aa369405648f53377bba4227fd3a06c (patch) | |
| tree | 4a627469c84db56d94c9fd7c2e2aedddf8a4a6c4 /api/api.go | |
| parent | 6fc0f7ba6559aaf486352cb3b4dafe20b9e3d47e (diff) | |
Skip restore of read-only directories
Currently trying to restore a read-only directory results in only the
directory being restored but not its contents. This causes problems for
some apps (see the associated bug). Skip restore of read-only directories
while we evaluate the priority of proper suport for this use case.
Bug: 194894879
Test: Manual:
1. Populate a read-only directory in an app's folder
(/data/user/0/<package-name>)
2. Run backup for the app
3. Clear app data (adb shell pm clear <package-name>
4. Run restore for the app
5. Inspect app folder to ensure all writable content is
restored.
Merged-In: I644a5784fb42352ba28ac944d3aa3564b0215a78
Change-Id: I644a5784fb42352ba28ac944d3aa3564b0215a78
(cherry picked from commit 62c0cec8eb75c1ca24330f49e76725fdfd587e8b)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions