From 97fa25a5aa6fa1f951c442f20b381925d8a906ce Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 3 Feb 2023 15:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=9D=92=E5=B0=91=E5=B9=B4?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xtaolabs/fuck_huaya/hook/apps/HuayaHooker.kt | 13 +++++++++++++ build.gradle | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/xtaolabs/fuck_huaya/hook/apps/HuayaHooker.kt b/app/src/main/java/com/xtaolabs/fuck_huaya/hook/apps/HuayaHooker.kt index 52a7a0f..000957a 100644 --- a/app/src/main/java/com/xtaolabs/fuck_huaya/hook/apps/HuayaHooker.kt +++ b/app/src/main/java/com/xtaolabs/fuck_huaya/hook/apps/HuayaHooker.kt @@ -72,6 +72,17 @@ object HuayaHooker : YukiBaseHooker() { } } + private fun fuckTeen() { + findClass("cn.fzhuayantcoltd.huayaapp.util.x", appClassLoader).hook { + injectMember { + method { + name = "o" + } + replaceToTrue() + } + } + } + override fun onHook() { "com.stub.StubApp".hook { injectMember { @@ -90,6 +101,8 @@ object HuayaHooker : YukiBaseHooker() { fuckSignInRewardAd() // 取消更新弹窗 fuckUpdate() + // 取消青少年模式弹窗 + fuckTeen() } } } diff --git a/build.gradle b/build.gradle index 9a822e7..1a93f31 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { - id 'com.android.application' version '7.3.0' apply false - id 'com.android.library' version '7.3.0' apply false + id 'com.android.application' version '7.4.0' apply false + id 'com.android.library' version '7.4.0' apply false id 'org.jetbrains.kotlin.android' version '1.8.0' apply false }