Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 38186761 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

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
parent 191e1c8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment