Skip to content

Commit a938e73

Browse files
feat(YouTube): Support versions 18.48.39, 18.49.37 and 19.01.34 (ReVanced#2551)
Co-authored-by: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
1 parent 57908db commit a938e73

File tree

71 files changed

+362
-260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+362
-260
lines changed

src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
2424
],
2525
compatiblePackages = [
2626
CompatiblePackage(
27-
"com.google.android.youtube",
28-
[
27+
"com.google.android.youtube", [
2928
"18.32.39",
3029
"18.37.36",
3130
"18.38.44",
3231
"18.43.45",
3332
"18.44.41",
34-
"18.45.41",
35-
"18.45.43"
33+
"18.45.43",
34+
"18.48.39",
35+
"18.49.37",
36+
"19.01.34"
3637
]
3738
)
3839
]

src/main/kotlin/app/revanced/patches/youtube/ad/getpremium/HideGetPremiumPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
2525
"18.38.44",
2626
"18.43.45",
2727
"18.44.41",
28-
"18.45.41",
29-
"18.45.43"
28+
"18.45.43",
29+
"18.48.39",
30+
"18.49.37",
31+
"19.01.34"
3032
]
3133
)
3234
]

src/main/kotlin/app/revanced/patches/youtube/ad/video/VideoAdsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
2929
"18.38.44",
3030
"18.43.45",
3131
"18.44.41",
32-
"18.45.41",
33-
"18.45.43"
32+
"18.45.43",
33+
"18.48.39",
34+
"18.49.37",
35+
"19.01.34"
3436
]
3537
)
3638
]

src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/CopyVideoUrlBytecodePatch.kt

+4-9
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,10 @@ import app.revanced.patches.youtube.video.information.VideoInformationPatch
1717
],
1818
compatiblePackages = [
1919
CompatiblePackage(
20-
"com.google.android.youtube",
21-
[
22-
"18.32.39",
23-
"18.37.36",
24-
"18.38.44",
25-
"18.43.45",
26-
"18.44.41",
27-
"18.45.41",
28-
"18.45.43"
20+
"com.google.android.youtube", [
21+
"18.48.39",
22+
"18.49.37",
23+
"19.01.34"
2924
]
3025
)
3126
]

src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/ExternalDownloadsBytecodePatch.kt

+4-9
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,10 @@ import app.revanced.patches.youtube.video.information.VideoInformationPatch
1717
],
1818
compatiblePackages = [
1919
CompatiblePackage(
20-
"com.google.android.youtube",
21-
[
22-
"18.32.39",
23-
"18.37.36",
24-
"18.38.44",
25-
"18.43.45",
26-
"18.44.41",
27-
"18.45.41",
28-
"18.45.43"
20+
"com.google.android.youtube", [
21+
"18.48.39",
22+
"18.49.37",
23+
"19.01.34"
2924
]
3025
),
3126
]

src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/DisablePreciseSeekingGesturePatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
2727
"18.38.44",
2828
"18.43.45",
2929
"18.44.41",
30-
"18.45.41",
31-
"18.45.43"
30+
"18.45.43",
31+
"18.48.39",
32+
"18.49.37",
33+
"19.01.34"
3234
]
3335
)
3436
]

src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/EnableSeekbarTappingPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
2929
[
3030
"18.43.45",
3131
"18.44.41",
32-
"18.45.41",
33-
"18.45.43"
32+
"18.45.43",
33+
"18.48.39",
34+
"18.49.37",
35+
"19.01.34"
3436
]
3537
)
3638
]

src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/EnableSlideToSeekPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
2525
[
2626
"18.43.45",
2727
"18.44.41",
28-
"18.45.41",
29-
"18.45.43"
28+
"18.45.43",
29+
"18.48.39",
30+
"18.49.37",
31+
"19.01.34"
3032
]
3133
)
3234
],

src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsBytecodePatch.kt

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package app.revanced.patches.youtube.interaction.swipecontrols
22

3-
import app.revanced.util.transformMethods
4-
import app.revanced.util.traverseClassHierarchy
53
import app.revanced.patcher.data.BytecodeContext
64
import app.revanced.patcher.patch.BytecodePatch
75
import app.revanced.patcher.patch.annotation.CompatiblePackage
@@ -10,7 +8,9 @@ import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMu
108
import app.revanced.patches.youtube.interaction.swipecontrols.fingerprints.SwipeControlsHostActivityFingerprint
119
import app.revanced.patches.youtube.misc.integrations.IntegrationsPatch
1210
import app.revanced.patches.youtube.misc.playertype.PlayerTypeHookPatch
13-
import app.revanced.patches.youtube.shared.fingerprints.WatchWhileActivityFingerprint
11+
import app.revanced.patches.youtube.shared.fingerprints.MainActivityFingerprint
12+
import app.revanced.util.transformMethods
13+
import app.revanced.util.traverseClassHierarchy
1414
import com.android.tools.smali.dexlib2.AccessFlags
1515
import com.android.tools.smali.dexlib2.immutable.ImmutableMethod
1616

@@ -31,28 +31,30 @@ import com.android.tools.smali.dexlib2.immutable.ImmutableMethod
3131
"18.38.44",
3232
"18.43.45",
3333
"18.44.41",
34-
"18.45.41",
35-
"18.45.43"
34+
"18.45.43",
35+
"18.48.39",
36+
"18.49.37",
37+
"19.01.34"
3638
]
3739
)
3840
]
3941
)
4042
@Suppress("unused")
4143
object SwipeControlsBytecodePatch : BytecodePatch(
4244
setOf(
43-
WatchWhileActivityFingerprint,
45+
MainActivityFingerprint,
4446
SwipeControlsHostActivityFingerprint
4547
)
4648
) {
4749
override fun execute(context: BytecodeContext) {
4850
val wrapperClass = SwipeControlsHostActivityFingerprint.result!!.mutableClass
49-
val targetClass = WatchWhileActivityFingerprint.result!!.mutableClass
51+
val targetClass = MainActivityFingerprint.result!!.mutableClass
5052

51-
// inject the wrapper class from integrations into the class hierarchy of WatchWhileActivity
53+
// Inject the wrapper class from integrations into the class hierarchy of MainActivity.
5254
wrapperClass.setSuperClass(targetClass.superclass)
5355
targetClass.setSuperClass(wrapperClass.type)
5456

55-
// ensure all classes and methods in the hierarchy are non-final, so we can override them in integrations
57+
// Ensure all classes and methods in the hierarchy are non-final, so we can override them in integrations.
5658
context.traverseClassHierarchy(targetClass) {
5759
accessFlags = accessFlags and AccessFlags.FINAL.value.inv()
5860
transformMethods {

src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/AutoCaptionsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
2929
"18.38.44",
3030
"18.43.45",
3131
"18.44.41",
32-
"18.45.41",
33-
"18.45.43"
32+
"18.45.43",
33+
"18.48.39",
34+
"18.49.37",
35+
"19.01.34"
3436
]
3537
)
3638
],

src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/HideButtonsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
2727
"18.38.44",
2828
"18.43.45",
2929
"18.44.41",
30-
"18.45.41",
31-
"18.45.43"
30+
"18.45.43",
31+
"18.48.39",
32+
"18.49.37",
33+
"19.01.34"
3234
]
3335
)
3436
]

src/main/kotlin/app/revanced/patches/youtube/layout/buttons/autoplay/HideAutoplayButtonPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
3737
"18.38.44",
3838
"18.43.45",
3939
"18.44.41",
40-
"18.45.41",
41-
"18.45.43"
40+
"18.45.43",
41+
"18.48.39",
42+
"18.49.37",
43+
"19.01.34"
4244
]
4345
)
4446
]

src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/HideCaptionsButtonPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ import com.android.tools.smali.dexlib2.Opcode
2828
"18.38.44",
2929
"18.43.45",
3030
"18.44.41",
31-
"18.45.41",
32-
"18.45.43"
31+
"18.45.43",
32+
"18.48.39",
33+
"18.49.37",
34+
"19.01.34"
3335
]
3436
)
3537
]

src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/NavigationButtonsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
3434
"18.38.44",
3535
"18.43.45",
3636
"18.44.41",
37-
"18.45.41",
38-
"18.45.43"
37+
"18.45.43",
38+
"18.48.39",
39+
"18.49.37",
40+
"19.01.34"
3941
]
4042
)
4143
]

src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/HidePlayerButtonsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction3rc
3232
"18.38.44",
3333
"18.43.45",
3434
"18.44.41",
35-
"18.45.41",
36-
"18.45.43"
35+
"18.45.43",
36+
"18.48.39",
37+
"18.49.37",
38+
"19.01.34"
3739
]
3840
)
3941
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/albumcards/AlbumCardsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
2727
"18.38.44",
2828
"18.43.45",
2929
"18.44.41",
30-
"18.45.41",
31-
"18.45.43"
30+
"18.45.43",
31+
"18.48.39",
32+
"18.49.37",
33+
"19.01.34"
3234
]
3335
)
3436
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/breakingnews/BreakingNewsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
2727
"18.38.44",
2828
"18.43.45",
2929
"18.44.41",
30-
"18.45.41",
31-
"18.45.43"
30+
"18.45.43",
31+
"18.48.39",
32+
"18.49.37",
33+
"19.01.34"
3234
]
3335
)
3436
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
2626
"18.38.44",
2727
"18.43.45",
2828
"18.44.41",
29-
"18.45.41",
30-
"18.45.43"
29+
"18.45.43",
30+
"18.48.39",
31+
"18.49.37",
32+
"19.01.34"
3133
]
3234
)
3335
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/crowdfundingbox/CrowdfundingBoxPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
2727
"18.38.44",
2828
"18.43.45",
2929
"18.44.41",
30-
"18.45.41",
31-
"18.45.43"
30+
"18.45.43",
31+
"18.48.39",
32+
"18.49.37",
33+
"19.01.34"
3234
]
3335
)
3436
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndscreenCardsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction21c
3030
"18.38.44",
3131
"18.43.45",
3232
"18.44.41",
33-
"18.45.41",
34-
"18.45.43"
33+
"18.45.43",
34+
"18.48.39",
35+
"18.49.37",
36+
"19.01.34"
3537
]
3638
)
3739
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/HideFilterBarPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
2727
"18.38.44",
2828
"18.43.45",
2929
"18.44.41",
30-
"18.45.41",
31-
"18.45.43"
30+
"18.45.43",
31+
"18.48.39",
32+
"18.49.37",
33+
"19.01.34"
3234
]
3335
)
3436
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/HideFloatingMicrophoneButtonPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
2323
"18.38.44",
2424
"18.43.45",
2525
"18.44.41",
26-
"18.45.41",
27-
"18.45.43"
26+
"18.45.43",
27+
"18.48.39",
28+
"18.49.37",
29+
"19.01.34"
2830
]
2931
)
3032
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/fullscreenambientmode/DisableFullscreenAmbientModePatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
2323
"18.38.44",
2424
"18.43.45",
2525
"18.44.41",
26-
"18.45.41",
27-
"18.45.43"
26+
"18.45.43",
27+
"18.48.39",
28+
"18.49.37",
29+
"19.01.34"
2830
]
2931
)
3032
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
3737
"18.38.44",
3838
"18.43.45",
3939
"18.44.41",
40-
"18.45.41",
41-
"18.45.43"
40+
"18.45.43",
41+
"18.48.39",
42+
"18.49.37",
43+
"19.01.34"
4244
]
4345
)
4446
]

src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/HideInfoCardsPatch.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
3434
"18.38.44",
3535
"18.43.45",
3636
"18.44.41",
37-
"18.45.41",
38-
"18.45.43"
37+
"18.45.43",
38+
"18.48.39",
39+
"18.49.37",
40+
"19.01.34"
3941
]
4042
)
4143
]

0 commit comments

Comments
 (0)