Skip to content

Commit

Permalink
add GrapheneOS Pixel 4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jun 20, 2020
1 parent 34ff5a6 commit 3ec8c39
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ private enum Stage {
"Pixel 3 XL",
"Pixel 3a",
"Pixel 3a XL",
"Pixel 4",
"Pixel 4 XL",
"POCOPHONE F1",
"POT-LX3",
"REVVL 2",
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/java/app/attestation/auditor/AttestationProtocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ private static class DeviceInfo {
"Pixel 3 XL",
"Pixel 3a",
"Pixel 3a XL",
"Pixel 4",
"Pixel 4 XL",
"SM-N970U",
"SM-N975U").contains(Build.MODEL);

Expand Down Expand Up @@ -302,6 +304,10 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_3a, 3, 4, false /* uses new API */, true, R.string.os_graphene))
.put("91943FAA75DCB6392AE87DA18CA57D072BFFB80BC30F8FAFC7FFE13D76C5736E",
new DeviceInfo(R.string.device_pixel_3a_xl, 3, 4, false /* uses new API */, true, R.string.os_graphene))
.put("80EF268700EE42686F779A47B4A155FE1FFC2EEDF836B4803CAAB8FA61439746",
new DeviceInfo(R.string.device_pixel_4, 3, 4, false /* uses new API */, true, R.string.os_graphene))
.put("3F15FDCB82847FED97427CE00563B8F9FF34627070DE5FDB17ACA7849AB98CC8",
new DeviceInfo(R.string.device_pixel_4_xl, 3, 4, false /* uses new API */, true, R.string.os_graphene))
// CalyxOS
.put("BCEBF6844F6B0FA2ABE8E62A9D0D57A324D0C02CEFDFA019FD49832F9ED39105",
new DeviceInfo(R.string.device_pixel_2_generic, 2, 3, true, true, R.string.os_calyx))
Expand Down Expand Up @@ -336,6 +342,8 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_3_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("E75B86C52C7496255A95FB1E2B1C044BFA9D5FE34DD1E4EEBD752EEF0EA89875",
new DeviceInfo(R.string.device_pixel_3a_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("AE6316B4753C61F5855B95B9B98484AF784F2E83648D0FCC8107FCA752CAEA34",
new DeviceInfo(R.string.device_pixel_4_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("72376CAACF11726D4922585732429FB97D0D1DD69F0D2E0770B9E61D14ADDE65",
new DeviceInfo(R.string.device_sm_a705fn, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("33D9484FD512E610BCF00C502827F3D55A415088F276C6506657215E622FA770",
Expand Down Expand Up @@ -437,6 +445,10 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_3a, 3, 4, false /* uses new API */, true, R.string.os_graphene))
.put("3F36E3482E1FF82986576552CB4FD08AF09F8B09D3832314341E04C42D2919A4",
new DeviceInfo(R.string.device_pixel_3a_xl, 3, 4, false /* uses new API */, true, R.string.os_graphene))
.put("80EF268700EE42686F779A47B4A155FE1FFC2EEDF836B4803CAAB8FA61439746",
new DeviceInfo(R.string.device_pixel_4, 3, 4, false /* uses new API */, true, R.string.os_graphene))
.put("3F15FDCB82847FED97427CE00563B8F9FF34627070DE5FDB17ACA7849AB98CC8",
new DeviceInfo(R.string.device_pixel_4_xl, 3, 4, false /* uses new API */, true, R.string.os_graphene))
// CalyxOS
.put("B4DE537A5F4B8FDAB6789EB2C06EC6E065E48A79EDD493A91F635004DD89F3E2",
new DeviceInfo(R.string.device_pixel_3_generic, 3, 4, false /* uses new API */, true, R.string.os_calyx))
Expand All @@ -447,6 +459,8 @@ private static class DeviceInfo {
new DeviceInfo(R.string.device_pixel_3_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("8CA89AF1A6DAA74B00810849356DE929CFC4498EF36AF964757BDE8A113BF46D",
new DeviceInfo(R.string.device_pixel_3a_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("AE6316B4753C61F5855B95B9B98484AF784F2E83648D0FCC8107FCA752CAEA34",
new DeviceInfo(R.string.device_pixel_4_generic, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("3D3DEB132A89551D0A700D230BABAE4E3E80E3C7926ACDD7BAEDF9B57AD316D0",
new DeviceInfo(R.string.device_sm_n970u, 3, 4, false /* uses new API */, true, R.string.os_stock))
.put("9AC63842137D92C119A1B1BE2C9270B9EBB6083BBE6350B7823571942B5869F0",
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
<string name="device_pixel_3a_generic">Google Pixel 3a / Pixel 3a XL</string>
<string name="device_pixel_3a">Google Pixel 3a</string>
<string name="device_pixel_3a_xl">Google Pixel 3a XL</string>
<string name="device_pixel_4_generic">Google Pixel 4 / Pixel 4 XL</string>
<string name="device_pixel_4">Google Pixel 4</string>
<string name="device_pixel_4_xl">Google Pixel 4 XL</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 3ec8c39

Please sign in to comment.