去除青少年弹窗

This commit is contained in:
xtaodada 2023-02-03 15:37:16 +08:00
parent 49d0deb256
commit 97fa25a5aa
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 15 additions and 2 deletions

View File

@ -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() { override fun onHook() {
"com.stub.StubApp".hook { "com.stub.StubApp".hook {
injectMember { injectMember {
@ -90,6 +101,8 @@ object HuayaHooker : YukiBaseHooker() {
fuckSignInRewardAd() fuckSignInRewardAd()
// 取消更新弹窗 // 取消更新弹窗
fuckUpdate() fuckUpdate()
// 取消青少年模式弹窗
fuckTeen()
} }
} }
} }

View File

@ -1,6 +1,6 @@
plugins { plugins {
id 'com.android.application' version '7.3.0' apply false id 'com.android.application' version '7.4.0' apply false
id 'com.android.library' version '7.3.0' apply false id 'com.android.library' version '7.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
} }