Skip to content
Commit 98ddbe50 authored by Rubin Xu's avatar Rubin Xu
Browse files

Always clear password reset token when removing device owner

Move the token removal logic inside clearDeviceOwnerLocked so
it's executed by all paths where DO is removed. This also fixes
a bug where mLockPatternUtils.removeEscrowToken is throwing
exception due to it's not inside a clear binder identity block.

Bug: 280093211
Test: DeviceOwnerTest#clearDeviceOwnerApp_escrowTokenExists_success
Change-Id: Ifaa1ffbd0f29b62fd05a9d746c26b44c52f4eaa0
parent 068e0087
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment