Skip to content

feat: introduce native MicroG support and GMS request redirection#84

Open
HSSkyBoy wants to merge 1 commit into
JingMatrix:masterfrom
7723mod:master
Open

feat: introduce native MicroG support and GMS request redirection#84
HSSkyBoy wants to merge 1 commit into
JingMatrix:masterfrom
7723mod:master

Conversation

@HSSkyBoy
Copy link
Copy Markdown

@HSSkyBoy HSSkyBoy commented May 2, 2026

This update introduces native MicroG integration for NPatch, allowing patched Google applications to operate in environments relying on community-built MicroG (such as ReVanced GmsCore).

Detailed changes:

UI Manager:

  • Add "Enable MicroG Support" checkbox and compatibility info to NewPatchScreen.
  • Update NewPatchViewModel to pass --useMicroG flag to the patcher engine.

Patcher:

  • Implement --useMicroG argument parsing in NPatch.java.
  • Enhance modifyManifestFile to automate original signature extraction and
    hex encoding for fake-signature metadata.
  • Inject android.permission.FAKE_PACKAGE_SIGNATURE into AndroidManifest.xml.

Patch Loader:

  • Implement GmsRedirector.java for dynamic IPC interception.
  • Redirect Intent calls for com.google.android.gms and GSF to community packages
    (prioritizing app.revanced.android.gms and org.microg.gms).
  • Hook ContentResolver to swap GMS URIs and handle SecurityException retries.
  • Hook PackageManager.getPackageInfo for runtime signature spoofing.
  • Initialize GmsRedirector in LSPApplication.java based on PatchConfig.

Share:

  • Update PatchConfig.java to persist and propagate useMicroG state.
  • Define REAL_GMS_PACKAGE_NAME in Constants.java for global reference.

Ref: 7723mod/NPatch@e640da4

This update introduces native MicroG integration for NPatch, allowing patched
Google applications to operate in environments relying on community-built
MicroG (such as ReVanced GmsCore).

Co-Authored-By: MrZhongzq <108169409+mrzhongzq@users.noreply.github.com>
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.

1 participant