Compare commits

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

2 commits

Author SHA1 Message Date
obXfuse
dfdd86aa7a refactor(amazonmusic): use fingerprints.kt file for matching 2026-03-21 03:28:41 -04:00
obXfuse
2d7cf86bfd feat(amznmusic): add prevent log upload patch 2026-03-18 21:00:20 -04:00
3 changed files with 41 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 final class app/revanced/patches/amazonmusic/privacy/PreventUploadLogsPatchKt {
public static final fun getPreventUploadLogsPatch ()Lapp/revanced/patcher/patch/Patch;
}
public final class app/revanced/patches/angulus/ads/RemoveAdsPatchKt {
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/Patch;
}

View file

@ -0,0 +1,19 @@
package app.revanced.patches.amazonmusic.privacy
import app.revanced.patcher.gettingFirstClassDefDeclaratively
import app.revanced.patcher.gettingFirstMethodDeclaratively
import app.revanced.patcher.patch.BytecodePatchContext
import app.revanced.patcher.name
import app.revanced.patcher.type
internal val BytecodePatchContext.pendingCrashLogsClass by gettingFirstClassDefDeclaratively {
type("Lcom/amazon/mp3/det/PendingCrashLogs;")
}
internal val BytecodePatchContext.uploadLogAfterCrashMethod by gettingFirstMethodDeclaratively {
name("uploadLogAfterCrash")
}
internal val BytecodePatchContext.uploadPendingCrashLogsIfRequiredMethod by gettingFirstMethodDeclaratively {
name("uploadPendingCrashLogsIfRequired")
}

View file

@ -0,0 +1,18 @@
package app.revanced.patches.amazonmusic.privacy
import app.revanced.patcher.firstMethod
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.util.returnEarly
@Suppress("unused")
val preventUploadLogsPatch = bytecodePatch(
name = "Prevent log upload",
description = "Avoid uploading logs when the application crashes.",
) {
compatibleWith("com.amazon.mp3")
apply {
pendingCrashLogsClass.firstMethod(uploadLogAfterCrashMethod).returnEarly()
pendingCrashLogsClass.firstMethod(uploadPendingCrashLogsIfRequiredMethod).returnEarly()
}
}