summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author bkchoi <bkchoi@google.com> 2023-09-26 15:50:25 -0700
committer bkchoi <bkchoi@google.com> 2023-09-27 08:44:14 -0700
commit1165c2d1b2d1ded57021fa2dc729895ddbd96db3 (patch)
tree3670d6018f2aa86481da61f7d031f839fdd7bb3a /libs/androidfw/misc.cpp
parent7acf03736916b578f8c5dbb82602979bd1f4702f (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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions