@@ -148,7 +148,7 @@ class AttestationProtocol {
148148 // byte[] compressedChain { [short encodedCertificateLength, byte[] encodedCertificate] }
149149 // byte[] fingerprint (length: FINGERPRINT_LENGTH)
150150 // int osEnforcedFlags
151- // short autoRebootMinutes (-1 for unknown)
151+ // int autoRebootSeconds (-1 for unknown)
152152 // byte portSecurityMode (-1 for unknown)
153153 // byte userCount (-1 for unknown)
154154 // byte oemUnlockAllowed (-1 for unknown)
@@ -157,7 +157,7 @@ class AttestationProtocol {
157157 //
158158 // Protocol version changes:
159159 //
160- // 6: autoRebootMinutes added
160+ // 6: autoRebootSeconds added
161161 // 6: portSecurityMode added
162162 // 6: userCount added
163163 // 6: oemUnlockAllowed added
@@ -1234,7 +1234,7 @@ static VerificationResult verifySerialized(final Context context, final byte[] a
12341234 }
12351235
12361236 if (version >= 6 ) {
1237- final short autoRebootMinutes = deserializer .getShort ();
1237+ final int autoRebootSeconds = deserializer .getShort ();
12381238 final byte portSecurityMode = deserializer .get ();
12391239 final byte userCount = deserializer .get ();
12401240 final byte oemUnlockAllowed = deserializer .get ();
@@ -1483,8 +1483,8 @@ static AttestationResult generateSerialized(final Context context, final byte[]
14831483 serializer .putInt (osEnforcedFlags );
14841484
14851485 if (version >= 6 ) {
1486- final short autoRebootMinutes = 0 ;
1487- serializer .putShort ( autoRebootMinutes );
1486+ final int autoRebootSeconds = 0 ;
1487+ serializer .putInt ( autoRebootSeconds );
14881488
14891489 final byte portSecurityMode = 0 ;
14901490 serializer .put (portSecurityMode );
0 commit comments