summaryrefslogtreecommitdiff
path: root/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java')
-rw-r--r--hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java b/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java
index 2ed2c1a44c2..a45fa0a4b9f 100644
--- a/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java
+++ b/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/EnrollmentSpecificIdTest.java
@@ -126,7 +126,8 @@ public class EnrollmentSpecificIdTest extends BaseDeviceAdminTest {
if (hardwareIdentifier == null) {
hardwareIdentifier = "";
}
- return String.format("%16s", hardwareIdentifier);
+ String hwIdentifier = String.format("%16s", hardwareIdentifier);
+ return hwIdentifier.substring(0, 16);
}
private static String getPaddedProfileOwnerName(String profileOwnerPackage) {