restore dynamic hook

This commit is contained in:
QQ littleice
2022-03-10 18:28:10 +08:00
parent df51e0cb89
commit 88c2312d8a
2 changed files with 4 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ import de.robv.android.xposed.callbacks.XC_LoadPackage
class DeleteOnPostNotification : IXposedHookLoadPackage {
override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam) {
hasEnable("delete_on_post_notification") {
"com.android.server.wm.AlertWindowNotification".hookBeforeMethod(lpparam.classLoader, "onPostNotification") {
hasEnable("delete_on_post_notification") {
it.result = null
}
}

View File

@@ -6,8 +6,8 @@ import de.robv.android.xposed.callbacks.XC_LoadPackage
class DisableFlagSecure :IXposedHookLoadPackage {
override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam) {
hasEnable("disable_flag_secure") {
"com.android.server.wm.WindowState".hookBeforeMethod(lpparam.classLoader, "isSecureLocked") {
hasEnable("disable_flag_secure") {
it.result = false
}
}