Alex313031 / Thorium-Android

Thorium builds for Android (arm64 and arm32).
https://thorium.rocks/
BSD 3-Clause "New" or "Revised" License
495 stars 8 forks source link

Patch the Google Services integration to use Revanced/GMSCore instead #57

Open MulverineX opened 4 months ago

MulverineX commented 4 months ago

Background

On unrooted Android devices it is literally impossible to make stock Google Services integrate with apps not proprietarily built by Google with their private key(s). This is due to SafetyNet enforcement of app binary signatures, and is impossible to mitigate. Therefore, all Google Auth related features (Sign-in #6, Sync #37, Autofill #10, and Passkeys) not working are not bugs, and cannot be resolved with the chromium-dev team @Alex313031.

Solution

Due to this issue, modding projects for stock apps that change the signature, have to emulate Google auth support. The current generation of this auth emulation is https://github.com/Revanced/GmsCore It is used within the Revanced YouTube & YouTube Music mods to provide working alternative authentication on unrooted devices. Implementations in patch form:

Conclusions

This is a feature request, not a bug, this issue should supersede & close all existing Google Auth related bugs, and should probably be pinned. Ideally, Alex could find time to work on this, but as this is a volunteer project and isn't his main focus, please understand that this suggestion may take a while to ever be implemented. If anyone in the community wants to they can discuss with the Revanced team and perhaps organize an effort to add this, maybe via sponsoring one of the devs.

MulverineX commented 4 months ago

@gz83 some triage here would be appreciated (also I volunteer if y'all want someone to help moderate & manage triage in this repo. #12 really needs some cleanup)

d1stru3t0r commented 4 months ago

This would indeed be very helpful, in the current state is almost unusable for proper daily usage