generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use activity fingerprint for GmsCore check, so a dialog can be s…
…hown
- Loading branch information
1 parent
b92fe69
commit 974740d
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
11 changes: 11 additions & 0 deletions
11
...tlin/app/revanced/patches/music/misc/gms/fingerprints/MusicActivityOnCreateFingerprint.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package app.revanced.patches.music.misc.gms.fingerprints | ||
|
||
import app.revanced.patcher.fingerprint.MethodFingerprint | ||
|
||
internal object MusicActivityOnCreateFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
parameters = listOf("Landroid/os/Bundle;"), | ||
customFingerprint = { methodDef, classDef -> | ||
methodDef.name == "onCreate" && classDef.type.endsWith("/MusicActivity;") | ||
} | ||
) |