commit | 4e7a65f15c80c2601fdb24e596f4a9af4926546a | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Thu Aug 21 15:34:25 2014 -0400 |
committer | Jason Monk <jmonk@google.com> | Thu Aug 21 15:50:48 2014 -0400 |
tree | cb6d361fa6f474d2914c431e96adc349ae0354f2 | |
parent | c7f440dcd86ae88fc1b51e4394d66e4e80c9e53e [diff] |
Write device owner name to XML So that it can be remembered. Bug: 17153003 Change-Id: I6fb96334f235348bc237cc52e09c2fe5ef1332b7
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 @@ 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); }