yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S23 Ultra] wyt18:
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?
[Samsung Galaxy S23 Ultra] BlackMesa123:
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.
[Samsung Galaxy S23 Ultra] wyt18:
thanks. that's really strange, as I had no problems pairing my watch with my rooted phone
[Samsung Galaxy S23 Ultra] BlackMesa123:
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
[Samsung Galaxy S23 Ultra] dr.ketan:
If you have W4/W5 then you may not have this issue, fix needs for older watch S3 and previous
[Samsung Galaxy S23 Ultra] waterpolo:
Why Ambasadii Cruel Kernel? Is this released for Samsung S23?

My previous device was Samsung S10e with Ambasadii ROM.
[Samsung Galaxy S23 Ultra] ReMiOS:
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 ?
[Samsung Galaxy S23 Ultra] waterpolo:
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.
[Samsung Galaxy S23 Ultra] ReMiOS:
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)
[Samsung Galaxy S23 Ultra] qounik:
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
[Samsung Galaxy S23 Ultra] BlackMesa123:
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.
[Samsung Galaxy S23 Ultra] krism0156:
It works only on oneui android? I need working method to install shealth, sgear on aosp rom.
[Samsung Galaxy S23 Ultra] DanGLES3:
GitHub - Simon1511/WearableSpoof: Uses LSPosed to let you run Samsung apps on non-OneUI ROMs

Uses LSPosed to let you run Samsung apps on non-OneUI ROMs - Simon1511/WearableSpoof

github.com
[Samsung Galaxy S23 Ultra] DanGLES3:
GitHub - abrahamgcc/SHealthBypass: Avoid Samsung Health restrictions

Avoid Samsung Health restrictions. Contribute to abrahamgcc/SHealthBypass development by creating an account on GitHub.

github.com

Not sure any of these will work as I'm on stock
[Samsung Galaxy S23 Ultra] BlackMesa123:
Yes, the module is One UI-only since Samsung apps work fine on AOSP due to the missing Knox API’s.
[Samsung Galaxy S23 Ultra] BlackMesa123:
This app a similar patch to the KnoxPatch one. However it is not required on AOSP since it does not have Knox, Samsung Health will work out of the box.
[Samsung Galaxy S23 Ultra] krism0156:
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.
[Samsung Galaxy S23 Ultra] nicoco19:
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.
[Samsung Galaxy S23 Ultra] ReMiOS:
I've opened an issue on Github and attached logs
[Samsung Galaxy S23 Ultra] ReMiOS:
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
[Samsung Galaxy S23 Ultra] xShottaZx:
YOU SIR, have saved my life. Spend hours and hours and this was the answer. Finally got my S10e on latest A13 LineageOS working with my Watch4.
[Samsung Galaxy S23 Ultra] russel5:
@BlackMesa123 hi, can you tell me this is normal too or not. In Lsposed this logs is too much

Spoiler content hidden.
[Samsung Galaxy S23 Ultra] BlackMesa123:
Similar to issue #29, nothing to worry about.
[Samsung Galaxy S23 Ultra] xicko:
A noob doubt: this module works in a non Samsung phone, running PixelOS? You all know someone that do the trick?
[Samsung Galaxy S23 Ultra] DanGLES3:
I can't say fof sure, i don't have any Galaxy Watch to test on my secondary device running AOSP but by all means it should work as afaik the watches aren't tied to Samsung devices
[Samsung Galaxy S23 Ultra] DanGLES3:
Quick note, after checking the code of this module, it won't be much of any use to you as all it does is hide root from the wearable app (which you can already do normally on Magisk) and spoofs an non-Samsung device so it doesn't try checking for Samsung specific integrity checks and the sort
[Samsung Galaxy S23 Ultra] BlackMesa123:
This is because the module is for AOSP and there’s no need to spoof any integrity check there because there are none.
[Samsung Galaxy S23 Ultra] DanGLES3:
Yeah I've figured as much when I looked at the code
[Samsung Galaxy S23 Ultra] akshitmehra:
Thanks for this LSPosed and Magisk module.

The module used to work absolutely fine for LSPosed on Magisk. However, on kernelSU, though LSPosed and other LSPosed modules are working fine using Zygisk on kernelSU, but the KnoxPatch module has stopped working.

Anyone else facing this issue and/or have any workaround or fix?

@BlackMesaa123, sorry for tagging you, but if you can help on this, that will be very helpful? And if you require any logs for the same?

Thank you!
[Samsung Galaxy S23 Ultra] BlackMesa123:
If you can please send over some logs so I can see what's going on under the hood.
[Samsung Galaxy S23 Ultra] akshitmehra:
Thank you for your quick reply.

I was not sure if there were any logs available in LSPosed, but I dumped the logs (attached) for io.mesalabs.knoxpatch from Logcat Extreme.

Let me know if these logs don't work for you and just advise me from where to fetch the logs you need and I'll do it and send back again.

Your work has let me use the absolute stock ROM again, with almost all the features.

EDIT: removed the attachment
[Samsung Galaxy S23 Ultra] BlackMesa123:
I need the actual LSPosed logs, you can get them via the manager app in zip format.
[Samsung Galaxy S23 Ultra] akshitmehra:
Here are the LSPosed Module and Verbose logs.

EDIT: removed the attachments
[Samsung Galaxy S23 Ultra] BlackMesa123:
The module seems to hook just fine, but I do see a lot of errors caused by "zygisksu", which I imagine is the Zygisk port for KernelSU. If you want my honest opinion, I really suggest you to stick around with Magisk, I personally don't find KSU mature enough to daily drive it, at least in the current state. If you still want to try it out, make sure to update every component to its latest version (I see you're using upstream LSPosed, there's a newer upstream version with code 6904), both KSU and every installed module to upstream.
[Samsung Galaxy S23 Ultra] akshitmehra:
Thank you for analysing the issue for me.

I'll try whatever you have advised and will get back to you, in case of any success or other clues.
[Samsung Galaxy S23 Ultra] akshitmehra:
I did two things (listed below) before retrying and don't know which one or both of them made it work, but the module seems to be working on kernelSU now and I am able to use the Knox-enabled Samsung apps, such as Samsung Health. Again, thank you for your help.

1. Update kernelSU, update Zygisk on kernelSU and LSPosed modules to the latest unreleased versions

2. Disable Xposed API call protection in LSPosed
[Samsung Galaxy S23 Ultra] ffriozi:
S23 Ultra B

worked fine with the last fw but with this method i lost my google wallet... so for me this is not good.

there is any solution for only the galaxy watch and google wallet working ?

thanks anyway !
[Samsung Galaxy S23 Ultra] BlackMesa123:
Your issue has nothing to do with this module. Your rooted device has to pass the Play Integrity attestation check in order to use certain apps again, use Displax’s USNF module to achieve this.
[Samsung Galaxy S23 Ultra] ffriozi:
i rooted my s23 ultra with the last Magisk with success, after that i installed the Universal SafetyNet Fix.

safetynet is ok and google wallet works with no problem.

after installing LPosed, safetynet is no longer ok and my wallet stop working... just back working again after removing LPosed and cleaning the cache of gapps.

maybe im doing something wrong? thanks !!!
[Samsung Galaxy S23 Ultra] DanGLES3:
Are you making sure to only apply the Knoxpatch module to the recommended apps? Lsposed shouldn't break Safetynet unless you're trying to load a module into Play Services
[Samsung Galaxy S23 Ultra] ffriozi:
It worked now.... i dont know what happend.
[Samsung Galaxy S23 Ultra] russel5:
@BlackMesa123 hello, can you help with SHM

when i'm compiling kernel with allways permissive mode like THIS SHM are not working at all. I'm install USNM by Displax and my permissive mode is hide, but SHM still not working.

When i'm compiling kernel with enforce mode SHM are working without any problem.

Can you hide permissive mode from the app?

Some screen with both variants.
[Samsung Galaxy S23 Ultra] BlackMesa123:
Mind sharing some logs of the app (possibly both with SELinux permissive and enforcing)? Can't seem to find any reference to SELinux in the app.
[Samsung Galaxy S23 Ultra] russel5:
@BlackMesa123 you can find log with permissive mode HERE
[Samsung Galaxy S23 Ultra] BlackMesa123:
07-10 22:13:52.248 21899 25020 E S HealthMonitor - WsmController: WsmSession.connect(). fail : ERR_INTEGRITY

Did you install the KnoxPatch Enhancer module?
[Samsung Galaxy S23 Ultra] russel5:
Of course

P.S. I'm find a problem, all things is kernelsu options "unmount modules by default"

Thank you for your time and help.
[Samsung Galaxy S23 Ultra] matteo0026:
Hi everyone, I've read that Samsung Wallet doesn't work with this module, but what about the version for the Galaxy Watch, if it is untouched? I have a Watch 5 Pro. Otherwise, I'll have to switch definetely to Google Wallet, even if the app of Samsung is more handy on the Watch.
[Samsung Galaxy S23 Ultra] BlackMesa123:
The app in your watch should work without any issue, the apps list in the main thread is limited to the one in your phone since the module fixes/can’t fix those.
[Samsung Galaxy S23 Ultra] matteo0026:
Probably it couldn't work, since it relies on a plugin of Samsung Pay to add cards. I link it here: https://play.google.com/store/apps/details?id=com.samsung.android.samsungpay.gear

Can you do an analysis if it can work or can someone else try personally to see if it works?
[Samsung Galaxy S23 Ultra] waterpolo:
With latest update SHM is with my S22 working again. Thanks.
[Samsung Galaxy S23 Ultra] BlackMesa123:
Give it a try, doesn't looks like there are extra security checks except for WSM which the Enhancer module already addresses.
[Samsung Galaxy S23 Ultra] arnav7633:
Does it work only on ONE ui and not on custom ROMs?

Also I am using an M31.

I really don't want to take a chance with my watch, researching everything before rooting
[Samsung Galaxy S23 Ultra] BlackMesa123:
Only on One UI stock/based ROMs, it is already specified in OP.
[Samsung Galaxy S23 Ultra] arnav7633:
Didn't notice that, also since this post is under the s23 category, does it happen to be device specific? Or works across the board
[Samsung Galaxy S23 Ultra] BlackMesa123:
No, it works with any Samsung device running One UI 1.0 and above.
[Samsung Galaxy S23 Ultra] fralapo22:
Thanks for your help, I understand that this module only work with phone rooted. I have problems the counter the knox is 0x1 and Samsung Health,Samsung PayPal, etc does not work.
[Samsung Galaxy S23 Ultra] JazonX:
If Knox is 0x1 - You can't run the device in complete stock state anymore.

You have to go back to root, and start hiding spoofing things again. Samsung phones if rooted the effects remain for good, you cant take them back to a complete stock state,
[Samsung Galaxy S23 Ultra] fralapo22:
Thank you very much for your quick response and help, a real pleasure.

The problem is that I don't want to root the Samsung again, I think there is something to be able to run Samsung Health even if knox is at 0x1, do you know if it exists or if it's my thing.

Well, of course, what I am not going to do is change the motherboard, which is the solution for Samsung's SAT.
[Samsung Galaxy S23 Ultra] Dante63:
Samsung is equipped with a piece of hardware that once tripped it can't be reversed, you have to open the device and change that piece... so your only options are back to root and spoof knox or stay on stock and forget about apps requiring knox 0x0...
[Samsung Galaxy S23 Ultra] fralapo22:
Thanks Dante, for your quick response and help Dante. I have found a solution to use Samsung Health with knox 0x1 by installing version 6.19.5.017 and it synchronizes perfectly with the galaxy watch 4. The hardware solution that you say is to change I understand the fuse on which knox is based, I don't know if you can only change this part (e-fuse) or it is mandatory to change the motherboard or if only changing this part the knox counter would return to 0x0. which i think increases using odin.
[Samsung Galaxy S23 Ultra] Dante63:
It increases when flashing anything customized, it can be recovery or rom... it doesn't trip if you flash stock rom of your device even if it was different region because stock signature is verified as official and nothing is tripped...

Sure, you can use that version of Samsung Health but you won't have the ability to use any new Health features introduced in your watch4, also, newer watches won't work with the version you have (5, 6 and so on)...

As for changing the fuse, it's not something simple as battery or fuse swap, it's soldered to the motherboard and only Samsung have the Knox part, so you can't DIY because

1. You don't have the Knox part as I said, Samsung has it...

2. Even if you somehow got the part, let's say old Samsung phone, You may damage the motherboard when trying to swap the part, aside from damaging the part itself...

You may end up with a dead phone...

Samsung will replace the motherboard with either new or refurbished (depends on how they work), they will take your motherboard, remove the Knox piece, place a new one and use it for someone else if the motherboard is in excellent condition...

Don't get me wrong but next time, always research before proceeding into anything, mods, root, or anything because some things are irreversible...
[Samsung Galaxy S23 Ultra] fralapo22:
Thank you very much Dante and I am not misunderstanding you at all, otherwise I thank you for the class you have given me, I already assumed that the only one who can change the motherboard is Samsung or some SAT that can/knows how to do it and I am clear that with this version of Samsung Health I cannot update it and have new functionalities and the knox counter has not increased from 0x0 to 0x1 when using ODIN I thought so or so I had read.

And is it worth changing the motherboard?
[Samsung Galaxy S23 Ultra] Dante63:
The price of changing the motherboard is almost a brand new phone (less specs or older brand), you can go back to root and spoof knox (some features still not avaliable and you'll play cat mouse with many apps, which you will be spending time hiding root from them)...

My advice, sell the phone, or trade-in and get a newer one, if you really don't want root solution, because changing motherboard will not give you the safe feeling of device being waterproof or everything is well put together, because every small component removed from your motherboard will be put on the other one, if they were slightly damaged in the process, you can't tell, you're taking a leap of faith, maybe you can demand for a 1 year warranty on that motherboard (long shot, they may reject it and give a month or few more)...

I'm against replacing parts in general...

I have always rooted every Samsung phone i owned, simply because I mod and develop, i always need a rooted device with me, but i got fed up from apps not working because of root detection, got fed up from the cat mouse game, so i got me a second Samsung phone untouched for those apps...

Anyway, the decision is yours alone to make...

Best of luck...
[Samsung Galaxy S23 Ultra] fralapo22:
A real pleasure Dante you are a professional and I will follow your advice.

I will try to get a second-hand Samsung phone and have all the features, because the only applications that do not work are the Samsung ones, the rest of the applications and the perfect phone.

The problem is with Samsung Health, which is the only one I want to use.

I bought this phone on Amazon and it came from Luxembourg even though I am Spanish, I have seen if I could return it and the deadline to do so has passed.

Sincerely
[Samsung Galaxy S23 Ultra] waterpolo:
Did you try the patched Samsung Health app on XDA? I haven't installed, because I have no issues with root and the (normal) Samsung Health app.
[Samsung Galaxy S23 Ultra] fralapo22:
Thank you very much for your answer, Waterpolo, what Samsung Health patched application do you tell me, if you can send me the link please.
[Samsung Galaxy S23 Ultra] waterpolo:
[Knox-Patched] Samsung Health 6.3.0.027 for all Samsung Galaxy phones

long time since I last wrote on xda.. just passing by just bought my brand new Samsung Galaxy Watch Active and set it up together with my Galaxy S9 phone (will jump to the S10 in the near future). while doing so, I jumped across Samsung Health...

xdaforums.com
[Samsung Galaxy S23 Ultra] fralapo22:
Thank you very much Waterpolo, this application is very old I see that the post is from 2019 and I don't know if it will give the possibility of installing the most modern updates of Samsung Health, do you know if it would be possible?
[Samsung Galaxy S23 Ultra] fralapo22:
I have installed the patch and Samsung Health

I have installed the Samsung Health patch and it does not open. I have written to xpirit to see if something else needs to be done besides installing the patch from the post.
[Samsung Galaxy S23 Ultra] Dante63:
This method is unstable and you will constantly face server connection issues because Samsung can detect the app being a mod...

In fact, it has been abandoned and no longer maintained, here is the official site:

SamsungAppsPatcher - Adil Hanney

Samsung Apps Patcher for Samsung phones with custom ROMs.

adil.hanney.org

Aside that, every update will need to be modded and it's not simple, the project has been abandoned, now the best rooted device method is using @BlackMesa123 patching method because you'd be hustle free from waiting for updated modding apps and the patch would work with any stock Samsung app (with exception of few apps and features)...

Or as I suggested, trade-in the device or get another one, and no need to install any mods and dodging knox/root detections...
[Samsung Galaxy S23 Ultra] fralapo22:
Once again thank you very much Dante, you are a true professional and you have shown it to me and it agrees with you that I am going to acquire an intermediate model with Knox at 0x0 and forget about root and patch. I will save myself a lot of headaches and the phone with knox in 0x1 I will sell it even for €100. Well, not everyone needs to run Samsung apps. Thank you very much for all your help and collaboration, a real pleasure.
[Samsung Galaxy S23 Ultra] Dante63:
I'm more than happy to help at anytime...

Again, for the future, no harm from reading everything about any application or mods, even asking, find pros and cons, the more you know, the better decision you will be making...

Best of luck,

Cheers bud...
[Samsung Galaxy S23 Ultra] fralapo22:
If you allow me and authorize me, when I have any questions I will consult you to have your professional and honest proposal and advice.

I wish you the best and that you do well.
[Samsung Galaxy S23 Ultra] onkel_Andi:
Is Enterprise MDM with Work Mode also supported?
[Samsung Galaxy S23 Ultra] ditternation:
Secure wifi is not working. Tried everything. G996b unbound rom with magisk alpha and knoxpatch v0.6. So newest version. Any advice? Thanks.
[Samsung Galaxy S23 Ultra] sco00262:
secure folder force closed.
[Samsung Galaxy S23 Ultra] BlackMesa123:
Please send some system logs so I can figure out what's going on, you can get them via the LSPosed Manager app.
[Samsung Galaxy S23 Ultra] sco00262:
thank u.
[Samsung Galaxy S23 Ultra] BlackMesa123:
com.samsung.knox.securefolder/10119
com.tsng.hidemyapplist
icu.nullptr.hidemyapplist.xposed.XposedEntry

Avoid hooking Secure Folder with HideMyAppList and try again
[Samsung Galaxy S23 Ultra] sco00262:
It's same FC.
[Samsung Galaxy S23 Ultra] AnonVendetta:
@BlackMesa123: Excellent work, Secure Folder is now working on my Tab S7+ running the latest Android 13. I only had to install the latest apk and enable in LSPosed, enhancer apparently not needed in my case. I only care about SF anyway.

Several months ago I tried an older KnoxPatcher release on A13, but my device got stuck in a neverending bootloop/wouldn't go past Samsung logo. My data partition isn't encrypted.
[Samsung Galaxy S23 Ultra] AnonVendetta:
@BlackMesa123: I just noticed another unintended but pleasant side effect of using KnoxPatcher. In addition to Secure Folder, I can now use the Shelter app to set up a work profile, for yet another method of app isolation. Without KnoxPatcher, Shelter fails to set up the WP, it just says a security policy has prevented its' creation. I'm assuming that Knox is playing a role in this, and your patcher patches whatever values are needed.

Do you know if Secure Folder makes use of Android's Work Profile? I know Samsung likes to do things differently, by perverting standard Android features in favor of their proprietary solutions.
[Samsung Galaxy S23 Ultra] BlackMesa123:
Both Secure Folder and Work profile use the Android multi user API's, which is where the device integrity check is located at, so any feature using this API is broken on Samsung devices with a broken warranty bit/trusted boot status.
[Samsung Galaxy S23 Ultra] AnonVendetta:
Makes sense, thanks for the short explanation.