fix(Bandcamp - Remove play limits): Support latest app version (#5124)

This commit is contained in:
hoodles
2025-06-06 14:20:00 -07:00
committed by GitHub
parent 032cd2134a
commit 863e92b20a
2 changed files with 3 additions and 3 deletions

View File

@ -3,5 +3,5 @@ package app.revanced.patches.bandcamp.limitations
import app.revanced.patcher.fingerprint
internal val handlePlaybackLimitsFingerprint = fingerprint {
strings("play limits processing track", "found play_count")
strings("track_id", "play_count")
}

View File

@ -1,7 +1,7 @@
package app.revanced.patches.bandcamp.limitations
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.util.returnEarly
@Suppress("unused")
val removePlayLimitsPatch = bytecodePatch(
@ -11,6 +11,6 @@ val removePlayLimitsPatch = bytecodePatch(
compatibleWith("com.bandcamp.android")
execute {
handlePlaybackLimitsFingerprint.method.addInstructions(0, "return-void")
handlePlaybackLimitsFingerprint.method.returnEarly()
}
}