commit | 1165c2d1b2d1ded57021fa2dc729895ddbd96db3 | [log] [tgz] |
---|---|---|
author | bkchoi <bkchoi@google.com> | Tue Sep 26 15:50:25 2023 -0700 |
committer | bkchoi <bkchoi@google.com> | Wed Sep 27 08:44:14 2023 -0700 |
tree | 3670d6018f2aa86481da61f7d031f839fdd7bb3a | |
parent | 7acf03736916b578f8c5dbb82602979bd1f4702f [diff] |
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