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

Search This thread

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
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_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 ❤️
 
Last edited:

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5
/* 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
 
Last edited:

otonieru

Senior Member
May 7, 2011
3,640
2,317
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,121
2,271
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,985
3,715
20
Adrano
Samsung Galaxy S5
Samsung Galaxy J5

BlackMesa123

Recognized Contributor
Aug 29, 2015
1,985
3,715
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,985
3,715
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

  • 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.