diff options
| author | 2020-12-11 14:59:16 -0800 | |
|---|---|---|
| committer | 2021-01-29 22:15:31 +0000 | |
| commit | 1c0e5ce8cffeb320c8048d4459015bf0ea5a5e88 (patch) | |
| tree | b195345b5f5f634e70203a4c254003e2427f4888 /libs/androidfw/AssetsProvider.cpp | |
| parent | 34b2197e34a8f6f12cd4c44230c71de91357bd14 (diff) | |
Change setPrimaryStorageUuid to handle it for the current user
- It used hard coded user 0 and that breaks it for
  secondary users. Current user should be enough if this move is
  triggered from settings which is run from the current user.
- For device with no user switching from user 0, this should
  not make any differences.
- This change also fixes failure of CTS
  android.appsecurity.cts.AdoptableHostTest#testPrimaryStorage.
- In longer term, we need separate setPrimaryStorageUuidAsUser API
  to control it per each user.
Bug: 174593750
Test: atest android.appsecurity.cts.AdoptableHostTest#testPrimaryStorage
Change-Id: I87c821903987d22e8d26ade92120b99a33897168
Merged-In: I87c821903987d22e8d26ade92120b99a33897168
(cherry picked from commit 9aa55f0168864186180e9090197889bee70fbb60)
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions