diff options
author | 2022-01-17 23:39:21 +0000 | |
---|---|---|
committer | 2022-02-25 01:14:17 +0000 | |
commit | 62c0cec8eb75c1ca24330f49e76725fdfd587e8b (patch) | |
tree | 8da6a36e221b5342566459ae777129efe54c8e25 /tools/aapt2/ResourceParser.cpp | |
parent | 77d467429e953f977e3fa85584653f7983bd3c18 (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.
Change-Id: I644a5784fb42352ba28ac944d3aa3564b0215a78
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
0 files changed, 0 insertions, 0 deletions