Skip to content

Commit

Permalink
add Pixel 8 and Pixel 8 Pro support
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Oct 12, 2023
1 parent c9e94c6 commit 63e98d0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ private enum Stage {
"Pixel 7a",
"Pixel Tablet",
"Pixel Fold",
"Pixel 8",
"Pixel 8 Pro",
"POCOPHONE F1",
"POT-LX3",
"REVVL 2",
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/java/app/attestation/auditor/AttestationProtocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ private static class DeviceInfo {
"Pixel 7a",
"Pixel Tablet",
"Pixel Fold",
"Pixel 8",
"Pixel 8 Pro",
"SM-N970U",
"SM-N975U").contains(Build.MODEL);

Expand Down Expand Up @@ -344,6 +346,10 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_tablet, 200, 200, false, true, R.string.os_graphene))
.put("EE0C9DFEF6F55A878538B0DBF7E78E3BC3F1A13C8C44839B095FE26DD5FE2842",
new DeviceInfo(R.string.device_pixel_fold, 200, 200, false, true, R.string.os_graphene))
.put("CD7479653AA88208F9F03034810EF9B7B0AF8A9D41E2000E458AC403A2ACB233",
new DeviceInfo(R.string.device_pixel_8, 300, 300, false, true, R.string.os_graphene))
.put("896DB2D09D84E1D6BB747002B8A114950B946E5825772A9D48BA7EB01D118C1C",
new DeviceInfo(R.string.device_pixel_8_pro, 300, 300, false, true, R.string.os_graphene))
.build();
private static final ImmutableMap<String, DeviceInfo> fingerprintsStock = ImmutableMap
.<String, DeviceInfo>builder()
Expand Down Expand Up @@ -395,6 +401,10 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_tablet, 200, 200, false, true, R.string.os_stock))
.put("3BBD4712D8714812E762D3FB6D2D5724800C3342B1835CDBC1D3634AE59D646E",
new DeviceInfo(R.string.device_pixel_fold, 200, 200, false, true, R.string.os_stock))
.put("64DEF0828FF5D3EAC65C3F5CEF46C1D855FE0A5D8525E90FB94FC3DBA9988C87",
new DeviceInfo(R.string.device_pixel_8, 300, 300, false, true, R.string.os_stock))
.put("E5362DDF4676E8AA134DB520749BCB1F44FE6556F5E7BFAB130CB6343476FC15",
new DeviceInfo(R.string.device_pixel_8_pro, 300, 300, false, true, R.string.os_stock))
.put("72376CAACF11726D4922585732429FB97D0D1DD69F0D2E0770B9E61D14ADDE65",
new DeviceInfo(R.string.device_sm_a705fn, 3, 4, false, false, R.string.os_stock))
.put("33D9484FD512E610BCF00C502827F3D55A415088F276C6506657215E622FA770",
Expand Down Expand Up @@ -524,6 +534,10 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_tablet, 100, 100, false, true, R.string.os_graphene))
.put("EE0C9DFEF6F55A878538B0DBF7E78E3BC3F1A13C8C44839B095FE26DD5FE2842",
new DeviceInfo(R.string.device_pixel_fold, 100, 100, false, true, R.string.os_graphene))
.put("CD7479653AA88208F9F03034810EF9B7B0AF8A9D41E2000E458AC403A2ACB233",
new DeviceInfo(R.string.device_pixel_8, 300, 300, false, true, R.string.os_graphene))
.put("896DB2D09D84E1D6BB747002B8A114950B946E5825772A9D48BA7EB01D118C1C",
new DeviceInfo(R.string.device_pixel_8_pro, 300, 300, false, true, R.string.os_graphene))
.build();
private static final ImmutableMap<String, DeviceInfo> fingerprintsStrongBoxStock = ImmutableMap
.<String, DeviceInfo>builder()
Expand Down Expand Up @@ -555,6 +569,10 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_tablet, 100, 100, false, true, R.string.os_stock))
.put("3BBD4712D8714812E762D3FB6D2D5724800C3342B1835CDBC1D3634AE59D646E",
new DeviceInfo(R.string.device_pixel_fold, 100, 100, false, true, R.string.os_stock))
.put("64DEF0828FF5D3EAC65C3F5CEF46C1D855FE0A5D8525E90FB94FC3DBA9988C87",
new DeviceInfo(R.string.device_pixel_8, 300, 300, false, true, R.string.os_stock))
.put("E5362DDF4676E8AA134DB520749BCB1F44FE6556F5E7BFAB130CB6343476FC15",
new DeviceInfo(R.string.device_pixel_8_pro, 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",
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
<string name="device_pixel_7a">Google Pixel 7a</string>
<string name="device_pixel_tablet">Google Pixel Tablet</string>
<string name="device_pixel_fold">Google Pixel Fold</string>
<string name="device_pixel_8">Google Pixel 8</string>
<string name="device_pixel_8_pro">Google Pixel 8 Pro</string>
<string name="device_sm_a705fn">Samsung Galaxy A70 (SM-A705FN)</string>
<string name="device_sm_g960f">Samsung Galaxy S9 (SM-G960F)</string>
<string name="device_sm_g960_na">Samsung Galaxy S9 USA/Canada (SM-G960U/SM-G960U1/SM-G960W)</string>
Expand Down

0 comments on commit 63e98d0

Please sign in to comment.