Skip to content
Commit 179d3d8d authored by Felipe Leme's avatar Felipe Leme
Browse files

Changes how `am start-user` starts a profile.

When the user is a profile, it will call IActivityManager's
.startProfileWithListener(), unless called with --force-invisible
(in which case it will call startUserInBackgroundWithListener())

Also improved logging on ActivityManagerShellCommand.

Test: adb shell am start-user --force-invisible 10
Test: atest android.server.wm.StartActivityAsUserTests#startActivityAsValidUserWithOptions
Fixes: 266094415

Change-Id: If2aff41fd165da77ea4de753da76a47a3d02da71
parent c7431630
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment