generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable cast modules in YouTube Music (#337)
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...kotlin/app/revanced/patches/music/misc/microg/fingerprints/CastContextFetchFingerprint.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,20 @@ | ||
package app.revanced.patches.music.misc.microg.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import app.revanced.patcher.fingerprint.method.annotation.DirectPatternScanMethod | ||
import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod | ||
import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility | ||
|
||
@Name("cast-context-fetch-fingerprint") | ||
@MatchingMethod( | ||
"Lvvz;", "a" | ||
) | ||
@DirectPatternScanMethod | ||
@MicroGPatchCompatibility | ||
@Version("0.0.1") | ||
object CastContextFetchFingerprint : MethodFingerprint( | ||
null, null, null, null, | ||
listOf("Error fetching CastContext.") | ||
) |
20 changes: 20 additions & 0 deletions
20
...tlin/app/revanced/patches/music/misc/microg/fingerprints/CastDynamiteModuleFingerprint.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,20 @@ | ||
package app.revanced.patches.music.misc.microg.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import app.revanced.patcher.fingerprint.method.annotation.DirectPatternScanMethod | ||
import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod | ||
import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility | ||
|
||
@Name("cast-module-fingerprint") | ||
@MatchingMethod( | ||
"Llqh;", "c" | ||
) | ||
@DirectPatternScanMethod | ||
@MicroGPatchCompatibility | ||
@Version("0.0.1") | ||
object CastDynamiteModuleFingerprint : MethodFingerprint( | ||
null, null, null, null, | ||
listOf("com.google.android.gms.cast.framework.internal.CastDynamiteModuleImpl") | ||
) |
20 changes: 20 additions & 0 deletions
20
...in/app/revanced/patches/music/misc/microg/fingerprints/CastDynamiteModuleV2Fingerprint.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,20 @@ | ||
package app.revanced.patches.music.misc.microg.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import app.revanced.patcher.fingerprint.method.annotation.DirectPatternScanMethod | ||
import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod | ||
import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility | ||
|
||
@Name("cast-context-fetch-fingerprint") | ||
@MatchingMethod( | ||
"Lmcf;", "c" | ||
) | ||
@DirectPatternScanMethod | ||
@MicroGPatchCompatibility | ||
@Version("0.0.1") | ||
object CastDynamiteModuleV2Fingerprint : MethodFingerprint( | ||
null, null, null, null, | ||
listOf("Failed to load module via V2: ") | ||
) |
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