commit | bc671b859a81d2eefb59a27c3a2cfd9bc4249824 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Thu Oct 28 17:03:12 2021 -0700 |
committer | Felipe Leme <felipeal@google.com> | Thu Nov 04 10:54:40 2021 -0700 |
tree | a97cc38feb21e3a1f7ec9753ca5e31fd652dacdd | |
parent | cec069482f80019c12f3c06c817d33fc5ad6151f [diff] |
Fixed DPM.logoutUser() for headless system user mode. On "traditional" devices, this method switches back to the "primary" user, which is the system user. But on devices running with headless system user mode, it should switch to the previous user instead. Test: manual verification (TestDpc/CtsVerifier) on car and phone Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser Bug: 204483021 Change-Id: I3ccbc1f31f8bcc4dae8fcb71cf5de7a7ad8882fe