Skip to content

Commit

Permalink
feat(YouTube): Support versions 19.17 thru 19.30
Browse files Browse the repository at this point in the history
  • Loading branch information
E85Addict committed Sep 9, 2024
1 parent 532169d commit a69c4f3
Show file tree
Hide file tree
Showing 85 changed files with 1,199 additions and 204 deletions.
1 change: 1 addition & 0 deletions api/revanced-patches.api
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,7 @@ public final class app/revanced/util/BytecodeUtilsKt {
public static final fun containsWideLiteralInstructionValue (Lcom/android/tools/smali/dexlib2/iface/Method;J)Z
public static final fun findMutableMethodOf (Lapp/revanced/patcher/util/proxy/mutableTypes/MutableClass;Lcom/android/tools/smali/dexlib2/iface/Method;)Lapp/revanced/patcher/util/proxy/mutableTypes/MutableMethod;
public static final fun findOpcodeIndicesReversed (Lcom/android/tools/smali/dexlib2/iface/Method;Lcom/android/tools/smali/dexlib2/Opcode;)Ljava/util/List;
public static final fun findOpcodeIndicesReversed (Lcom/android/tools/smali/dexlib2/iface/Method;Lkotlin/jvm/functions/Function1;)Ljava/util/List;
public static final fun getException (Lapp/revanced/patcher/fingerprint/MethodFingerprint;)Lapp/revanced/patcher/patch/PatchException;
public static final fun indexOfFirstInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;ILkotlin/jvm/functions/Function1;)I
public static final fun indexOfFirstInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;Lkotlin/jvm/functions/Function1;)I
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ import app.revanced.patches.youtube.video.information.VideoInformationPatch
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ import app.revanced.util.resultOrThrow
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand All @@ -66,7 +79,7 @@ object DisablePreciseSeekingGesturePatch : BytecodePatch(
)

IsSwipingUpFingerprint.result?.let {
val addMovementIndex = it.scanResult.patternScanResult!!.startIndex - 1
val addMovementIndex = it.scanResult.patternScanResult!!.endIndex

it.mutableMethod.apply {
val addMovementInstruction = getInstruction<FiveRegisterInstruction>(addMovementIndex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"19.14.43",
"19.15.36",
"19.16.39",
// 19.17.41 is the last version with the target code.
]
)
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ internal object IsSwipingUpFingerprint : MethodFingerprint(
returnType = "Z",
parameters = listOf("Landroid/view/MotionEvent;", "J"),
opcodes = listOf(
Opcode.SGET_OBJECT,
Opcode.IGET_OBJECT
Opcode.CONST_4,
Opcode.IGET_OBJECT,
Opcode.IF_EQZ,
Opcode.INVOKE_VIRTUAL
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ import com.android.tools.smali.dexlib2.immutable.ImmutableMethod
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ import app.revanced.util.exception
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ import com.android.tools.smali.dexlib2.Opcode
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction3rc
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"19.14.43",
"19.15.36",
"19.16.39",
"19.17.41",
"19.18.41",
"19.19.39",
"19.20.35",
"19.21.40",
"19.22.43",
"19.23.40",
"19.24.45",
"19.25.37",
"19.26.42",
"19.28.42",
"19.29.42",
"19.30.39",
]
)
]
Expand Down
Loading

0 comments on commit a69c4f3

Please sign in to comment.