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.
feat(YouTube): Support version
18.29.38
- Loading branch information
Showing
32 changed files
with
217 additions
and
337 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/main/kotlin/app/revanced/patches/shared/fingerprints/LayoutConstructorFingerprint.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,12 @@ | ||
package app.revanced.patches.shared.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
object LayoutConstructorFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
parameters = emptyList(), | ||
strings = listOf("1.0x") | ||
) |
12 changes: 0 additions & 12 deletions
12
...es/youtube/interaction/seekbar/fingerprints/AccessibilityPlayerProgressTimeFingerprint.kt
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...vanced/patches/youtube/interaction/seekbar/fingerprints/OnTouchEventHandlerFingerprint.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,32 @@ | ||
package app.revanced.patches.youtube.interaction.seekbar.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
@FuzzyPatternScanMethod(3) | ||
object OnTouchEventHandlerFingerprint : MethodFingerprint( | ||
returnType = "Z", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.PUBLIC, | ||
parameters = listOf("L"), | ||
opcodes = listOf( | ||
Opcode.INVOKE_VIRTUAL, // oMethodReference | ||
Opcode.RETURN, | ||
Opcode.IGET_OBJECT, | ||
Opcode.IGET_BOOLEAN, | ||
Opcode.IF_EQZ, | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.RETURN, | ||
Opcode.INT_TO_FLOAT, | ||
Opcode.INT_TO_FLOAT, | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.MOVE_RESULT, | ||
Opcode.IF_NEZ, | ||
Opcode.RETURN, | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.INVOKE_VIRTUAL, // pMethodReference | ||
), | ||
customFingerprint = { methodDef, _ -> methodDef.name == "onTouchEvent" } | ||
) |
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
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
10 changes: 0 additions & 10 deletions
10
...nced/patches/youtube/layout/buttons/autoplay/fingerprints/LayoutConstructorFingerprint.kt
This file was deleted.
Oops, something went wrong.
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
7 changes: 1 addition & 6 deletions
7
...youtube/layout/hide/loadmorebutton/bytecode/fingerprints/HideLoadMoreButtonFingerprint.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
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
30 changes: 13 additions & 17 deletions
30
...tlin/app/revanced/patches/youtube/layout/hide/time/fingerprints/TimeCounterFingerprint.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 |
---|---|---|
@@ -1,28 +1,24 @@ | ||
package app.revanced.patches.youtube.layout.hide.time.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
@FuzzyPatternScanMethod(1) | ||
object TimeCounterFingerprint : MethodFingerprint( | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
parameters = listOf(), | ||
returnType = "V", | ||
opcodes = listOf( | ||
Opcode.SUB_LONG_2ADDR, | ||
Opcode.INVOKE_STATIC, | ||
Opcode.MOVE_RESULT_OBJECT, | ||
"V", AccessFlags.PUBLIC or AccessFlags.FINAL, listOf(), listOf( | ||
Opcode.IGET_OBJECT, | ||
Opcode.IGET_WIDE, | ||
Opcode.INVOKE_STATIC, | ||
Opcode.MOVE_RESULT_OBJECT, | ||
Opcode.INVOKE_INTERFACE, | ||
Opcode.RETURN_VOID, | ||
), | ||
customFingerprint = { _, classDef -> | ||
// On older devices this fingerprint resolves very slowly. | ||
// Speed this up by checking for the number of methods. | ||
classDef.methods.count() == 14 | ||
} | ||
Opcode.CONST_WIDE_16, | ||
Opcode.CMP_LONG, | ||
Opcode.IF_LEZ, | ||
Opcode.IGET_OBJECT, | ||
Opcode.IF_EQZ, | ||
Opcode.INVOKE_VIRTUAL, | ||
Opcode.MOVE_RESULT, | ||
Opcode.IF_EQZ, | ||
Opcode.GOTO, | ||
) | ||
) |
8 changes: 0 additions & 8 deletions
8
...ches/youtube/layout/panels/fullscreen/remove/annotations/FullscreenPanelsCompatibility.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...es/youtube/layout/panels/fullscreen/remove/fingerprints/FullscreenViewAdderFingerprint.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 |
---|---|---|
@@ -1,11 +0,0 @@ | ||
package app.revanced.patches.youtube.layout.panels.fullscreen.remove.fingerprints | ||
|
||
|
||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
object FullscreenViewAdderFingerprint : MethodFingerprint( | ||
opcodes = listOf( | ||
Opcode.IGET_BOOLEAN | ||
) | ||
) | ||
20 changes: 0 additions & 20 deletions
20
...tube/layout/panels/fullscreen/remove/fingerprints/FullscreenViewAdderParentFingerprint.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 |
---|---|---|
@@ -1,20 +0,0 @@ | ||
package app.revanced.patches.youtube.layout.panels.fullscreen.remove.fingerprints | ||
|
||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import com.android.tools.smali.dexlib2.Opcode | ||
|
||
object FullscreenViewAdderParentFingerprint : MethodFingerprint( | ||
returnType = "V", | ||
parameters = listOf("Landroid/content/Context;", "Landroid/view/View;"), | ||
opcodes = listOf( | ||
Opcode.GOTO, | ||
Opcode.IGET_BOOLEAN, | ||
Opcode.IF_EQ, | ||
Opcode.GOTO, | ||
Opcode.CONST_4, | ||
Opcode.INVOKE_VIRTUAL, | ||
), | ||
customFingerprint = { methodDef, _ -> | ||
methodDef.definingClass.endsWith("FullscreenEngagementPanelOverlay;") | ||
} | ||
) | ||
Oops, something went wrong.