diff options
author | Jason Monk <jmonk@google.com> | 2014-08-21 15:34:25 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2014-08-21 15:50:48 -0400 |
commit | 4e7a65f15c80c2601fdb24e596f4a9af4926546a (patch) | |
tree | cb6d361fa6f474d2914c431e96adc349ae0354f2 /services/devicepolicy | |
parent | c7f440dcd86ae88fc1b51e4394d66e4e80c9e53e (diff) | |
download | frameworks_base-4e7a65f15c80c2601fdb24e596f4a9af4926546a.zip frameworks_base-4e7a65f15c80c2601fdb24e596f4a9af4926546a.tar.gz frameworks_base-4e7a65f15c80c2601fdb24e596f4a9af4926546a.tar.bz2 |
Write device owner name to XML
So that it can be remembered.
Bug: 17153003
Change-Id: I6fb96334f235348bc237cc52e09c2fe5ef1332b7
Diffstat (limited to 'services/devicepolicy')
-rw-r--r-- | services/devicepolicy/java/com/android/server/devicepolicy/DeviceOwner.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |