mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-29 11:55:51 +01:00
feat(YouTube - Seekbar tapping): Support version 18.43.45
This commit is contained in:
parent
c5236f812e
commit
eee51a863a
@ -27,14 +27,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
|||||||
CompatiblePackage(
|
CompatiblePackage(
|
||||||
"com.google.android.youtube",
|
"com.google.android.youtube",
|
||||||
[
|
[
|
||||||
"18.16.37",
|
"18.43.45"
|
||||||
"18.19.35",
|
|
||||||
"18.20.39",
|
|
||||||
"18.23.35",
|
|
||||||
"18.29.38",
|
|
||||||
"18.32.39",
|
|
||||||
"18.37.36",
|
|
||||||
"18.38.44"
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
@ -64,8 +57,8 @@ object EnableSeekbarTappingPatch : BytecodePatch(
|
|||||||
.reference as MethodReference
|
.reference as MethodReference
|
||||||
|
|
||||||
buildMap {
|
buildMap {
|
||||||
put("O", getReference(patternScanResult.endIndex))
|
|
||||||
put("N", getReference(patternScanResult.startIndex))
|
put("N", getReference(patternScanResult.startIndex))
|
||||||
|
put("O", getReference(patternScanResult.endIndex))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,10 @@ import app.revanced.patcher.fingerprint.MethodFingerprint
|
|||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
|
|
||||||
object IsSwipingUpFingerprint : MethodFingerprint(
|
object IsSwipingUpFingerprint : MethodFingerprint(
|
||||||
|
returnType = "Z",
|
||||||
parameters = listOf("Landroid/view/MotionEvent;", "J"),
|
parameters = listOf("Landroid/view/MotionEvent;", "J"),
|
||||||
opcodes = listOf(Opcode.SGET_OBJECT)
|
opcodes = listOf(
|
||||||
|
Opcode.SGET_OBJECT,
|
||||||
|
Opcode.IGET_OBJECT
|
||||||
|
)
|
||||||
)
|
)
|
@ -1,8 +1,8 @@
|
|||||||
package app.revanced.patches.youtube.interaction.seekbar.fingerprints
|
package app.revanced.patches.youtube.interaction.seekbar.fingerprints
|
||||||
|
|
||||||
import app.revanced.patcher.extensions.or
|
import app.revanced.patcher.extensions.or
|
||||||
import app.revanced.patcher.fingerprint.annotation.FuzzyPatternScanMethod
|
|
||||||
import app.revanced.patcher.fingerprint.MethodFingerprint
|
import app.revanced.patcher.fingerprint.MethodFingerprint
|
||||||
|
import app.revanced.patcher.fingerprint.annotation.FuzzyPatternScanMethod
|
||||||
import com.android.tools.smali.dexlib2.AccessFlags
|
import com.android.tools.smali.dexlib2.AccessFlags
|
||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ object OnTouchEventHandlerFingerprint : MethodFingerprint(
|
|||||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.PUBLIC,
|
accessFlags = AccessFlags.PUBLIC or AccessFlags.PUBLIC,
|
||||||
parameters = listOf("L"),
|
parameters = listOf("L"),
|
||||||
opcodes = listOf(
|
opcodes = listOf(
|
||||||
Opcode.INVOKE_VIRTUAL, // oMethodReference
|
Opcode.INVOKE_VIRTUAL, // nMethodReference
|
||||||
Opcode.RETURN,
|
Opcode.RETURN,
|
||||||
Opcode.IGET_OBJECT,
|
Opcode.IGET_OBJECT,
|
||||||
Opcode.IGET_BOOLEAN,
|
Opcode.IGET_BOOLEAN,
|
||||||
@ -23,10 +23,9 @@ object OnTouchEventHandlerFingerprint : MethodFingerprint(
|
|||||||
Opcode.INT_TO_FLOAT,
|
Opcode.INT_TO_FLOAT,
|
||||||
Opcode.INVOKE_VIRTUAL,
|
Opcode.INVOKE_VIRTUAL,
|
||||||
Opcode.MOVE_RESULT,
|
Opcode.MOVE_RESULT,
|
||||||
Opcode.IF_NEZ,
|
Opcode.IF_EQZ,
|
||||||
Opcode.RETURN,
|
|
||||||
Opcode.INVOKE_VIRTUAL,
|
Opcode.INVOKE_VIRTUAL,
|
||||||
Opcode.INVOKE_VIRTUAL, // pMethodReference
|
Opcode.INVOKE_VIRTUAL, // oMethodReference
|
||||||
),
|
),
|
||||||
customFingerprint = { methodDef, _ -> methodDef.name == "onTouchEvent" }
|
customFingerprint = { methodDef, _ -> methodDef.name == "onTouchEvent" }
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user