summaryrefslogtreecommitdiff
path: root/libs/hwui/DeferredLayerUpdater.cpp
diff options
context:
space:
mode:
author Pavel Grafov <pgrafov@google.com> 2024-09-27 18:11:50 +0100
committer Pavel Grafov <pgrafov@google.com> 2024-10-04 13:15:46 +0100
commit38186761f903b9d4f8a0a84a574271994541735c (patch)
tree61e01f74b17ef3f5ca9239ce03a8557bd7190530 /libs/hwui/DeferredLayerUpdater.cpp
parent191e1c8ab300fb81f403f50864ea6112d2d47aa4 (diff)
Remove redundant caller check.
Result of this call is not used. And there is no reason to call it for side effects either: this check can only be performed when factoryRestet is not null, and this only happens when invoking from wipeDataWithReason, which already has identical call, so any permission checks are already performed. Without that check the code no longer needs valid calling identity, so the method can again work as a single binderWithCleanCallingIdentity block. Also changed system user precondition check from authorization to state assertion for attempts to remove the system user to make it match the javadoc. Fixes: 286212112 Change-Id: I3c604d27e0ab0d2f795feda44716c067c5816865 Test: btest a.d.c.WipeDataTest Flag: EXEMPT bugfix
Diffstat (limited to 'libs/hwui/DeferredLayerUpdater.cpp')
0 files changed, 0 insertions, 0 deletions