Skip to content

Instantly share code, notes, and snippets.

View Sculas's full-sized avatar
💭
Coding.

Sculas

💭
Coding.
View GitHub Profile
@Sculas
Sculas / gms_remap.jadx.kts
Created May 8, 2023 18:34
JADX script to remap obfuscated APKs. Intended for GMS, but should work on anything.
import jadx.api.plugins.input.data.attributes.IJadxAttrType
import jadx.api.plugins.input.data.attributes.IJadxAttribute
import jadx.core.dex.instructions.ConstStringNode
import jadx.core.dex.instructions.InsnType
import jadx.core.dex.instructions.InvokeNode
import jadx.core.dex.instructions.InvokeType
import jadx.core.dex.instructions.args.RegisterArg
import jadx.core.dex.nodes.ClassNode
import jadx.core.dex.nodes.InsnNode
import jadx.core.dex.nodes.MethodNode
@Sculas
Sculas / after.kt
Last active August 7, 2022 21:07
ReVanced DSL Refactor
object VideoAdsPatch : PatchTest<BytecodeData> {
override val metadata = metadata {
name = "video-ads"
friendlyName = "Disable Video Ads"
description = "Removes ads in the video player."
version = "0.0.1"
compatibility = SharedCompatibility.`video-ads`
dependsOn(IntegrationsPatch::class, SettingsPatch::class)
dependsOn(ShowVideoAdsConstructorFingerprint)