Skip to content

Commit

Permalink
app: hooks: MainHook: hook PropSpoofHooks to Auto Blocker app
Browse files Browse the repository at this point in the history
Signed-off-by: BlackMesa123 <[email protected]>
  • Loading branch information
salvogiangri committed Nov 3, 2023
1 parent d687da2 commit 1cecb1e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/io/mesalabs/knoxpatch/MainHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/io/mesalabs/knoxpatch/utils/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/res/values-v34/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="scope">
<item>android</item>
<item>com.osp.app.signin</item>
<item>com.samsung.android.app.sharelive</item>
<item>com.samsung.android.fast</item>
<item>com.samsung.android.fmm</item>
<item>com.samsung.android.galaxycontinuity</item>
<item>com.samsung.android.rampart</item>
<item>com.samsung.android.scloud</item>
<item>com.samsung.android.shealthmonitor</item>
<item>com.samsung.android.spay</item>
<item>com.samsung.android.scpm</item>
<item>com.sec.android.app.billing</item>
<item>com.sec.android.app.shealth</item>
</string-array>
</resources>

0 comments on commit 1cecb1e

Please sign in to comment.