summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2022-12-07 12:42:53 +0000
committer Yasin Kilicdere <tyk@google.com> 2023-01-06 12:46:04 +0000
commite2062736eced6afdaa40b557f8c32461ae896020 (patch)
tree7188641ea3779ae57f313e6ba5e8b5b2e7e3efce /cmds/bootanimation/BootAnimation.cpp
parentc9e3c7073505d71f4b0b860865eb37f62d4acd6b (diff)
Move getUserSwitchability from UserManager to UserManagerService.
UserManager.getUserSwitchability was calling telecomManager.isInCall method to see whether there is an ongoing phone call. Since the call was made from client side, it was causing a SecurityException when switcing users via adb command and breaking CtsMultiUserHostTestCases tests. This CL moves all the logic from UserManager to UserManagerService, and calls telecomManager.isInCall() with Binder.clearCallingIdentity. Bug: 257538981 Bug: 261505371 Fixes: 260184263 Test: atest CtsMultiUserHostTestCases Merged-In: Idfca1fcb89688d08878b908ceed9c64f1e7091d3 Change-Id: Idfca1fcb89688d08878b908ceed9c64f1e7091d3 (cherry picked from commit 2f17ef912ee8cc321d54b08acb119d1ad641b756)
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions