Alex313031 / Alex313031/Thorium-Android

Patch the Google Services integration to use Revanced/GMSCore instead

Open
#57 2 comments 11 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
778
Forks
12
PR merge metrics
No merged PRs in 30d

Description

## 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:
- https://github.com/ReVanced/revanced-patches/tree/main/src/main/kotlin/app/revanced/patches/youtube/misc/microg
- https://github.com/ReVanced/revanced-patches/tree/main/src/main/kotlin/app/revanced/patches/youtube/misc/gms
- https://github.com/ReVanced/revanced-patches/tree/main/src/main/kotlin/app/revanced/patches/music/misc/gms

## 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](https://github.com/Alex313031/thorium), 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked ReVanced patch paths under src/main/kotlin/app/revanced/patches/youtube/misc/microg, youtube/misc/gms, and music/misc/gms, alongside the GmsCore project. Determine where Thorium's Google Services integration is implemented and define the scope for replacing it; done means the listed Google Auth features work on unrooted Android devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
authentication, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.