diff options
author | Felipe Leme <felipeal@google.com> | 2021-03-12 12:46:39 -0800 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2021-03-19 18:50:35 -0700 |
commit | 07dcf25b9db2548be043a806ebad643e927cb189 (patch) | |
tree | ccd5cae3eb298b06aaf9d4c9dffb95cb3ee49ce7 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 5a34763729a1fc8ae3ca018e81e3b6d16feb1466 (diff) |
Added options to not stop previous users on switch.
On automotive (or on any device that sets
config_multiuserDelayUserDataLocking to true), the current foreground
user and its profiles are stopped when the system switches to a
different user, which causes CTS tests that switch users to fail (as
the test process dies when the user is switched).
This CL addes a new system property (fw.stop_bg_users_on_switch) that
allow tests to override this behavior. It also:
- Splits mDelayUserDataLocking logic into 2 variables (the other is
mStopBackgroundUsersOnSwitch, which is the one that can be changed)
- Adds more optional logging.
Test: adb shell setprop fw.stop_bg_users_on_switch 0 && \
adb shell dumpsys activity users | grep shouldStopBackgroundUsersOnSwitch
Test: atest android.car.apitest.CarUserManagerTest#testLifecycleListener
Bug: 180515783
Bug: 180515783
Change-Id: I02bbe7b502c94f02a94965b8ff25915b6b55ae1b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions