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

Skip to content
Commit 1165c2d1 authored by bkchoi's avatar bkchoi
Browse files

Fix the side effect of `adb shell dpm set-device-owner`

When there was already an active admin, the command created a fresh
active admin and replaced the existing one, which cleared some
necessary flags that were previously set in the admin.
This CL fixes the unwnated side effect by not overwriting the existing
admin.

Bug: 282239828

Test: adb shell dpm set-device-owner --user 0 <component>
      adb shell dumpsys device_policy

Change-Id: Ib424dcbcec4e3699beb5aa46079424dc9d87d275
parent 7acf0373
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