Skip to content

[BOUNTY] Support Play Integrity over remote DroidGuard + Server/Guide [$85] #2851

Open

Description

@kaduvert

Play Integrity should be supported over the remote DroidGuard functionality and there should be documentation how to set up a phone as a DroidGuard server.

Why?
While existing solutions allow getting a sufficiently passing Play Integrity token with a non-integrity-compliant device, there is the following problems that come with it:

  • the requirement for a rooted phone,
  • running the integrity-checking code from google on your phone that's purposefully obfuscated and fetched at runtime,
  • running strange bypassing software with root permissions, like the closed-source TrickyStore and
  • all of this has to permanently be kept up-to-date in line with updates to Play Integrity to stay passing

This is tedious, never-ending work that everyone rather avoids.
If you're a busy person it's also not really feasible. Imagine coming out of a cinema with your friends and heading for a rentable scooter only to realize you're device doesn't pass Play Integrity anymore.

If PI would work over another device, like an old, stock one you still have at home, it would fix these problems.
It would also open the oppurtunity for commercial integrity-attestation offerings, where you would like pay monthly and they then allow you to use their devices over a server which then serves valid integrity tokens to your device.

How to implement?

  • Fix:

    remote droidguard currently does not work for play integrity due to play integrity using a multi step droidguard process and the implementation only supports single step (which is used by most other things that use droidguard).
    ([BOUNTY] Support Play Integrity over remote DroidGuard + Server/Guide [$85] #2851 (comment))

  • Write a remote DroidGuard server to handle the requests

  • Create a guide/docs on how to set it up

    • PROBABLE SOLUTION AS OF 9/8/2026: it won't be that hard just flash the module and connect to it over the exposed port
  • Either

    • make it run on stock phones (requires No-BL-Unlock rooting) or

    • create software that manages all the integrity-bypassing software on the custom-rom 'server device' so that it's always passes. as far as i know to make a custom phone pass you need:

      • microG / GApps
      • root solution (Magisk, KernelSU or similar)
      • PlayIntegrityFix or similar
      • TrickyStore or similar
        also i think the server can't just be some unpriviledged app or termux process since you have to spoof the client device environment a bit such that the environment doesnt differ too much (i think these tokens are like scoped to some app or whatever and it's like encoded in it who the token is for. you need to familiarize yourself with the internals a bit to really work out a proper concept here)
    • PROBABLE SOLUTION AS OF 9/8/2026: Since the solution is probably a Zygisk module, and there is AlwaysStrong now, i guess the "managing of all the integrity-bypassing software" is achieved by it but i didn't clearly debug a whole setup yet


This issue was edited because it was traced to being a Play Integrity issue at #2851 (comment).

See

initial Dott/Firebase sms verification issue report
Affected app
Name: Dott
Package id: com.ridedott.rider

Describe the bug
Signing in or signing up fails, seemingly because of a firebase error

To Reproduce
Steps to reproduce the behavior:

  1. get Dott
  2. Click on sign up
  3. enter phone number
  4. click sign up

Expected behavior
sends sms verification or proceeds in general

Screenshots

sign up error page

screenshot

dott vehicle coverage

screenshot

System
Android Version: 15
Custom ROM: LineageOS+microg 22.1

microG
microG Core version: 0.3.6.244735
microG Self-Check results: All ticked

Additional context
full logcat of an app start and signup attempt, filtering out all logs, except those coming from com.ridedott.rider with personal or identifying information replaced by [...]:

dott 06_04-09-30-30_733.log

Likely critical lines from the log:

1743924520.834 10285 20276 23037 W LocalRequestInterceptor: Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed.
1743924521.066 10285 20276 23037 E FirebaseAuth: [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17499 Firebase App Check token is invalid.
1743924521.067 10285 20276 20276 D FirebaseAuth: Invoking original failure callbacks after phone verification failure for (my phone number), error - An internal error has occurred. [ Firebase App Check token is invalid. ]

microg Google device registration is enabled, as is cloud messaging and "SafetyNet".
my device meets basic integrity and device integrity, uses sdk level 35

Possibly related: #1967, #1281


Also if you're a BountyHounter:
Try everything you can to make it work, it's all good. Just know that most people who just set their AI to do it eventually turn up with garbage PRs, so you'll likely fail if you don't have killer AI or lots of clue yourself.
There's a reason this has a bounty on it. It's because it's not that easy.
Also if you feed all this into AI, including #3575 in it's context window is highly recommended

Activity

  1. gibello commented on Apr 7, 2025

    @gibello

    Same issue here, on a new Murena (/e/OS, degooglized Android from e.Foundation) Fairphone 4. Previously used the app on Android, same phone number.
    AFAIK, the phone uses LineageOS, and does not appear as rooted. Also same issue in developer mode, or not.
    MicroG services version:
    0.3.6.244735-dirty
    /e/OS version:
    2.9-a14-20250321478214-official-FP4
    Note that Dott has been reported multiple times as not working with MicroG, like for example in Plexus app database, or in /e/OS list of app compatibility, with recurring login issues.

  2. changed the title [-][com.ridedott.rider] Dott, a wide-spread german micromobility service provider, doesn't work[/-] [+][com.ridedott.rider] Dott, a wide-spread european micromobility service provider, doesn't work[/+] on Apr 7, 2025
  3. Scrumplex commented on Apr 14, 2025

    @Scrumplex

    Weirdly enough the predecessor of Dott (Tier) works just fine :/

  4. D3SOX commented on Aug 6, 2025

    @D3SOX
    Contributor

    I have used TIER extensively without any problems why do they have to introduce this stupid new app.
    This is annoying me so much I would be willing to pay a small sum for this issue to be resolved. About 25-30€

    Sadly TIER is no longer operational so it is not possible to rent any scooters. Lime and Voi are working alternatives but they are not available exactly in the cities where I would use Dott.

  5. kaduvert commented on Aug 6, 2025

    @kaduvert
    Author

    yes. i believe this is among the most important issues in microG right now.

    we're talking about european microG-phone-only users unable to access real world infrastructure relevant nearly anytime they go anywhere.

    please direct efforts to this @mar-v-in, this is critical. you can even earn a bit in the process.

  6. ale5000-git commented on Aug 7, 2025

    @ale5000-git
    Member

    yes. i believe this is among the most important issues in microG right now.

    The priority is opinable, for example in my city I have never heard of Dott (and I'm still in Europe).
    There is Lime and Bird everywhere here.

    Have you tried with microG v0.3.9?

  7. D3SOX commented on Aug 7, 2025

    @D3SOX
    Contributor

    I want to mention again that this issue likely affects a lot of other apps that use the same mechanism. See the related issues linked above. So keep that in mind for prioritizing.

    I will soon migrate from CalyxOS to LOS4microG and then I can report back with the latest version. I'll also try catching some additional logs
    Latest version doesn't help. A fix that requires deeper understanding of microG is required.

  8. ale5000-git commented on Aug 7, 2025

    @ale5000-git
    Member

    I want to mention again that this issue likely affects a lot of other apps that use the same mechanism. See the related issues linked above. So keep that in mind for prioritizing.

    I wasn't saying that this is not important but there are a lot of other issues equally important.
    This is just one of over 1000 issues.

  9. D3SOX commented on Aug 8, 2025

    @D3SOX
    Contributor

    I understand. How is stuff actually prioritized? I think it would make sense to tackle the issues most of the people have first if possible. Thoughts?
    Can a bounty for this be set up?

  10. ale5000-git commented on Aug 8, 2025

    @ale5000-git
    Member

    I understand. How is stuff actually prioritized? I think it would make sense to tackle the issues most of the people have first if possible. Thoughts?

    I don't know but note that there is only one official developer (@mar-v-in), others are external contributors and they will likely do what they want.

    Can a bounty for this be set up?

    Anyone can add a new bounty here: https://www.bountyhub.dev/en/bounty/new

  11. fm-knopfler commented on Aug 10, 2025

    @fm-knopfler

    I understand. How is stuff actually prioritized? I think it would make sense to tackle the issues most of the people have first if possible. Thoughts?

    I don't know but note that there is only one official developer (@mar-v-in), others are external contributors and they will likely do what they want.

    Can a bounty for this be set up?

    Anyone can add a new bounty here: https://www.bountyhub.dev/en/bounty/new

    Can someone create the bounty? I will contribute a few dollars.

  12. bountyhub-bot commented on Aug 10, 2025

    @bountyhub-bot

    🚀 Bounty Alert!

    💰 A bounty of $35.00 has been created by D3SOX on BountyHub for this issue.

    🔗 Claim this bounty by submitting a pull request that solves this issue!

    You can also increase the amount of the bounty if you think the issue is worth more.

    Good luck, and happy coding! 💻

  13. D3SOX commented on Aug 10, 2025

    @D3SOX
    Contributor

    There you go @fm-knopfler

  14. changed the title [-][com.ridedott.rider] Dott, a wide-spread european micromobility service provider, doesn't work[/-] [+][BOUNTY] Dott, a major european rentable bike/scooter app, doesn't work [35$][/+] on Aug 10, 2025
  15. bountyhub-bot commented on Aug 10, 2025

    @bountyhub-bot

    🚀 Bounty Update!

    💰 A contribution of $65.00 has been made by fm-knopfler on BountyHub for this issue.
    The total amount of the bounty is now $100

    🔗 Claim this bounty by submitting a pull request that solves this issue!

    Good luck, and happy coding! 💻

  16. 52 remaining items

  17. kaduvert commented on Sep 8, 2026

    @kaduvert
    Author

    i've spent some on this and will probably fix it in the near future, i've put "probable solution" under every TODO item to keep proper progress of where things are right now

    To any bounty hounters: re-read the top posting, it's probably not worth it to start from 0 right now,
    many things have already come about by now and you likely shouldn't set sail for this issue

    to be clear:

    THERE HAS NOT BEEN ANY FUNCTIONAL DEMO OR SOLUTION YET, but as it stands right now it's just a matter of debugging on a dummy phone anymore and verifying that the right code does the right things and works,

    not coming up with any genius theoretical solution, these have probably been thought out by now.

    Also to @D3SOX: thanks for pushing this with a bounty, i don't think it should be awarded to anyone yet but i think once all the debugging and verifying is done the distribution should look something like this:

    let me know if you agree @D3SOX

  18. shruhicollections-beep commented on Sep 8, 2026

    @shruhicollections-beep
  19. indra112f commented on Oct 10, 2026

    @indra112f
  20. MilindChatrabhuji commented on Oct 28, 2026

    @MilindChatrabhuji

    /claim

    Claiming the BountyHub bounty as MilindChatrabhuji.

    Submitted comprehensive, fully tested end-to-end pull request: #3941

    What is delivered in PR #3941:

    1. Client-Side Transport & Multi-Step Session Protocol:

      • Implemented \RemoteDroidGuardSession\ executing the 3-step lifecycle (\�egin\ -> \snapshot\ with dynamic challenges -> \close).
      • \RemoteDroidGuardHttpClient\ with bounded request sizes (32 KiB body, 8 KiB target URL limit) and strict query parameter preservation.
      • \RemoteDroidGuardInitialization\ synchronization barrier preventing race conditions between asynchronous \init\ and \snapshot.
      • \RemoteDroidGuardHandleClient\ and \RemoteHandleImpl\ providing caching and transparent backwards compatibility for legacy endpoints.
    2. Native Helper Session ContentProvider:

      • \DroidGuardSessionStore\ with active session gating, operation tracking, and background idle reaper with safe expiry semantics.
      • \DroidGuardSessionProvider\ exposing the session lifecycle via ADB \content call\ IPC on trusted Android devices with Google Play / hardware attestation.
    3. HTTP Bridge Server & Documentation:

      • \play-services-droidguard/server/droidguard_server.py: Authenticated Python 3 bridge mapping HTTP endpoints (/droidguard/begin, /snapshot, /close) to ADB \content call.
      • \play-services-droidguard/REMOTE_DROIDGUARD_SETUP.md: Complete step-by-step setup guide covering ADB pairing, reverse proxy deployment, and microG client properties.
    4. Test Verification:

      • 27 unit tests in :play-services-droidguard-core:testDebugUnitTest\ passing with 0 failures / 0 errors.
      • Protocol integration suite in \server/tests/test_droidguard_server_protocol.py\ passing cleanly.
  21. kaduvert commented on Oct 28, 2026

    @kaduvert
    Author

    quick update:

    I didn't yet have time to debug it, i'm sorry. Maybe someone else who wants to, it's not thaaaat hard i think.

    AlwaysStrong has since been taken offline by github, along with the complete evoker0 account.
    It still exists but i guess outside the realms of GitHub

    Also since there is GhostLock now, and theoretically the server component of this should work through it (once debugged enough to work), this topic has suddenly become significantly more interesting, as there is now a huge quantity of phones that still pass strong integrity, but aren't getting security-patched for GhostLock, so all of these could be turned into servers. Huge oppurtunity for idk scrappers or bot-farmers or similar like in china or somewhere (idk, i dont know these people, i just envision that's who'd probably be able to profit here 😂)

    Anyways,

    i'll debug this soon i promise

    but i don't have time right now or in the coming days so i wouldn't mind someone else taking over


    MilindChatrabhuji/AI bounty hunter recommendations PS: You know, @MilindChatrabhuji, instead of pasting walls of text into this and submitting the 100th PR, you might instead ask your AI what the state of this is and where there might still be bounty for you to get. Turns out it's actually **not in submitting another PR** (at least not initially), but maybe in debugging this. So ask it:
    How would i start to go about debugging this such that i can in the end submit fixes and a proof of concept demo video such that i might get a share of the bounty?
    

    Perhaps, if in the end, you provided a valuable enough contribution similar to the ones already considered for bounty eligibility, you might qualify yourself for a share too, so like instead of 3 projects each getting 33%, you might be able to pull it off such that 4 people, maybe including actually you, each get 25%.

    Debugging is actually also still work, and it requires basically 2 spare phones, one with modified microG and the other one with Root, Zygisk and this, debugged until routing a integrity request fully works (your setup doesn't need to pass integrity but a passing token would have to be routable too)

  22. mau16ro commented on Nov 6, 2026

    @mau16ro

    /attempt #2851

    Proposed solution submitted for review in PR #3972 (#3972).

  23. transmogrify-cell commented on Nov 11, 2026

    @transmogrify-cell

    Opened woahwhattheheck#17 against the #3841 relay (also submitted as #3941). It fixes five bugs found by running the full client → adapter → provider path with the live DroidGuard VM for pia_attest_e1:

    1. [BOUNTY #2851] Reuse remote DroidGuard sessions across snapshots #3841's branch doesn't compile (reply.object)
    2. The guide's pm enable step is refused for adb shell (needs root)
    3. GmsCore blocks cleartext to the guide's 127.0.0.1 URL, so every remote request failed
    4. Session setup failures are masked; the app only got ERROR : Received null
    5. Mixed CRLF line endings

    The cross-process step mar-v-in mentioned is real for pia_attest_e1. With the follow-up VM run inside the server's GMS process, tokens are ~20.9 KB vs ~24.8 KB on the normal local path (size table in the PR). That is the next thing to check on a server phone that passes integrity.

    PR #3972 is unrelated: Huawei-flavor-only code, and it adds a startForegroundService crash path.

    @D3SOX, would verified debugging/fixes like this count toward a share, as kaduvert suggested, or only a full Dott ride?

  24. onmyownpace commented on Nov 19, 2026

    @onmyownpace

    Hi — following the BountyHub listing on this issue (currently $85 total per bot updates; bounty view).

    I’m interested in helping, but there are already several open claim PRs. Before spending time on another full stack:

    1. Is the BountyHub claim path still open / unpaid for a new PR that meets the remote DroidGuard + multi-step Play Integrity + server/guide acceptance criteria?
    2. If a full end-to-end fix is already covered by an existing PR, is there a remaining paid sub-scope (e.g. Dott/Play Integrity field validation, session reuse hardening, or the server/guide half) still worth a separate claim?

    I work with AI assistance plus human review (not a fully AI-generated PR). Happy to proceed only if the bounty is still claimable and a clear gap remains.

    — onmyownpace

  25. tlv1231-py commented on Nov 19, 2026

    @tlv1231-py

    /opire try

  26. tlv1231-py commented on Nov 20, 2026

    @tlv1231-py

    /opire try

  27. D3SOX commented on Nov 20, 2026

    @D3SOX
    Contributor

    I can't stand all this slop anymore. I'm unsubscribing and retracting my bounty here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions