feat(amznmusic): add unlimited track skipping patch

This commit is contained in:
obXfuse 2026-03-18 20:57:47 -04:00
parent dc39dfdab4
commit b44ac9b26f

View file

@ -0,0 +1,23 @@
package app.revanced.patches.amznmusic.misc.skips
import app.revanced.patcher.extensions.addInstructions
import app.revanced.patcher.firstMethod
import app.revanced.patcher.patch.bytecodePatch
@Suppress("unused")
val unlimitedSkipsPatch = bytecodePatch(
name = "Unlimited track skipping",
description = "Unlocks the ability to skip tracks without restriction.",
) {
compatibleWith("com.amazon.mp3")
apply {
firstMethod { name == "getRule" && definingClass == $$"Lcom/amazon/music/freetier/featuregating/FMPMFeatureGating$STATION_UNLIMITED_SKIPS;" }
.addInstructions(0,
"""
new-instance p0, Lcom/amazon/music/platform/featuregate/rules/TrueRule;
invoke-direct {p0}, Lcom/amazon/music/platform/featuregate/rules/TrueRule;-><init>()V
return-object p0
""")
}
}