forked from inotia00/revanced-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
minimized-playback
patch for YouTube Kids videos (ReVanced#201)
- Loading branch information
Showing
3 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...patches/youtube/layout/minimizedplayback/fingerprints/MinimizedPlaybackKidsFingerprint.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,34 @@ | ||
package app.revanced.patches.youtube.layout.minimizedplayback.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import app.revanced.patches.youtube.layout.minimizedplayback.annotations.MinimizedPlaybackCompatibility | ||
import org.jf.dexlib2.AccessFlags | ||
import org.jf.dexlib2.Opcode | ||
|
||
@Name("minimized-playback-kids-fingerprint") | ||
@MatchingMethod( | ||
"LMinimizedPlaybackPolicyController;", "k" | ||
) | ||
@MinimizedPlaybackCompatibility | ||
@Version("0.0.1") | ||
object MinimizedPlaybackKidsFingerprint : MethodFingerprint( | ||
"V", | ||
AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
listOf("I", "L", "L"), | ||
listOf( | ||
Opcode.IF_EQZ, | ||
Opcode.SGET_OBJECT, | ||
Opcode.IF_NE, | ||
Opcode.CONST_4, | ||
Opcode.IPUT_BOOLEAN, | ||
Opcode.IF_EQZ, | ||
Opcode.IGET, | ||
Opcode.INVOKE_STATIC | ||
), | ||
null, | ||
{ it.definingClass.endsWith("MinimizedPlaybackPolicyController;") } | ||
) |
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
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