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

Commit 32c82e4e authored by Rubin Xu's avatar Rubin Xu
Browse files

Fix OTA info persistence logic

Code to persist OTA info was accidentally removed by a previous CL.
Add it back.

Bug: 73505100
Test: gts-tradefed run gts-dev --module GtsGmscoreHostTestCases --test com.google.android.gts.devicepolicy.DeviceOwnerTest#testPendingSystemUpdate
Change-Id: I9eba522641fd8f95cd6af32431498c2c8ac5ff0e
parent 3ff20e22
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -723,6 +723,11 @@ class Owners {
                mSystemUpdatePolicy.saveToXml(out);
                out.endTag(null, TAG_SYSTEM_UPDATE_POLICY);
            }

            if (mSystemUpdateInfo != null) {
                mSystemUpdateInfo.writeToXml(out, TAG_PENDING_OTA_INFO);
            }

            if (mSystemUpdateFreezeStart != null || mSystemUpdateFreezeEnd != null) {
                out.startTag(null, TAG_FREEZE_PERIOD_RECORD);
                if (mSystemUpdateFreezeStart != null) {