generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: fix high battery consumption due to chromecast not working with…
… `microg`
- Loading branch information
Showing
4 changed files
with
84 additions
and
8 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
20 changes: 20 additions & 0 deletions
20
...n/kotlin/app/revanced/patches/youtube/misc/microg/signatures/CastContextFetchSignature.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.youtube.misc.microg.signatures | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.signature.implementation.method.MethodSignature | ||
import app.revanced.patcher.signature.implementation.method.annotation.DirectPatternScanMethod | ||
import app.revanced.patcher.signature.implementation.method.annotation.MatchingMethod | ||
import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility | ||
|
||
@Name("cast-context-fetch-signature") | ||
@MatchingMethod( | ||
"Lvvz;", "a" | ||
) | ||
@DirectPatternScanMethod | ||
@MicroGPatchCompatibility | ||
@Version("0.0.1") | ||
object CastContextFetchSignature : MethodSignature( | ||
null, null, null, null, | ||
listOf("Error fetching CastContext.") | ||
) |
20 changes: 20 additions & 0 deletions
20
...kotlin/app/revanced/patches/youtube/misc/microg/signatures/CastDynamiteModuleSignature.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.youtube.misc.microg.signatures | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.signature.implementation.method.MethodSignature | ||
import app.revanced.patcher.signature.implementation.method.annotation.DirectPatternScanMethod | ||
import app.revanced.patcher.signature.implementation.method.annotation.MatchingMethod | ||
import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility | ||
|
||
@Name("cast-module-signature") | ||
@MatchingMethod( | ||
"Llqh;", "c" | ||
) | ||
@DirectPatternScanMethod | ||
@MicroGPatchCompatibility | ||
@Version("0.0.1") | ||
object CastDynamiteModuleSignature : MethodSignature( | ||
null, null, null, null, | ||
listOf("com.google.android.gms.cast.framework.internal.CastDynamiteModuleImpl") | ||
) |
20 changes: 20 additions & 0 deletions
20
...tlin/app/revanced/patches/youtube/misc/microg/signatures/CastDynamiteModuleV2Signature.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.youtube.misc.microg.signatures | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.signature.implementation.method.MethodSignature | ||
import app.revanced.patcher.signature.implementation.method.annotation.DirectPatternScanMethod | ||
import app.revanced.patcher.signature.implementation.method.annotation.MatchingMethod | ||
import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility | ||
|
||
@Name("cast-context-fetch-signature") | ||
@MatchingMethod( | ||
"Lmcf;", "c" | ||
) | ||
@DirectPatternScanMethod | ||
@MicroGPatchCompatibility | ||
@Version("0.0.1") | ||
object CastDynamiteModuleV2Signature : MethodSignature( | ||
null, null, null, null, | ||
listOf("Failed to load module via V2: ") | ||
) |