From bc48eef3d8ee6da20a0a754717aaab93593f55cd Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 29 Aug 2024 17:03:17 -0400 Subject: [PATCH] add Pixel 9 Pro Fold support --- .../app/attestation/auditor/AttestationActivity.java | 1 + .../app/attestation/auditor/AttestationProtocol.java | 9 +++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 11 insertions(+) diff --git a/app/src/main/java/app/attestation/auditor/AttestationActivity.java b/app/src/main/java/app/attestation/auditor/AttestationActivity.java index 3556d9eb..01cfab6c 100644 --- a/app/src/main/java/app/attestation/auditor/AttestationActivity.java +++ b/app/src/main/java/app/attestation/auditor/AttestationActivity.java @@ -171,6 +171,7 @@ private enum Stage { "Pixel 9", "Pixel 9 Pro", "Pixel 9 Pro XL", + "Pixel 9 Pro Fold", "SM-G970F", "SM-G975F", "SM-N970F", diff --git a/app/src/main/java/app/attestation/auditor/AttestationProtocol.java b/app/src/main/java/app/attestation/auditor/AttestationProtocol.java index 6d9bfe69..e9b3bd28 100644 --- a/app/src/main/java/app/attestation/auditor/AttestationProtocol.java +++ b/app/src/main/java/app/attestation/auditor/AttestationProtocol.java @@ -288,6 +288,7 @@ private static class DeviceInfo { "Pixel 9", "Pixel 9 Pro", "Pixel 9 Pro XL", + "Pixel 9 Pro Fold", "SM-N970U", "SM-N975U").contains(Build.MODEL); @@ -355,6 +356,8 @@ private static class DeviceInfo { new DeviceInfo(R.string.device_pixel_9_pro, 300, 300, false, true, R.string.os_graphene)) .put("55D3C2323DB91BB91F20D38D015E85112D038F6B6B5738FE352C1A80DBA57023", new DeviceInfo(R.string.device_pixel_9_pro_xl, 300, 300, false, true, R.string.os_graphene)) + .put("AF4D2C6E62BE0FEC54F0271B9776FF061DD8392D9F51CF6AB1551D346679E24C", + new DeviceInfo(R.string.device_pixel_9_pro_fold, 300, 300, false, true, R.string.os_graphene)) .build(); private static final ImmutableMap fingerprintsStock = ImmutableMap .builder() @@ -400,6 +403,8 @@ private static class DeviceInfo { new DeviceInfo(R.string.device_pixel_9_pro, 300, 300, false, true, R.string.os_stock)) .put("D05975CFD778082E3D1623C91419F6D8634E579A786592118CCEA057537579B7", new DeviceInfo(R.string.device_pixel_9_pro_xl, 300, 300, false, true, R.string.os_stock)) + .put("800E9093D29614F5BC3FC76A0E819BA0A5C0C94A7D6A17C53E7D017D346B7172", + new DeviceInfo(R.string.device_pixel_9_pro_fold, 300, 300, false, true, R.string.os_stock)) .put("9D77474FA4FEA6F0B28636222FBCEE2BB1E6FF9856C736C85B8EA6E3467F2BBA", new DeviceInfo(R.string.device_sm_g970f, 3, 4, false, false, R.string.os_stock)) .put("08B2B5C6EC8F54C00C505756E1EF516BB4537B2F02D640410D287A43FCF92E3F", @@ -463,6 +468,8 @@ private static class DeviceInfo { new DeviceInfo(R.string.device_pixel_9_pro, 300, 300, false, true, R.string.os_graphene)) .put("55D3C2323DB91BB91F20D38D015E85112D038F6B6B5738FE352C1A80DBA57023", new DeviceInfo(R.string.device_pixel_9_pro_xl, 300, 300, false, true, R.string.os_graphene)) + .put("AF4D2C6E62BE0FEC54F0271B9776FF061DD8392D9F51CF6AB1551D346679E24C", + new DeviceInfo(R.string.device_pixel_9_pro_fold, 300, 300, false, true, R.string.os_graphene)) .build(); private static final ImmutableMap fingerprintsStrongBoxStock = ImmutableMap .builder() @@ -506,6 +513,8 @@ private static class DeviceInfo { new DeviceInfo(R.string.device_pixel_9_pro, 300, 300, false, true, R.string.os_stock)) .put("D05975CFD778082E3D1623C91419F6D8634E579A786592118CCEA057537579B7", new DeviceInfo(R.string.device_pixel_9_pro_xl, 300, 300, false, true, R.string.os_stock)) + .put("800E9093D29614F5BC3FC76A0E819BA0A5C0C94A7D6A17C53E7D017D346B7172", + new DeviceInfo(R.string.device_pixel_9_pro_fold, 300, 300, false, true, R.string.os_stock)) .put("3D3DEB132A89551D0A700D230BABAE4E3E80E3C7926ACDD7BAEDF9B57AD316D0", new DeviceInfo(R.string.device_sm_n970u, 3, 4, false, true, R.string.os_stock)) .put("9AC63842137D92C119A1B1BE2C9270B9EBB6083BBE6350B7823571942B5869F0", diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5e2db10c..9f6b2f49 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -123,6 +123,7 @@ Google Pixel 9 Google Pixel 9 Pro Google Pixel 9 Pro XL + Google Pixel 9 Pro Fold Samsung Galaxy S10e (SM-G970F) Samsung Galaxy S10+ (SM-G975F) Samsung Galaxy Note 10 (SM-N970F)