From a0dcea3a13f68cae449dfaf445b542e339c83ff0 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Thu, 14 Apr 2022 19:58:24 +0200 Subject: [PATCH] fix: modified opcode for `show-video-ads-constructor` Modified in latest(?) version of the app. --- src/main/kotlin/app/revanced/patches/ad/VideoAdsPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/ad/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/ad/VideoAdsPatch.kt index 5a429ac37..b1afaf374 100644 --- a/src/main/kotlin/app/revanced/patches/ad/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/ad/VideoAdsPatch.kt @@ -35,7 +35,7 @@ class VideoAdsPatch : Patch( """Signature for the constructor of some class. This signature is being used to find another method in the parent class and was discovered in the YouTube version v17.03.38""".trimIndent(), - "0.0.1" + "0.0.2" ), "V", AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR, @@ -46,7 +46,7 @@ class VideoAdsPatch : Patch( Opcode.INVOKE_DIRECT, Opcode.IPUT_OBJECT, Opcode.NEW_INSTANCE, - Opcode.CONST_4, + null, // either CONST_4 or CONST_16 Opcode.INVOKE_DIRECT, Opcode.IPUT_OBJECT, Opcode.NEW_INSTANCE,