Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the Samsung Galaxy Z Flip3 5G (SM-F711B) #189

Closed
wants to merge 2 commits into from

Conversation

dbaxa
Copy link

@dbaxa dbaxa commented Apr 25, 2022

Signed-off-by: David Black [email protected]

@dbaxa dbaxa force-pushed the samsung-flip-z3-support branch from 14e4c78 to e039b92 Compare April 25, 2022 03:15
@dbaxa
Copy link
Author

dbaxa commented Apr 25, 2022

cc @thestinger

@ghost
Copy link

ghost commented Apr 25, 2022

Have you tested this with your own local builds of Auditor?

@dbaxa
Copy link
Author

dbaxa commented Apr 25, 2022

Have you tested this with your own local builds of Auditor?

Yes.

@ghost
Copy link

ghost commented Apr 25, 2022

Make a PR to add it to attestation.app here as well: https://github.com/GrapheneOS/AttestationServer/

If you need a server to test I can spin up my instance, though it should be fine.

@dbaxa
Copy link
Author

dbaxa commented Apr 25, 2022

I have raised GrapheneOS/AttestationServer#187

@thestinger
Copy link
Member

We need a project member to verify this and we're not set up for that right now. We're supposed to be doing this ourselves with the submitted samples, but we lack the resources to do it. We're also supposed to be adding samples for each added device to our samples repository which is important for maintenance. We stopped doing it for Pixels due to no longer actively using the actual sample submissions primarily due to lack of tooling.

If you want us to add more devices, what you should work on is making better tooling for automating this work including the sample handling so we can add all the devices with valid submitted samples instead of just one specific device.

I don't think we can accept these pull requests. It needs to be done in a different way.

@dbaxa
Copy link
Author

dbaxa commented Apr 26, 2022

Hi @thestinger,
What kind of automation would we like to end up having though?

It seems like for security reasons we end up having the "properties" (verifiedBootKey) and "attributes" (version info & backing type) in a relatively easy accessible fashion from samples - would the automation make it easy to raise PRs for the different repos and or update some kind of (mostly shared) state/database containing device related information?

@thestinger
Copy link
Member

The main thing that needs to be done is verifying that it's a valid sample based on one of Google's roots and extracting the different properties from, along with testing that it passes verification with all the usual verification code. Sometimes there are bugs which you can see with our workaround setup for some older Samsung devices. It seems that isn't needed anymore if this works without it.

@thestinger
Copy link
Member

Also, we need to test verifying both with and without StrongBox. Auditor will only use StrongBox but I like to know that we have the correct setup for TEE too. It can be a different attestation version, etc. which was often the case on Pixels before the Pixel 6 since it was Qualcomm's QSEE TEE implementation and the Titan M so Google was often ahead of Qualcomm.

@dbaxa
Copy link
Author

dbaxa commented Apr 26, 2022

Also, we need to test verifying both with and without StrongBox. Auditor will only use StrongBox but I like to know that we have the correct setup for TEE too.

Interesting. Do we have reason to check without strongbox - even for testing a correct TEE setup ... if strong box is available for a device?

@dbaxa
Copy link
Author

dbaxa commented Apr 26, 2022

The main thing that needs to be done is verifying that it's a valid sample based on one of Google's roots and extracting the different properties from, along with testing that it passes verification with all the usual verification code

So that would occur on/in https://github.com/GrapheneOS/AttestationServer right?
(Is there a way to download samples that the main server has received for testing purposes, https://github.com/GrapheneOS/AttestationSamples hasn't been updated in a fairly long time, ?)

Sometimes there are bugs which you can see with our workaround setup for some older Samsung devices. It seems that isn't needed anymore if this works without it.

Yeah I saw that. This device works without the workaround it seems.

@dbaxa
Copy link
Author

dbaxa commented May 2, 2022

@thestinger ^ is it possible to add some more details to this so that others might work on possible changes/automation?

@thestinger
Copy link
Member

I can try providing some more details later.

@dbaxa
Copy link
Author

dbaxa commented May 9, 2022

Nudge @thestinger :-)

@thestinger thestinger force-pushed the main branch 6 times, most recently from a9da21e to 7fb192b Compare September 14, 2022 07:35
@khartmann97
Copy link

@dbaxa How did you get these hashes from your device - I'd like to get them for mine too.

@dbaxa
Copy link
Author

dbaxa commented Sep 28, 2022

Hi @khartmann97 - I think I made use of https://github.com/dbaxa/Auditor/tree/debug-setup-for-adding-new-device to get the information I needed.

@thestinger
Copy link
Member

We're going to add generic device support instead of the previous approach. It's in development already:

#236

@thestinger thestinger closed this Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants