mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-07 09:53:55 +01:00
23 lines
606 B
Kotlin
23 lines
606 B
Kotlin
package app.revanced.patches.amazon
|
|
|
|
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
|
import app.revanced.patcher.patch.bytecodePatch
|
|
|
|
@Suppress("unused")
|
|
val deepLinkingPatch = bytecodePatch(
|
|
name = "Always allow deep-linking",
|
|
description = "Open Amazon links, even if the app is not set to handle Amazon links.",
|
|
) {
|
|
compatibleWith("com.amazon.mShop.android.shopping")
|
|
|
|
execute {
|
|
deepLinkingFingerprint.method.addInstructions(
|
|
0,
|
|
"""
|
|
const/4 v0, 0x1
|
|
return v0
|
|
""",
|
|
)
|
|
}
|
|
}
|