summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2020-09-22 14:13:34 -0700
committerFelipe Leme <felipeal@google.com>2020-09-25 14:20:37 -0700
commitbec27eafa4a8717f5ad8b454689a35c2cac2d358 (patch)
treeeaa32d3398fb37a929e64a4291ff6c8aa07917d7 /rs/java/android/renderscript/ProgramStore.java
parent3709d3ef005a1e2032de0c9df442d0326d31bffd (diff)
Fixed SSM.switchUser() so it doesn't crash the system.
SystemServiceManager (SSM) keeps a cache of the TargetUsers it uses on user lifecycle events, and this cache is only valid from user start to user stopped. But on user switch, the callback also needs the TargetUser for the previous user, so if that user is removed, currently it would crash. Fixes: 169027200 Test: adb shell pm create-user ZedsDeadBaby && \ adb shell am switch-user 10 && sleep 10s && \ adb shell am switch-user 0 && adb shell pm remove-user 10 Change-Id: Ia5a3ac88040a89a9af5f99502846bb05b7ce680b
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions