From 0a398ef364f91a0dd9608df1a036a2515476ccf2 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Thu, 14 Apr 2022 19:57:00 +0200 Subject: [PATCH] fix: add missing opcode for `create-button-method` Added in latest(?) version of the app. --- .../app/revanced/patches/layout/CreateButtonRemoverPatch.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/layout/CreateButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/layout/CreateButtonRemoverPatch.kt index 0ba0fcc5..00bd1c51 100644 --- a/src/main/kotlin/app/revanced/patches/layout/CreateButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/layout/CreateButtonRemoverPatch.kt @@ -32,7 +32,7 @@ class CreateButtonRemoverPatch : Patch( PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value. compatiblePackages, "Signature for the method required to be patched.", - "0.0.1" + "0.0.2" ), "V", AccessFlags.PUBLIC or AccessFlags.FINAL, @@ -69,6 +69,7 @@ class CreateButtonRemoverPatch : Patch( Opcode.CONST_4, Opcode.INVOKE_VIRTUAL, Opcode.MOVE_RESULT_OBJECT, + Opcode.INVOKE_STATIC, Opcode.MOVE_OBJECT ) )