fix: update patches

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX
2022-05-07 17:50:22 +02:00
parent 0f1a08ed84
commit 91b8ec81f3
11 changed files with 28 additions and 40 deletions

View File

@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
private val compatiblePackages = listOf(
PackageMetadata(
"com.google.android.youtube",
listOf("17.14.35")
listOf("17.14.35", "17.17.34")
)
)
@ -36,7 +36,7 @@ class CreateButtonRemoverPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"create-button-method",
MethodMetadata(null, null), // unknown
MethodMetadata("Lkne", "z"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature for the method required to be patched.",

View File

@ -18,7 +18,7 @@ import org.jf.dexlib2.Opcode
private val compatiblePackages = listOf(
PackageMetadata(
"com.google.android.youtube",
listOf("17.14.35")
listOf("17.17.34")
)
)
@ -34,7 +34,7 @@ class HideReelsPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"hide-reels-signature",
MethodMetadata(null, null), // unknown
MethodMetadata("Ljvy", "<init>"), // unknown
PatternScanMethod.Fuzzy(3), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature for the method required to be patched.",
@ -59,7 +59,6 @@ class HideReelsPatch : BytecodePatch(
"[B",
"[B",
"[B",
"[B",
"[B"
),
listOf(

View File

@ -19,7 +19,7 @@ import org.jf.dexlib2.Opcode
private val compatiblePackages = listOf(
PackageMetadata(
"com.google.android.youtube",
listOf("17.14.35")
listOf("17.14.35", "17.17.34")
)
)
@ -35,7 +35,7 @@ class MinimizedPlaybackPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"minimized-playback-manager",
MethodMetadata(null, null), // unknown
MethodMetadata("Lype", "j"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature for the method required to be patched.",

View File

@ -21,7 +21,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
private val compatiblePackages = listOf(
PackageMetadata(
"com.google.android.youtube",
listOf("17.14.35")
listOf("17.17.34")
)
)
@ -37,7 +37,7 @@ class OldQualityLayoutPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"old-quality-parent-method-signature",
MethodMetadata(null, null), // unknown
MethodMetadata("Libh", "<init>"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature to find a parent method required by the Old Quality Layout patch.",
@ -45,7 +45,7 @@ class OldQualityLayoutPatch : BytecodePatch(
),
"V",
AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
listOf("L", "L", "L", "L", "L", "L", "L", "[B"),
listOf("L", "L", "L", "L", "L", "L", "L"),
listOf(
Opcode.INVOKE_DIRECT,
Opcode.IPUT_OBJECT,
@ -82,7 +82,7 @@ class OldQualityLayoutPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"old-quality-method-signature",
MethodMetadata(null, null), // unknown
MethodMetadata("Libh", null), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature to find the method required by the Old Quality Layout patch",

View File

@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction11x
private val compatiblePackages = listOf(
PackageMetadata(
"com.google.android.youtube",
listOf("17.14.35")
listOf("17.14.35", "17.17.34")
)
)
@ -35,7 +35,7 @@ class ShortsButtonRemoverPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"pivotbar-buttons-method-tabenum",
MethodMetadata(null, null), // unknown
MethodMetadata("Lkne", "z"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature for the pivotbar method that creates all button views.",
@ -69,7 +69,7 @@ class ShortsButtonRemoverPatch : BytecodePatch(
MethodSignature(
MethodSignatureMetadata(
"pivotbar-buttons-method-view",
MethodMetadata(null, null), // unknown
MethodMetadata("Lkne", "z"), // unknown
PatternScanMethod.Fuzzy(2), // FIXME: Test this threshold and find the best value.
compatiblePackages,
"Signature for the pivotbar method that creates all button views.",