| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a flat format, rather than a directory structure, to store files
for non-primary users. Shared preferences does not explicitly support
directories. The code was relying on a soon to be removed API, as well
as it being unsupported by the backup helper.
Files will remain stored under "shared_prefs" and "files", but the
format will be __USER_{id}_{fileName}
Test: atest UserFileManagerImplTest AuxiliaryPersistenceWrapperTest
DeletionJobServiceTest
Test: manual run Backup and Restore from Settings
Fixes: 261168533
Fixes: 266918967
Change-Id: Ib9804a2ec46fc2f5d53995c50adc36ff712fc1c1
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds support for backup & restore of the currently-selected quick
affordances on the lock screen.
Only supports user 0 for now. A future CL will add support for additional users since the feature is broken for multi-user anyway (see b/260251307).
Fix: 258278136
Test: added test case. Manually verified, using the instructions from
go/localtransport that selecting some affordances, then triggering a
backup, then changing the selections and triggering a restore properly
restores the initial set of selections.
Change-Id: I9f2a51287a7467af95e7824f2b1804baba962099
|
| |
|
|
|
|
|
|
|
| |
Context is no longer passed in as a constructor arg.
Bug: 229228871
Test: manual
Change-Id: I3dd5e593f209d120eb36faf33ba629a2066ad3f5
Merged-In: I3dd5e593f209d120eb36faf33ba629a2066ad3f5
|
| |
|
|
|
|
|
|
|
| |
Ensure that parent file exists for files being pulled from
UserFileManager.
Bug: 227776912
Test: Added a unit test, and tested on device
Change-Id: Idb5d3bd61b5d82c5526c22c82957a4d3a8b30f1a
|
|
|
Adds a class that handles files access for multiple users. Will work on
integration in follow-up CL.
Test: Add unit tests.
Change-Id: Ia0af0d18970a8376edcccbe0f59e3d21e55c4f42
|