Compare commits

..

2 Commits

Author SHA1 Message Date
semantic-release-bot
8ce648f8a9 chore(release): 2.165.0-dev.11 [skip ci]
# [2.165.0-dev.11](https://github.com/revanced/revanced-patches/compare/v2.165.0-dev.10...v2.165.0-dev.11) (2023-03-14)

### Bug Fixes

* **youtube/spoof-signature-verification:** use correct fingerprint ([88b9acb](88b9acb137))
2023-03-14 12:52:32 +00:00
oSumAtrIX
88b9acb137 fix(youtube/spoof-signature-verification): use correct fingerprint 2023-03-14 13:50:52 +01:00
4 changed files with 13 additions and 24 deletions

View File

@@ -1,3 +1,10 @@
# [2.165.0-dev.11](https://github.com/revanced/revanced-patches/compare/v2.165.0-dev.10...v2.165.0-dev.11) (2023-03-14)
### Bug Fixes
* **youtube/spoof-signature-verification:** use correct fingerprint ([b299074](https://github.com/revanced/revanced-patches/commit/b299074ce2decd6afd81462f96f33a95200f9b86))
# [2.165.0-dev.10](https://github.com/revanced/revanced-patches/compare/v2.165.0-dev.9...v2.165.0-dev.10) (2023-03-14)

View File

@@ -1,2 +1,2 @@
kotlin.code.style = official
version = 2.165.0-dev.10
version = 2.165.0-dev.11

View File

@@ -5,27 +5,9 @@ import org.jf.dexlib2.Opcode
object ProtobufParameterBuilderFingerprint : MethodFingerprint(
opcodes = listOf(
Opcode.MOVE_RESULT,
Opcode.CONST_16,
Opcode.MOVE_FROM16,
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
Opcode.INVOKE_VIRTUAL_RANGE,
Opcode.MOVE_RESULT_OBJECT,
Opcode.IPUT_OBJECT
),
strings = listOf(
"Prefetch request are disabled.",
"Unexpected empty videoId.",
)
strings = listOf("Unexpected empty videoId.", "Prefetch request are disabled.")
)

View File

@@ -29,7 +29,7 @@ class SpoofSignatureVerificationPatch : BytecodePatch(
ProtobufParameterBuilderFingerprint.result?.let {
val setParamMethod = context
.toMethodWalker(it.method)
.nextMethod(it.scanResult.patternScanResult!!.endIndex, true).getMethod() as MutableMethod
.nextMethod(it.scanResult.patternScanResult!!.startIndex, true).getMethod() as MutableMethod
setParamMethod.apply {
val protobufParameterRegister = 3