mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-04 11:12:57 +01:00
fix(youtube/spoof-signature-verification): use correct fingerprint
This commit is contained in:
parent
79589a3c8d
commit
13090eeb47
@ -5,27 +5,9 @@ import org.jf.dexlib2.Opcode
|
|||||||
|
|
||||||
object ProtobufParameterBuilderFingerprint : MethodFingerprint(
|
object ProtobufParameterBuilderFingerprint : MethodFingerprint(
|
||||||
opcodes = listOf(
|
opcodes = listOf(
|
||||||
Opcode.MOVE_RESULT,
|
Opcode.INVOKE_VIRTUAL_RANGE,
|
||||||
Opcode.CONST_16,
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
Opcode.MOVE_FROM16,
|
Opcode.IPUT_OBJECT
|
||||||
Opcode.MOVE_OBJECT_FROM16,
|
|
||||||
Opcode.MOVE_OBJECT_FROM16,
|
|
||||||
Opcode.MOVE_OBJECT,
|
|
||||||
Opcode.MOVE_FROM16,
|
|
||||||
Opcode.MOVE_OBJECT_FROM16,
|
|
||||||
Opcode.MOVE_FROM16,
|
|
||||||
Opcode.MOVE_OBJECT_FROM16,
|
|
||||||
Opcode.MOVE_OBJECT_FROM16,
|
|
||||||
Opcode.MOVE_OBJECT_FROM16,
|
|
||||||
Opcode.MOVE_FROM16,
|
|
||||||
Opcode.MOVE_FROM16,
|
|
||||||
Opcode.MOVE_FROM16,
|
|
||||||
Opcode.INVOKE_VIRTUAL_RANGE, // target reference
|
|
||||||
// Opcode.MOVE_RESULT_OBJECT,
|
|
||||||
// Opcode.IPUT_OBJECT
|
|
||||||
),
|
),
|
||||||
strings = listOf(
|
strings = listOf("Unexpected empty videoId.", "Prefetch request are disabled.")
|
||||||
"Prefetch request are disabled.",
|
|
||||||
"Unexpected empty videoId.",
|
|
||||||
)
|
|
||||||
)
|
)
|
@ -29,7 +29,7 @@ class SpoofSignatureVerificationPatch : BytecodePatch(
|
|||||||
ProtobufParameterBuilderFingerprint.result?.let {
|
ProtobufParameterBuilderFingerprint.result?.let {
|
||||||
val setParamMethod = context
|
val setParamMethod = context
|
||||||
.toMethodWalker(it.method)
|
.toMethodWalker(it.method)
|
||||||
.nextMethod(it.scanResult.patternScanResult!!.endIndex, true).getMethod() as MutableMethod
|
.nextMethod(it.scanResult.patternScanResult!!.startIndex, true).getMethod() as MutableMethod
|
||||||
|
|
||||||
setParamMethod.apply {
|
setParamMethod.apply {
|
||||||
val protobufParameterRegister = 3
|
val protobufParameterRegister = 3
|
||||||
|
Loading…
Reference in New Issue
Block a user