Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61920753 authored by Yao Li's avatar Yao Li
Browse files

Add ActivityManager.logoutUser() hidden API

This logoutUser switches to an appropriate user, either
headless system user or previous foreground user.
It currently does not prevent another user from logging in, before the
current user is fully stopped and credential key evicted.

Bug: 380125011
Flag: android.multiuser.logout_user_api
Test: m
Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest
Test: atest FrameworksMockingServicesTests:com.android.server.am.UserControllerMockedTest

Change-Id: I2449888e71ce667352d442b93b37b96c4f310735
parent 90a077a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment