MCPcopy Create free account
hub / github.com/cinit/TMoe / FuckTrackingHook

Class FuckTrackingHook

app/src/main/java/cc/ioctl/tmoe/hook/func/FuckTrackingHook.kt:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import com.github.kyuubiran.ezxhelper.utils.tryOrLogFalse
9
10@FunctionHookEntry
11object FuckTrackingHook : CommonDynamicHook() {
12 override fun initOnce(): Boolean = tryOrLogFalse {
13 if (!isEnabled) return@tryOrLogFalse
14
15 findMethod(loadClass("org.telegram.ui.ChatActivity")) {
16 name == "logSponsoredClicked"
17 }.hookReturnConstant(null)
18 }
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected