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

Search This thread

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,920
3,634
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
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_20230204_120323_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 devices with One UI 3.x and encrypted data partition.


/* 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
- Rikka
- All the current and future contributors 😉
- KnoxPatch users ❤️
 
Last edited:

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,920
3,634
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
/* Changelog */

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
 
Last edited:

otonieru

Senior Member
May 7, 2011
3,605
2,303
Djakarta
Hi,

Secure folder doesn't seem to work on Android 10. (OneUI 2.x)

Is there any specific setting i need to so ?
 

TMW1996

Member
Aug 26, 2015
18
6
So i tried installing this module on Android 9
The Apk file cannot be installed cause of Parsing error and the module cannot be Found on LS posed as installed
Screenshot_20230206-234611_Shell.jpg
....
Screenshot_20230206-234622_Samsung Health.jpg
Screenshot_20230206-234626.jpg
Screenshot_20230206-234906_Settings.jpg
 

EtherealRemnant

Senior Member
Sep 15, 2007
5,032
2,181
38
Denver, CO
OnePlus 9
Samsung Galaxy Watch 4
So i tried installing this module on Android 9
The Apk file cannot be installed cause of Parsing error and the module cannot be Found on LS posed as installedView attachment 5829609....View attachment 5829611View attachment 5829617View attachment 5829625
Why are you trying a module that wasn't even posted in your device forum and clearly is for a device that's *four* major versions ahead of your own? That's just asking for problems. Not to mention the OP says it supports Android 10 and up. 🤦‍♂️
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,920
3,634
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,920
3,634
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
What does this enable in Galaxy Wearable? I don't have any issues with the app today even though I'm rooted with knox disabled. And what does enhancer do - is it a magisk module?
As explained in OP, the Enhancer is a Magisk module that will take care of those features that can't be patched alone via the Xposed API's (the main module), at the moment it only fixes the Galaxy Wearable apps (you can't pair your watch normally with a rooted phone). All the other listed apps are patched via the main LSPosed module.
 

wyt18

Senior Member
As explained in OP, the Enhancer is a Magisk module that will take care of those features that can't be patched alone via the Xposed API's (the main module), at the moment it only fixes the Galaxy Wearable apps (you can't pair your watch normally with a rooted phone). All the other listed apps are patched via the main LSPosed module.
thanks. that's really strange, as I had no problems pairing my watch with my rooted phone
 

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,920
3,634
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
thanks. that's really strange, as I had no problems pairing my watch with my rooted phone

It depends whether or not your phone has a custom ROM/custom script that disables the Samsung security module that blocks the wear devices pairing (WSM), your phone could also not have that service at all depending if it's a low/mid end one
 
  • Like
Reactions: wyt18

Top Liked Posts

  • 2
    I didn't add SHM in Magisk DenyList.
    I think the trick is to have SHM enabled in KnoxPatch before paring (after GW reset) GW4 with S23.
    There's no need to debloat/add any app in the Magisk's deny list, the module alone will handle the apps in question. If the patches still won't work just make sure the app is selected in the KnoxPatch module settings (select only the recommended ones), force closing/deleting the app data/rebooting the phone might be necessary for the hook to be in place.
    1
    TL;DR
    Enabling Samsung Health Monitor on Magisk's Denylist will cause Samsung Health Monitor to show "No compatible watch found". This is with Shamiko enabled, and using KnoxPatch with Enhancer.


    - OK, restored phone from Twrp, reset GW4.
    - Added Samsung account, installed Health and Wearable, setup GW4
    - Triggered install of Health Monitor via GW4
    - Ticked SH, SHM under KnoxPatch in Lsposed
    - Added SH, SGH, again everything else in Denylist in Magisk
    [ The only items not ticked in Denylist are AFWall, Android System, KnoxPatch, Swift Backup, System app remover pro - IF that is the issue here, I would like feedback, and especially why this is happening, since it works in every single other scenario I have encountered. Bear in mind, I am intending to use XPrivacyLUA as usual here, and unticking items in denylist with shamiko may not be ideal for use with XPL ?! ]
    - Asked for mobile network, added SIM card
    - Then "No compatible watch found" again
    ===
    - Then, removed Samsung account, Samsung core services, SH, and SHM from Magisk denylist.
    - Rebooted phone and gw4
    - Blood pressure and ECG prompting for setup as normal

    Now, I am sure someone will object to me adding everything to denylist that does not need root / zygisk explicitly, but if so - why? Will of course try out to set SHM up first, then add the lot back to magisk denylist, and then add back to XPL after.. --- but well I feel there is room for improvement somewhere. ?!

    Thanks !!!

    EDIT:
    - Adding SH, SHM, Samsung account and core services back to denylist, prior to going through the setup process for BP and ECG, will result in "No compatible watch found" again
    - After full setup of BP and ECG, and taking initial measurement, I was able to add all these back to denylist, reboot phone and gw4, but the 2nd measurement does not sync with SHM !
  • 2
    I didn't add SHM in Magisk DenyList.
    I think the trick is to have SHM enabled in KnoxPatch before paring (after GW reset) GW4 with S23.
    There's no need to debloat/add any app in the Magisk's deny list, the module alone will handle the apps in question. If the patches still won't work just make sure the app is selected in the KnoxPatch module settings (select only the recommended ones), force closing/deleting the app data/rebooting the phone might be necessary for the hook to be in place.
    1
    is it possible to use Samsung Flow while the phone is locked using this tool?
    for a few versions back, Samsung Flow no longer allows unlocking the phone using PC. so if the phone is locked, you need to unlock the device manually before using the app which completely defeat its purpose (similar behavior to latest versions of Phone Link)

    see https://us.community.samsung.com/t5/Galaxy-Note-Phones/samsung-flow-4-9-04-4/td-p/2499621 for some details. and in the latest version, you're left with an error message "To use Samsung Flow, verify your identity using the authentication methods you've turned on. Make sure your phone or tablet has Samsung Flow open and is connected to the same network."

    or is this completely outside of the scope of the tool?
    Currently there's no plan on extending the module's scope except for bypassing the "security policy" checks of Samsung apps/features.
    1
    Refer to the supported Android versions/supported apps lists in OP, your device is supported.
    I posted the comment after using knoxpatch. After installing secure folder was not working.
    Then, I uninstalled the updates to secore folder and restarted my device. Now it's working. Thank you
    1
    A new minor version of the module has been released. Thanks to @ananjaser1211 suggestions I discovered Secure Folder on One UI 3.x might not work due to data partition crypto, disabling it will fix the issue.
    1
    thank you my brother . ı solved problem with this method . ı am using one uı 5.1 on s21 5g .
  • 26
    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_20230204_120323_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 devices with One UI 3.x and encrypted data partition.


    /* 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
    - Rikka
    - All the current and future contributors 😉
    - KnoxPatch users ❤️
    4
    /* Changelog */

    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
    3
    v0.4.0 released with One UI 5.1 support and additional support for legacy One UI versions (One UI 1.x/2.x). Big thanks to @TMW1996 for testing it out. @otonieru give this new version a try when possible.
    2
    I didn't add SHM in Magisk DenyList.
    I think the trick is to have SHM enabled in KnoxPatch before paring (after GW reset) GW4 with S23.
    There's no need to debloat/add any app in the Magisk's deny list, the module alone will handle the apps in question. If the patches still won't work just make sure the app is selected in the KnoxPatch module settings (select only the recommended ones), force closing/deleting the app data/rebooting the phone might be necessary for the hook to be in place.