fix(Spotify - Sanitize sharing links): Update patch to latest app versions (#6685)

This commit is contained in:
Dawid Krajcarz 2026-03-08 20:33:36 +01:00 committed by GitHub
parent ed9f191a2e
commit bb7448bc9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,6 @@ package app.revanced.patches.spotify.misc.privacy
import app.revanced.patcher.*
import app.revanced.patcher.patch.BytecodePatchContext
import app.revanced.util.literal
import com.android.tools.smali.dexlib2.AccessFlags
import com.android.tools.smali.dexlib2.Opcode
@ -28,13 +27,12 @@ internal val BytecodePatchContext.formatAndroidShareSheetUrlMethod by gettingFir
returnType("Ljava/lang/String;")
parameterTypes("L", "Ljava/lang/String;")
opcodes(
Opcode.GOTO,
Opcode.IF_EQZ,
Opcode.INVOKE_STATIC,
Opcode.MOVE_RESULT_OBJECT,
Opcode.RETURN_OBJECT,
)
literal { '\n'.code.toLong() }
instructions('\n'.code.toLong()())
}
internal val BytecodePatchContext.oldFormatAndroidShareSheetUrlMethod by gettingFirstMethodDeclaratively {