feat(amznmusic): add unlimited track skipping patch
This commit is contained in:
parent
dc39dfdab4
commit
b44ac9b26f
1 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
""")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue