diff options
| author | 2023-11-01 14:40:16 -0700 | |
|---|---|---|
| committer | 2023-11-02 00:29:45 +0000 | |
| commit | 91f81d739dad67f67e6e22b15c640e5f609dc8fa (patch) | |
| tree | 0af7f79638113f9ab92b87cb3c0d1386582d8666 /libs/androidfw/FileStream.cpp | |
| parent | c46f6012c0b639d40fb8b9f45a59b177fdf880de (diff) | |
[SettingsProvider] promptly initialize tables for inserts
When DevicePolicyManager creates the work profile, it calls
SettingsProvider put methods for the new user, before SettingsProvider
receives USER_ADDED broadcast. This can cause work profile apps to
disappear in Recent apps. This CL allows SettingsProvider to promptly
set up new tables for the new user before the USER_ADDED broadcast is
received. This will still work with the new ReadWrite lock that we're
introducing to mininize lock contention in SettingsProvider.
BUG: 308397884
Test: manual with TestDPC && create a work profile
Change-Id: Ic256f00b43d605fef16707a9651b9e1255c9475e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions