commit | 72ca16116cbfb007ac1f8129eb29d8e341c15bad | [log] [tgz] |
---|---|---|
author | Pavel Grafov <pgrafov@google.com> | Tue Apr 16 18:28:16 2024 +0100 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 13 05:20:17 2024 +0000 |
tree | e1f15a5f05f20814c8d8e9e0010a0e01ebde3d6a | |
parent | 9dfb66731b96097bb35e8d45fb8e031376bd5746 [diff] |
Ensure device_owners2.xml is always written. Bug: 335232744 Test: Manual, upgrading from T-QPR3 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3abc07421d5bed187589d6deb48da07e4c407203) Merged-In: I7a7dba56f2951e7e3699b19d2517d198dc8f9d35 Change-Id: I7a7dba56f2951e7e3699b19d2517d198dc8f9d35
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/OwnersData.java b/services/devicepolicy/java/com/android/server/devicepolicy/OwnersData.java index 42ac998..ad50116 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/OwnersData.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/OwnersData.java
@@ -357,8 +357,7 @@ @Override boolean shouldWrite() { - return (mDeviceOwner != null) || (mSystemUpdatePolicy != null) - || (mSystemUpdateInfo != null); + return true; } @Override