From 1cecb1e303f1123a73471dc51ab4ddb9038f440c Mon Sep 17 00:00:00 2001 From: BlackMesa123 Date: Fri, 3 Nov 2023 12:53:46 +0100 Subject: [PATCH] app: hooks: MainHook: hook PropSpoofHooks to Auto Blocker app Signed-off-by: BlackMesa123 --- .../java/io/mesalabs/knoxpatch/MainHook.kt | 1 + .../mesalabs/knoxpatch/hooks/PropSpoofHooks.kt | 1 + .../io/mesalabs/knoxpatch/utils/Constants.kt | 1 + app/src/main/res/values-v34/arrays.xml | 18 ++++++++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 app/src/main/res/values-v34/arrays.xml diff --git a/app/src/main/java/io/mesalabs/knoxpatch/MainHook.kt b/app/src/main/java/io/mesalabs/knoxpatch/MainHook.kt index 5da5454..360fbee 100644 --- a/app/src/main/java/io/mesalabs/knoxpatch/MainHook.kt +++ b/app/src/main/java/io/mesalabs/knoxpatch/MainHook.kt @@ -77,6 +77,7 @@ object MainHook : IYukiHookXposedInit { loadSystem(SystemHooks) + loadApp(Constants.AUTO_BLOCKER_PACKAGE_NAME, PropSpoofHooks) loadApp(Constants.SAMSUNG_CLOUD_ASSISTANT_PACKAGE_NAME, PropSpoofHooks) loadApp(Constants.SECURE_FOLDER_PACKAGE_NAME, PropSpoofHooks) loadApp(Constants.SECURE_WIFI_PACKAGE_NAME, PropSpoofHooks) diff --git a/app/src/main/java/io/mesalabs/knoxpatch/hooks/PropSpoofHooks.kt b/app/src/main/java/io/mesalabs/knoxpatch/hooks/PropSpoofHooks.kt index f194acc..ce1db72 100644 --- a/app/src/main/java/io/mesalabs/knoxpatch/hooks/PropSpoofHooks.kt +++ b/app/src/main/java/io/mesalabs/knoxpatch/hooks/PropSpoofHooks.kt @@ -81,6 +81,7 @@ object PropSpoofHooks : YukiBaseHooker() { val def: String = args(1).string() if (key == "ro.boot.flash.locked" + || key == "ro.boot.verifiedbootstate" || key == "ro.boot.warranty_bit" || key == "ro.config.iccc_version") { result = def diff --git a/app/src/main/java/io/mesalabs/knoxpatch/utils/Constants.kt b/app/src/main/java/io/mesalabs/knoxpatch/utils/Constants.kt index 18e1ca7..1cb3fc1 100644 --- a/app/src/main/java/io/mesalabs/knoxpatch/utils/Constants.kt +++ b/app/src/main/java/io/mesalabs/knoxpatch/utils/Constants.kt @@ -75,6 +75,7 @@ object Constants { const val ENHANCER_SYSTEM_FEATURE: String = "io.mesalabs.knoxpatch_enhancer" + const val AUTO_BLOCKER_PACKAGE_NAME: String = "com.samsung.android.rampart" const val FIND_MY_MOBILE_PACKAGE_NAME: String = "com.samsung.android.fmm" const val PRIVATE_SHARE_PACKAGE_NAME: String = "com.samsung.android.privateshare" const val QUICK_SHARE_PACKAGE_NAME: String = "com.samsung.android.app.sharelive" diff --git a/app/src/main/res/values-v34/arrays.xml b/app/src/main/res/values-v34/arrays.xml new file mode 100644 index 0000000..61e4d0e --- /dev/null +++ b/app/src/main/res/values-v34/arrays.xml @@ -0,0 +1,18 @@ + + + + android + com.osp.app.signin + com.samsung.android.app.sharelive + com.samsung.android.fast + com.samsung.android.fmm + com.samsung.android.galaxycontinuity + com.samsung.android.rampart + com.samsung.android.scloud + com.samsung.android.shealthmonitor + com.samsung.android.spay + com.samsung.android.scpm + com.sec.android.app.billing + com.sec.android.app.shealth + + \ No newline at end of file