Fix date format of vendor patch level (#24)
This was a mistake during the refactoring of TrickyStoreOSS. After correcting it, we can obtain STRONG integrity (instead of DEVICE) with a valid keybox. The correct format can be easily found using the `Key Attestation` app.
This commit is contained in:
@@ -81,7 +81,7 @@ object AttestationBuilder {
|
||||
DERTaggedObject(
|
||||
true,
|
||||
AttestationConstants.TAG_VENDOR_PATCHLEVEL,
|
||||
ASN1Integer(AndroidDeviceUtils.vendorPatchLevel.toLong()),
|
||||
ASN1Integer(AndroidDeviceUtils.vendorPatchLevelLong.toLong()),
|
||||
)
|
||||
)
|
||||
vector.add(
|
||||
@@ -165,7 +165,7 @@ object AttestationBuilder {
|
||||
DERTaggedObject(
|
||||
true,
|
||||
AttestationConstants.TAG_VENDOR_PATCHLEVEL,
|
||||
ASN1Integer(AndroidDeviceUtils.vendorPatchLevel.toLong()),
|
||||
ASN1Integer(AndroidDeviceUtils.vendorPatchLevelLong.toLong()),
|
||||
),
|
||||
DERTaggedObject(
|
||||
true,
|
||||
|
||||
@@ -110,10 +110,10 @@ object AndroidDeviceUtils {
|
||||
getCustomPatchLevelFor("system", isLong = false)
|
||||
?: Build.VERSION.SECURITY_PATCH.toPatchLevelInt(isLong = false)
|
||||
|
||||
val vendorPatchLevel: Int
|
||||
val vendorPatchLevelLong: Int
|
||||
get() =
|
||||
getCustomPatchLevelFor("vendor", isLong = false)
|
||||
?: Build.VERSION.SECURITY_PATCH.toPatchLevelInt(isLong = false)
|
||||
getCustomPatchLevelFor("vendor", isLong = true)
|
||||
?: Build.VERSION.SECURITY_PATCH.toPatchLevelInt(isLong = true)
|
||||
|
||||
val bootPatchLevelLong: Int
|
||||
get() =
|
||||
|
||||
Reference in New Issue
Block a user