generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(youtube/integrations): set context for remaining activities (#828)
- Loading branch information
Canny
authored
Oct 22, 2022
1 parent
85b609b
commit b2b6a3d
Showing
3 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
.../kotlin/app/revanced/patches/youtube/misc/integrations/fingerprints/ServiceFingerprint.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,13 @@ | ||
package app.revanced.patches.youtube.misc.integrations.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import app.revanced.patches.youtube.misc.integrations.annotations.IntegrationsCompatibility | ||
|
||
@Name("service-fingerprint") | ||
@IntegrationsCompatibility | ||
@Version("0.0.1") | ||
object ServiceFingerprint : MethodFingerprint( | ||
customFingerprint = { methodDef -> methodDef.definingClass.endsWith("ApiPlayerService;") && methodDef.name == "<init>" } | ||
) |
16 changes: 16 additions & 0 deletions
16
...pp/revanced/patches/youtube/misc/integrations/fingerprints/StandalonePlayerFingerprint.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,16 @@ | ||
package app.revanced.patches.youtube.misc.integrations.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import app.revanced.patches.youtube.misc.integrations.annotations.IntegrationsCompatibility | ||
|
||
@Name("standalone-player-fingerprint") | ||
@IntegrationsCompatibility | ||
@Version("0.0.1") | ||
object StandalonePlayerFingerprint : MethodFingerprint( | ||
strings = listOf( | ||
"Invalid PlaybackStartDescriptor. Returning the instance itself.", | ||
"com.google.android.music", | ||
) | ||
) |
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