mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-28 19:05:49 +01:00
fix(Soundcloud): Support latest versions (#3702)
This commit is contained in:
parent
2d203bdab7
commit
099ac5ea2c
@ -14,8 +14,4 @@ internal object InterceptFingerprint : MethodFingerprint(
|
|||||||
Opcode.MOVE_RESULT_OBJECT
|
Opcode.MOVE_RESULT_OBJECT
|
||||||
),
|
),
|
||||||
strings = listOf("SC-Mob-UserPlan", "Configuration"),
|
strings = listOf("SC-Mob-UserPlan", "Configuration"),
|
||||||
customFingerprint = { _, classDef ->
|
|
||||||
classDef.sourceFile == "ApiUserPlanInterceptor.java" ||
|
|
||||||
classDef.sourceFile == "ApiUserPlanInterceptor.kt"
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,4 @@ internal object UserConsumerPlanConstructorFingerprint : MethodFingerprint(
|
|||||||
returnType = "V",
|
returnType = "V",
|
||||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||||
parameters = listOf("Ljava/lang/String;", "Z", "Ljava/lang/String;", "Ljava/util/List;", "Ljava/lang/String;", "Ljava/lang/String;"),
|
parameters = listOf("Ljava/lang/String;", "Z", "Ljava/lang/String;", "Ljava/util/List;", "Ljava/lang/String;", "Ljava/lang/String;"),
|
||||||
customFingerprint = { _, classDef ->
|
|
||||||
classDef.sourceFile == "UserConsumerPlan.kt"
|
|
||||||
},
|
|
||||||
)
|
)
|
@ -7,6 +7,7 @@ internal object CreateTrackingApiFingerprint : MethodFingerprint(
|
|||||||
returnType = "L",
|
returnType = "L",
|
||||||
accessFlags = AccessFlags.PUBLIC.value,
|
accessFlags = AccessFlags.PUBLIC.value,
|
||||||
customFingerprint = { methodDef, classDef ->
|
customFingerprint = { methodDef, classDef ->
|
||||||
classDef.sourceFile == "DefaultTrackingApiFactory.kt" && methodDef.name == "create"
|
methodDef.name == "create"
|
||||||
},
|
},
|
||||||
|
strings = listOf("backend", "boogaloo")
|
||||||
)
|
)
|
||||||
|
@ -15,7 +15,5 @@ internal object DownloadOperationsHeaderVerificationFingerprint : MethodFingerpr
|
|||||||
Opcode.MOVE_RESULT_OBJECT,
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
Opcode.CONST_STRING
|
Opcode.CONST_STRING
|
||||||
),
|
),
|
||||||
customFingerprint = { _, classDef ->
|
strings = listOf("X-SC-Mime-Type", "X-SC-Preset", "X-SC-Quality")
|
||||||
classDef.sourceFile == "DownloadOperations.kt"
|
|
||||||
}
|
|
||||||
)
|
)
|
@ -14,7 +14,4 @@ internal object DownloadOperationsURLBuilderFingerprint : MethodFingerprint(
|
|||||||
Opcode.SGET_OBJECT,
|
Opcode.SGET_OBJECT,
|
||||||
Opcode.FILLED_NEW_ARRAY
|
Opcode.FILLED_NEW_ARRAY
|
||||||
),
|
),
|
||||||
customFingerprint = { _, classDef ->
|
|
||||||
classDef.sourceFile == "DownloadOperations.kt"
|
|
||||||
}
|
|
||||||
)
|
)
|
@ -3,12 +3,16 @@ package app.revanced.patches.soundcloud.shared.fingerprints
|
|||||||
import app.revanced.patcher.extensions.or
|
import app.revanced.patcher.extensions.or
|
||||||
import app.revanced.patcher.fingerprint.MethodFingerprint
|
import app.revanced.patcher.fingerprint.MethodFingerprint
|
||||||
import com.android.tools.smali.dexlib2.AccessFlags
|
import com.android.tools.smali.dexlib2.AccessFlags
|
||||||
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
|
|
||||||
|
|
||||||
internal object FeatureConstructorFingerprint : MethodFingerprint(
|
internal object FeatureConstructorFingerprint : MethodFingerprint(
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||||
parameters = listOf("Ljava/lang/String;", "Z", "Ljava/util/List;"),
|
parameters = listOf("Ljava/lang/String;", "Z", "Ljava/util/List;"),
|
||||||
customFingerprint = { _, classDef ->
|
opcodes = listOf(
|
||||||
classDef.sourceFile == "Feature.kt"
|
Opcode.SGET_OBJECT,
|
||||||
},
|
Opcode.CHECK_CAST,
|
||||||
|
Opcode.INVOKE_VIRTUAL
|
||||||
|
)
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user