pull/21/head
fengyuecanzhu 3 years ago
parent b195703351
commit cf8364b0e4
  1. 26
      dynamic/src/main/java/xyz/fycz/dynamic/AppLoadImpl.kt

@ -86,30 +86,4 @@ class AppLoadImpl : IAppLoader {
}
}
}
/*fun noAd(appParam: AppParam) {
try {
MapleUtils.findAndHookMethod(
"xyz.fycz.myreader.util.utils.AdUtils",
appParam.classLoader,
"checkHasAd",
Boolean::class.java,
Boolean::class.java,
object : MethodReplacement() {
override fun replaceHookedMethod(param: MapleBridge.MethodHookParam): Any? {
val just = MapleUtils.findMethodExact(
"io.reactivex.Single",
appParam.classLoader,
"just",
Any::class.java
)
return just.invoke(null, false)
}
}
)
} catch (e: Exception) {
e.printStackTrace()
MapleUtils.log(e)
}
}*/
}
Loading…
Cancel
Save