[BOUNTY #2851] Remote DroidGuard server guide + multi-step session support#3575
Open
GautamKumarOffical wants to merge 1 commit into
Open
Conversation
… Play Integrity - Implement session-based protocol in RemoteHandleImpl for multi-step DroidGuard flows needed by Play Integrity (pia_attest_e1) - Add begin/snapshot/close session lifecycle with fallback to single-step - Implement guardWithRequest service path that was marked TODO - Add Python server script for running DroidGuard server on old phone via Termux - Add setup guide documenting how to use a spare phone as a DroidGuard server Fixes: microg#2851 Signed-off-by: Gautam Kumar <gautamkumarofficial@users.noreply.github.com>
4 tasks
|
At least passes a quick visual inspection! if you could further elaborate how the server is actually supposed to be used, like getting DEVICE integrity is great and all, but explain please what device is expected in the end? Does it run on stock phones? You can not put microG together with normal GMS as i understand, so please elaborate a bit Also recording a 1-2 minute demo of the complete setup (like you having your client and server phone and a integrity request is being made) would be great but the PR can of course be reviewed without. |
|
Also explain why
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses the remote DroidGuard infrastructure needed for Play Integrity support. It includes:
Changes
Client-side (RemoteHandleImpl)
Service (DroidGuardServiceImpl)
Server (new)
How it works
The remote DroidGuard server script runs on an old Android phone with microG in embedded mode. When a client device in Network mode requests a Play Integrity token:
Testing
This requires testing on actual Android devices. To verify:
Fixes: #2851