summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.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> 2022-12-08 13:21:46 +0000
commit2f17ef912ee8cc321d54b08acb119d1ad641b756 (patch)
tree6657075edab16f95c33895315adbb8506b6f7e4a /libs/androidfw/StringPool.cpp
parent45287079e73c73dba6ad1f6698f9b6136d1ae3f6 (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 Test: atest CtsMultiUserHostTestCases Change-Id: Idfca1fcb89688d08878b908ceed9c64f1e7091d3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions