| commit | 98ddbe50852c03556625c1f5a0c56241f978d91a | [log] [tgz] |
|---|---|---|
| author | Rubin Xu <rubinxu@google.com> | Fri Apr 28 20:51:42 2023 +0100 |
| committer | Rubin Xu <rubinxu@google.com> | Fri Apr 28 20:51:42 2023 +0100 |
| tree | d7af0eb88c2fb1ed95aad1b111c9ce193470dd2e | |
| parent | 068e0087b52358f471b390535970a46a7854ff04 [diff] |
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