From b73ca080036ba9a06c082abe1e5549cfd73c76a8 Mon Sep 17 00:00:00 2001 From: whitehai11 Date: Thu, 3 Sep 2026 23:22:54 +0200 Subject: [PATCH] feat(Spotify): Add Premium spoof patch --- .../spotify/premium/SpoofPremiumPatch.kt | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 patches/src/main/kotlin/app/revanced/patches/spotify/premium/SpoofPremiumPatch.kt diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/premium/SpoofPremiumPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/premium/SpoofPremiumPatch.kt new file mode 100644 index 000000000..e528abbd5 --- /dev/null +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/premium/SpoofPremiumPatch.kt @@ -0,0 +1,40 @@ +package app.revanced.patches.spotify.premium + +import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.resourcePatch +import app.revanced.patches.spotify.premium.Fingerprints.* +import app.revanced.util.returnEarlyBoolean +import java.io.File + +@Suppress("unused") +val manifestPatch = resourcePatch { + compatibleWith("com.spotify.music") + execute { + val manifest = File("AndroidManifest.xml") + if (manifest.exists()) { + val content = manifest.readText() + val patched = content.replace( + "