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 }