File tree 2 files changed +5
-4
lines changed
src/main/kotlin/app/revanced/patches/youtube
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
54
54
" 19.02.39" ,
55
55
" 19.03.36" ,
56
56
" 19.04.38" ,
57
- " 19.05.35" ,
58
57
" 19.05.36"
59
58
]
60
59
)
@@ -71,7 +70,7 @@ object ChangeTogglePatch : BytecodePatch(
71
70
)
72
71
) {
73
72
override fun execute (context : BytecodeContext ) {
74
- if (SettingsPatch .upward1841 ) throw PatchException (" This version is not supported. Please use YouTube 19.05.36 or earlier." )
73
+ if (SettingsPatch .upward1905 ) throw PatchException (" This version is not supported. Please use YouTube 19.05.36 or earlier." )
75
74
76
75
val additionalSettingsConfigResult = AdditionalSettingsConfigFingerprint .result
77
76
? : throw AdditionalSettingsConfigFingerprint .exception
@@ -113,7 +112,7 @@ object ChangeTogglePatch : BytecodePatch(
113
112
it.mutableMethod.apply {
114
113
val insertIndex = implementation!! .instructions.indexOfFirst { instruction ->
115
114
instruction.opcode == Opcode .INVOKE_VIRTUAL
116
- && (instruction as ReferenceInstruction ).reference.toString().endsWith(descriptor)
115
+ && (instruction as ReferenceInstruction ).reference.toString().endsWith(descriptor)
117
116
} + 2
118
117
val insertRegister =
119
118
getInstruction<OneRegisterInstruction >(insertIndex - 1 ).registerA
@@ -125,6 +124,6 @@ object ChangeTogglePatch : BytecodePatch(
125
124
"""
126
125
)
127
126
}
128
- } ? : throw PatchException ( " This version is not supported. Please use YouTube 19.05.36 or previous ones. " )
127
+ } ? : throw exception
129
128
}
130
129
}
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ object SettingsPatch : AbstractSettingsResourcePatch(
105
105
upward1841 = 234200000 <= playServicesVersion
106
106
upward1843 = 234400000 <= playServicesVersion
107
107
upward1904 = 240502000 <= playServicesVersion
108
+ upward1905 = 240700000 <= playServicesVersion
108
109
upward1909 = 241002000 > playServicesVersion
109
110
110
111
break
@@ -198,6 +199,7 @@ object SettingsPatch : AbstractSettingsResourcePatch(
198
199
internal var upward1841: Boolean = false
199
200
internal var upward1843: Boolean = false
200
201
internal var upward1904: Boolean = false
202
+ internal var upward1905: Boolean = false
201
203
internal var upward1909: Boolean = false
202
204
203
205
internal fun addPreference (settingArray : Array <String >) {
You can’t perform that action at this time.
0 commit comments