Themes / Apps / Mods [APP][XPOSED/MAGISK] KnoxPatch v0.5.2 - Restore Samsung Knox features

Search This thread
Tried, but could not get to safemode anymore with the keycombo
Tested the procedure before the bootloop and was working fine

Tried the knoxpatch on an older phone and was working fine,
maybe it's due to the newer zygisk module in Magisk 26.0+ or the Ambasadii Cruel Kernel ?

Why Ambasadii Cruel Kernel? Is this released for Samsung S23?
My previous device was Samsung S10e with Ambasadii ROM.
 

ReMiOS

Senior Member
Mar 13, 2021
58
13
Why Ambasadii Cruel Kernel? Is this released for Samsung S23?
My previous device was Samsung S10e with Ambasadii ROM.
My device is a Samsung S10+ SM-G975F with no Ramdisk
In order to get Magisk root after a reboot i have to use a key combo to load the recovery before loading system.
The Ambasadii Cruel Kernel makes it possible to have root after a normal reboot

Dit the knoxpatch work on your S10E device without bootlooping ?
and did you also have Android12 and Magisk 26.1 ?
 
My device is a Samsung S10+ SM-G975F with no Ramdisk
In order to get Magisk root after a reboot i have to use a key combo to load the recovery before loading system.
The Ambasadii Cruel Kernel makes it possible to have root after a normal reboot

Dit the knoxpatch work on your S10E device without bootlooping ?
and did you also have Android12 and Magisk 26.1 ?

I installed Ambasadii ROM. I read that there was some issue with Magisk 26, but later release (26.1) should be working fine. That is Android 12.

But this is off topic for KnoxPatch.
 
  • Like
Reactions: BlackMesa123

ReMiOS

Senior Member
Mar 13, 2021
58
13
I installed Ambasadii ROM. I read that there was some issue with Magisk 26, but later release (26.1) should be working fine. That is Android 12.

But this is off topic for KnoxPatch.
Thanks for your reply

I don't believe this is off topic, since i get a bootloop after installing knoxpatch on my device (twice)

I would like to know how to get out of the bootloop without wiping all data
and if there are other users who have knoxpatch working with Magisk 26.1 (and possibly a Cruel Kernel)
 
Last edited:
Will it work if I sideload the apps, i.e., Secure Folder. I don't have it with my ROM also anyway to patch dual Messager for all apps.
Edit Secure Folder hasn't work, Says Contact Manufacturer But SHealth Works And Secured Folder isn't even recommended on module page tho selected It and still doesn't work. Please Advice
 
Last edited:

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,986
3,716
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
Will it work if I sideload the apps, i.e., Secure Folder. I don't have it with my ROM also anyway to patch dual Messager for all apps.
Edit Secure Folder hasn't work, Says Contact Manufacturer But SHealth Works And Secured Folder isn't even recommended on module page tho selected It and still doesn't work. Please Advice
If Secure Folder isn’t already installed in your device it means it is not supported (eg. your device hasn’t Knox or has One UI Core), consider installing a custom ROM if your device has any.
 

DanGLES3

Senior Member
Nov 11, 2017
835
845
  • Like
Reactions: xShottaZx

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,986
3,716
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
  • Like
Reactions: DanGLES3

krism0156

Member
Feb 7, 2017
21
1
Nothing work on pixelexperience aosp rom, try many method and samsung gear still dont work, app on phone find watch but cant instal plugin on watch and play store give me notice (Your device is not compatible with this version) but safetynet in yasnac show pass cts and basic integrity. I havent ideas how to connect watch 5 to phone with aosp rom.

Edit. lsposed and googlespoofforwear module in magisk and clear cache Samsung gear app finally solved problem.
 
Last edited:

nicoco19

Member
Jan 20, 2019
40
8
Hello everyone, I installed and tested on my Samsung Galaxy Z Flip 4 and it works very well. Again a big thank you for the work of the developers and also the sharing with all.
 
  • Like
Reactions: BlackMesa123

ReMiOS

Senior Member
Mar 13, 2021
58
13
I highly doubt your issue is caused by this module. Try setting up your phone without any extra Magisk module first and see if the issue persists.

I flashed full stock firmware (BL, AP, CP, CSC) with AP=Magisk_Patched-26100_Recovery.tar
But did not install the "multidisabler-samsung-3.5-corsicanu" in TWRP
Now installing Knoxpatch gave no issues !🎉😃

Tested Samsung Health wich works fine

I suspect the FBE in the multidisabler caused the issues

For reference i've installed the following on my Samsung S10+ SM-G975F ( Android 12 / OneUI 4.1 )
Magisk 26.1 ( Zygisk=Yes / Denylist=No )
TWRP v3.7.9_9.2 in recovery
TWRP_Bootlogo_patcher_v1.7
Ambasadii_Cruel-HVJ5-G97xF-v6.9-S Kernel ( OS patch level 01-03-2023 )
safetynet-fix-v2.4.0-MOD_1.2
Shamiko-v0.7.1-166-release
LSPosed-v1.8.6-6712-zygisk-release
KnoxPatch-v0.5.2.apk
KnoxPatch-Enhancer-v0.3-fix.zip
BluetoothLibraryPatcher_magisk_2.6.3
 
Last edited:
  • Like
Reactions: xShottaZx

xShottaZx

Senior Member
Oct 10, 2012
100
7

russel5

Senior Member
Jun 13, 2012
860
1,259
41
Yekaterinburg
@BlackMesa123 hi, can you tell me this is normal too or not. In Lsposed this logs is too much
Code:
[ 2023-06-04T13:30:12.933    10424: 27168: 27168 I/LSPosed-Bridge  ] [KnoxPatch][E][com.samsung.android.shealthmonitor]-->
[ 2023-06-04T13:30:12.933    10424: 27168: 27168 E/LSPosed-Bridge  ] java.io.IOException
    at uh.d(Unknown Source:298)
    at uh.a(Unknown Source:53)
    at hy.b(Unknown Source:18)
    at hf.beforeHookedMethod(Unknown Source:31)
    at cJIBxLrOWwU.wzalvDPYGT.XposedBridge$AdditionalHookInfo.callback(Unknown Source:87)
    at LSPHooker_.exec(Unknown Source:11)
    at com.samsung.android.shealthmonitor.util.RootingCheckUtil.checkSuExists(RootingCheckUtil.java:126)
    at com.samsung.android.shealthmonitor.util.RootingCheckUtil.isRooted(RootingCheckUtil.java:178)
    at com.samsung.android.shealthmonitor.ui.activity.BaseAppCompatActivity.checkRootingDevice(BaseAppCompatActivity.java:447)
    at com.samsung.android.shealthmonitor.ui.activity.BaseAppCompatActivity.onStart(BaseAppCompatActivity.java:160)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1510)
    at android.app.Activity.performStart(Activity.java:8616)
    at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4204)
    at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
    at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8757)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,986
3,716
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
@BlackMesa123 hi, can you tell me this is normal too or not. In Lsposed this logs is too much
Code:
[ 2023-06-04T13:30:12.933    10424: 27168: 27168 I/LSPosed-Bridge  ] [KnoxPatch][E][com.samsung.android.shealthmonitor]-->
[ 2023-06-04T13:30:12.933    10424: 27168: 27168 E/LSPosed-Bridge  ] java.io.IOException
    at uh.d(Unknown Source:298)
    at uh.a(Unknown Source:53)
    at hy.b(Unknown Source:18)
    at hf.beforeHookedMethod(Unknown Source:31)
    at cJIBxLrOWwU.wzalvDPYGT.XposedBridge$AdditionalHookInfo.callback(Unknown Source:87)
    at LSPHooker_.exec(Unknown Source:11)
    at com.samsung.android.shealthmonitor.util.RootingCheckUtil.checkSuExists(RootingCheckUtil.java:126)
    at com.samsung.android.shealthmonitor.util.RootingCheckUtil.isRooted(RootingCheckUtil.java:178)
    at com.samsung.android.shealthmonitor.ui.activity.BaseAppCompatActivity.checkRootingDevice(BaseAppCompatActivity.java:447)
    at com.samsung.android.shealthmonitor.ui.activity.BaseAppCompatActivity.onStart(BaseAppCompatActivity.java:160)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1510)
    at android.app.Activity.performStart(Activity.java:8616)
    at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4204)
    at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
    at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8757)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Similar to issue #29, nothing to worry about.
 
  • Like
Reactions: russel5

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Can I use Samsung Pass with this module?

    This app is clearly mentioned as not working in OP:

    1
    I don’t see how this could break connectivity in your end, something’s probably wrong with the mod you tried to use. You can try KnoxPatch and revert/disable the changes anytime since it is systemless.
    Thanks for replying, will probably try and let you know
    1
    Noway in current time, maybe 4ever
    I see that
    We use Gpay (GWallet) instead 🥰
    1
    I understand, but when the phone is in a bootloop how can i get debug logs ....
    It there a way to disable the KnoxPatch from TWRP recovery ?
    If your device is rooted with magisk place this file in /data/adb/service.d
    Using twrp
    Then open the terminal within twrp file manager and "chmod +x logcat.sh"

    Boot the phone and let it loop after some time boot back into twrp you will have file called logcatbootloop.txt in /cache/ parition

    edit usually its recommended to wipe dalvik cache if you decide to uninstall xposed from recovery to be able to boot i havent been around for 4 years so idk if this catches for the newest versions
    1
    My device is a Samsung S10+ SM-G975F with no Ramdisk
    In order to get Magisk root after a reboot i have to use a key combo to load the recovery before loading system.
    The Ambasadii Cruel Kernel makes it possible to have root after a normal reboot

    Dit the knoxpatch work on your S10E device without bootlooping ?
    and did you also have Android12 and Magisk 26.1 ?

    I installed Ambasadii ROM. I read that there was some issue with Magisk 26, but later release (26.1) should be working fine. That is Android 12.

    But this is off topic for KnoxPatch.
  • 36
    kp-readme-header.png




    An LSPosed module to get Samsung apps/features working again in your rooted Galaxy device.

    /* Screenshots */

    Screenshot_20230204_120315_Shell.jpg Screenshot_20230507_153953_KnoxPatch.jpg Screenshot_20230204_120334_Secure Folder.jpg Screenshot_20230204_120421_Secure Wi-Fi.jpg

    /* Disclaimer */

    - I am not responsible about any damage of any kind that this app may cause.
    - You are allowed to use this app in your project with proper credits and links to this thread or source code.
    - You are allowed to base your projects on my sources by giving proper credits to the original authors.
    - Bugs/feature requests can be reported in this thread or via the project's repository page. Make sure you provide enough detailed info when reporting bugs (device, system logs etc.).


    /* Intro */

    Have you ever wondered whether or not you could continue to use certain apps/features in your 0x1'd Samsung device? Now you can, and without any system modifications/custom ROMs. KnoxPatch makes use of the Xposed API's to patch system API's on-the-fly and bypass the "security policy" of those interested apps. This module is backward compatible back to One UI 1.0 and supports most of the apps currently imposing those limitations.

    Any form of contribution, suggestions, bug report or feature request for the project will be welcome.


    /* Supported Android versions */

    • Android 9 (One UI 1.x)
    • Android 10 (One UI 2.x)
    • Android 11 (One UI 3.x)
    • Android 12 (One UI 4.x)
    • Android 12L (One UI 4.1.1)
    • Android 13 (One UI 5.x)


    /* Supported apps */

    ➖ Galaxy Wearable (Gear Manager) (Enhancer required)
    ✅ Samsung Flow
    ✅ Samsung Health
    ✅ Samsung Health Monitor
    ✅ Secure Folder *
    ✅ Secure Wi-Fi
    ➖ Smart View (Enhancer required)
    ✅ Private Share
    ❌ Samsung Pass
    ❌ Samsung Wallet (Pay)

    * Secure Folder might not work properly on legacy devices (One UI 3.x and lower) with FBE enabled.


    /* How to install? */

    Before proceeding, make sure your device has Magisk installed and working.

    - Open the Magisk Manager app and enable "Zygisk" in its Settings page (top right menu button).
    - Download the latest LSPosed "zygisk-release" zip
    - Install LSPosed by selecting the zip you downloaded in the "Modules" tab inside the Magisk Manager app, then reboot your phone.
    - With LSPosed installed, download and install the latest KnoxPatch apk like you would install a normal app.
    - Open the LSPosed Manager app from your quick panel notifications and enable the KnoxPatch module in the "Modules" tab, leave the selected applications list as it is.
    - Reboot your phone and enjoy!

    OPTIONAL: Download and install the KnoxPatch Enhancer zip file via the Magisk Manager app "Modules" tab, this additional module will take care of features that can't be patched alone via the Xposed API's such as the Galaxy Wearable apps. An "Enhanced" badge can be seen in the app info page to confirm the Enhancer module is installed correctly:


    kp-enhancer.jpg


    /* Thanks to */

    - Samsung
    - LSPosed Team
    - YukiHookAPI
    - Rikka
    - All the current and future contributors 😉
    - KnoxPatch users ❤️
    9
    /* Changelog */

    v0.5.2:
    - Enhancer v0.3 (Secure Folder fix for Android 10 (@ananjaser1211))
    - Additional hooks for One UI 2.x
    - Show Secure Folder warning on legacy devices with FBE
    - Added Romanian translations (contribution of @iDrinkCoffee)


    v0.5.1:
    - Rework UI code
    - Minor hooks bug fixes

    v0.5.0:
    - Rework hooks API's

    v0.4.5:
    - Additional hooks for One UI 3.x
    - Show a warning on One UI 3.x for Secure Folder support

    v0.4.4:
    - One UI Core support
    - Added Hungarian translations (contribution of gidano @github)
    - Added Indonesian translations (contribution of Maulana990 @github)

    v0.4.1:
    - Enhancer v0.2 (add Smart View support)

    v0.4.0:
    - Initial Android 9 support (One UI 1.x)
    - One UI 5.1 support

    v0.3.6:
    - Introduce KnoxPatch Enhancer (no changes in the app)

    v0.3.5:
    - Added Spanish translations (contribution of naxitoo @github)
    - Added support for Samsung Health Monitor (reported by mathmach @github)
    - Added support for Samsung Flow
    - Rework Samsung Health patch
    - Minor code adjustments

    v0.3.0:
    - Initial Android 10/11 support (One UI 2.x/3.x)
    - Fixed KnoxGuard patch
    - Added additional patches for SAK
    - Initial multi-language support

    v0.2.0:
    - Android 12 support (One UI 4.x)
    - Added KnoxGuard patch
    - Rework Secure Wi-Fi patch (contribution of @davidarsene)

    v0.1.1:
    - First public release

    /* Download */

    GitHub (latest release)
    LSPosed repository
    5
    S23 users might want to install this test build since the latest version at time of writing (v0.3.6) doesn't supports One UI 5.1. Support for One UI 5.1 has been added in v0.4.0.