Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
obXfuse
37ac390a2e refactor(amazonmusic): use Fingerprints.kt file for matching 2026-03-21 03:39:04 -04:00
obXfuse
b44ac9b26f feat(amznmusic): add unlimited track skipping patch 2026-03-18 20:57:47 -04:00
3 changed files with 36 additions and 0 deletions

View file

@ -153,6 +153,10 @@ public final class app/revanced/patches/amazon/DeepLinkingPatchKt {
public static final fun getAlwaysAllowDeepLinkingPatch ()Lapp/revanced/patcher/patch/Patch; public static final fun getAlwaysAllowDeepLinkingPatch ()Lapp/revanced/patcher/patch/Patch;
} }
public final class app/revanced/patches/amazonmusic/misc/UnlimitedTrackSkippingPatchKt {
public static final fun getUnlimitedTrackSkippingPatch ()Lapp/revanced/patcher/patch/Patch;
}
public final class app/revanced/patches/angulus/ads/RemoveAdsPatchKt { public final class app/revanced/patches/angulus/ads/RemoveAdsPatchKt {
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/Patch; public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/Patch;
} }

View file

@ -0,0 +1,11 @@
package app.revanced.patches.amazonmusic.misc
import app.revanced.patcher.gettingFirstMethodDeclaratively
import app.revanced.patcher.type
import app.revanced.patcher.name
import app.revanced.patcher.patch.BytecodePatchContext
internal val BytecodePatchContext.getRuleMethod by gettingFirstMethodDeclaratively {
type($$"Lcom/amazon/music/freetier/featuregating/FMPMFeatureGating$STATION_UNLIMITED_SKIPS;")
name("getRule")
}

View file

@ -0,0 +1,21 @@
package app.revanced.patches.amazonmusic.misc
import app.revanced.patcher.extensions.addInstructions
import app.revanced.patcher.patch.bytecodePatch
@Suppress("unused")
val unlimitedTrackSkippingPatch = bytecodePatch(
name = "Unlimited track skipping",
description = "Unlocks the ability to skip tracks without restriction.",
) {
compatibleWith("com.amazon.mp3")
apply {
getRuleMethod.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
""")
}
}