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

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

Minor refactoring in DPMS.

* extracted enforceSystemCaller

* only allow system callers to call reportPasswordChanged. Currently
  access is limited to callers posessing BIND_DEVICE_ADMIN and having
  cross-user permission when calling for different user. Since this is
  a hidden API and is only called from LockSettingsService, narrow
  callers down to system only.

Bug: none
Test: atest --generate-new-metrics 10 com.android.cts.devicepolicy.ManagedProfileTest#testResetPasswordWithTokenBeforeUnlock com.android.cts.devicepolicy.ManagedProfileTest#testClearPasswordWithTokenBeforeUnlock
Change-Id: Iab4ff1e4827a6217eedc5fade5641845ad72e8f0
parent 0a0be77a
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