commit | ec5aa8f126cfc10219a875f81c094ce0b5fc0af1 | [log] [tgz] |
---|---|---|
author | Yasin Kilicdere <tyk@google.com> | Thu Dec 08 16:35:12 2022 +0000 |
committer | Yasin Kilicdere <tyk@google.com> | Thu Dec 08 16:51:36 2022 +0000 |
tree | c50fbf74d1553c989a5258e45ba5eaa1d53705b1 | |
parent | 45287079e73c73dba6ad1f6698f9b6136d1ae3f6 [diff] |
ActivityManagerShellCommand calls getUserSwitchability with wrong user UserManager.getUserSwitchability API is always called with userId 0 from ActivityManagerShellCommand. This CL fixes that issue by passing the userId parameter came from the command line to the API. Bug: 261857907 Test: adb shell am switch-user -w 10 Change-Id: I3d6fa18f63f4b6e01acbf197cfcb5cedb614925c