From 4e7a65f15c80c2601fdb24e596f4a9af4926546a Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Thu, 21 Aug 2014 15:34:25 -0400 Subject: Write device owner name to XML So that it can be remembered. Bug: 17153003 Change-Id: I6fb96334f235348bc237cc52e09c2fe5ef1332b7 --- .../devicepolicy/java/com/android/server/devicepolicy/DeviceOwner.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/devicepolicy') diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DeviceOwner.java b/services/devicepolicy/java/com/android/server/devicepolicy/DeviceOwner.java index 4b60c9f..5938819 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DeviceOwner.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DeviceOwner.java @@ -267,6 +267,9 @@ public class DeviceOwner { if (mDeviceOwner != null) { out.startTag(null, TAG_DEVICE_OWNER); out.attribute(null, ATTR_PACKAGE, mDeviceOwner.packageName); + if (mDeviceOwner.name != null) { + out.attribute(null, ATTR_NAME, mDeviceOwner.name); + } out.endTag(null, TAG_DEVICE_OWNER); } -- cgit v1.1