mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
fix(Soundcloud - Hide ads): Support latest version (#3628)
Co-authored-by: FullerBread2032 <admin@fullerbread2032.tk>
This commit is contained in:
parent
ff8d20f98f
commit
66e7e33efc
2 changed files with 5 additions and 6 deletions
|
@ -62,7 +62,7 @@ object HideAdsPatch : BytecodePatch(
|
||||||
|
|
||||||
// Prevent verification of an HTTP header containing the user's current plan, which would contradict the previous patch.
|
// Prevent verification of an HTTP header containing the user's current plan, which would contradict the previous patch.
|
||||||
InterceptFingerprint.resultOrThrow().let { result ->
|
InterceptFingerprint.resultOrThrow().let { result ->
|
||||||
val conditionIndex = result.scanResult.patternScanResult!!.endIndex
|
val conditionIndex = result.scanResult.patternScanResult!!.endIndex + 1
|
||||||
result.mutableMethod.addInstruction(
|
result.mutableMethod.addInstruction(
|
||||||
conditionIndex,
|
conditionIndex,
|
||||||
"return-object p1",
|
"return-object p1",
|
||||||
|
|
|
@ -9,14 +9,13 @@ internal object InterceptFingerprint : MethodFingerprint(
|
||||||
accessFlags = AccessFlags.PUBLIC.value,
|
accessFlags = AccessFlags.PUBLIC.value,
|
||||||
parameters = listOf("L"),
|
parameters = listOf("L"),
|
||||||
opcodes = listOf(
|
opcodes = listOf(
|
||||||
Opcode.INVOKE_INTERFACE,
|
|
||||||
Opcode.MOVE_RESULT_OBJECT,
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
Opcode.INVOKE_VIRTUAL,
|
Opcode.INVOKE_INTERFACE,
|
||||||
Opcode.MOVE_RESULT,
|
Opcode.MOVE_RESULT_OBJECT
|
||||||
Opcode.IF_EQZ,
|
|
||||||
),
|
),
|
||||||
strings = listOf("SC-Mob-UserPlan", "Configuration"),
|
strings = listOf("SC-Mob-UserPlan", "Configuration"),
|
||||||
customFingerprint = { _, classDef ->
|
customFingerprint = { _, classDef ->
|
||||||
classDef.sourceFile == "ApiUserPlanInterceptor.java"
|
classDef.sourceFile == "ApiUserPlanInterceptor.java" ||
|
||||||
|
classDef.sourceFile == "ApiUserPlanInterceptor.kt"
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue