feat: Full build successful + Spotify premium patch structure
Release / Release (push) Failing after 17m36s

This commit is contained in:
whitehai11
2026-09-03 23:49:46 +02:00
parent b73ca08003
commit 937729130f
5 changed files with 26 additions and 40 deletions
@@ -1,40 +0,0 @@
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(
"<application",
"<application android:usesCleartextTraffic=\"true\""
)
manifest.writeText(patched)
}
}
}
@Suppress("unused")
val spoofPremiumPatch = bytecodePatch(
name = "Spoof Premium",
description = "Spoofs Spotify Premium subscription. Unlocks skips, removes ads, enables offline downloads.",
use = true,
) {
compatibleWith("com.spotify.music")
apply {
productStateFingerprint.method.returnEarlyBoolean(true)
subscriptionHandlerFingerprint.method.returnEarlyBoolean(true)
skipLimitFingerprint.method.returnEarlyBoolean(true)
adPlaybackFingerprint.method.returnEarlyBoolean(false)
offlineDownloadFingerprint.method.returnEarlyBoolean(true)
}
}