[TOOL] KnoxPatcher - use Secure Folder after root

Status
Not open for further replies.

nm111

Member
Apr 26, 2019
7
23
0
I have finally figured out a way to use Secure Folder with a rooted / knox tripped phone!
So far this is WIP, but I have tested it to work on an SM-G960F running April 2019 rom.
You will need a GNU/Linux machine to patch your system, but a flashable zip is coming soon.
Instructions (note these are github links, I can't post actual links):
  • Get the tool at nm111/knoxpatch2
  • Install dexpatcher. You can use DexPatcher/dexpatcher-gradle-tools
  • Install vdexExtractor and compact_dex_converter (both can be found at anestisb/vdexExtractor)
  • Run ./pull_files.sh
  • Run ./patch.sh
  • Copy out/services.jar back onto the device.
  • Edit build.prop and remove ro.config.iccc_version.
  • Now secure folder will work.
Proof coming soon.
 
Last edited:

nm111

Member
Apr 26, 2019
7
23
0
I have done some research, and I think it is unlikely that a flashable zip would work, unless someone could get compact_dex_converter running in TWRP (it just segfaults). I added some more scripts to download and deodex services.jar. Also I have uploaded my own patched build PPR1.180610.011.G960FXXS3CSD1 services.jar at drive[.]google[.]com/file/d/1AW7urpwMzjj3gorumsmfMeu6qh3cxD6J/view?usp=sharing. BTW, this works perfectly as far as I can see. Could someone try it out and post what happens?
 
Last edited:

zeyaan

Senior Member
Jun 11, 2012
847
621
123
Bangalore
Eagerly waiting. The only thing stopping me from rooting is Knox tripper!!! Don't want to lose my last 6 months of warranty.

By the way, Wil this be universal and not processor specific? Curious me!
 

nm111

Member
Apr 26, 2019
7
23
0
Are other features like samsung pass / pay accessible with this patch ? Normally you also lose these with root
Samsung pass would probably never work as it checks the warranty status internally in the trustlet and just never allows storage of data if WB is blown. Samsung pay may work if I can bypass the signature check (I am working on it now).
 

nm111

Member
Apr 26, 2019
7
23
0
Eagerly waiting. The only thing stopping me from rooting is Knox tripper!!! Don't want to lose my last 6 months of warranty.

By the way, Wil this be universal and not processor specific? Curious me!
You will still lose warranty if you root, this is just so you can use Knox apps.
It might work on other phones (i think that's what you mean), but I don't have any other phones so can't check.
 

rcnitropowered

Senior Member
Nov 15, 2008
119
22
0
I have finally figured out a way to use Secure Folder with a rooted / knox tripped phone!
So far this is WIP, but I have tested it to work on an SM-G960F running April 2019 rom.
You will need a GNU/Linux machine to patch your system, but a flashable zip is coming soon.
Instructions (note these are github links, I can't post actual links):
  • Get the tool at nm111/knoxpatch2
  • Install dexpatcher. You can use DexPatcher/dexpatcher-gradle-tools
  • Install vdexExtractor and compact_dex_converter (both can be found at anestisb/vdexExtractor)
  • Run ./pull_files.sh
  • Run ./patch.sh
  • Copy out/services.jar back onto the device.
  • Edit build.prop and remove ro.config.iccc_version.
  • Now secure folder will work.
Proof coming soon.

Can you share the zip please
 

nm111

Member
Apr 26, 2019
7
23
0
Update:
I have created a better version which bypasses all integrity checks but SPAY and SPASS still do not work due to them using their own trustlets. Also it is highly insecure as it forces all signature checks to return true. If I get DexPatcher to work on this then I will fix the signatures (or make an xposed module?) but if not I will release this later.
A zip will 100% not work. I have tried for ages and no luck. This is because the Samsung libraries are not loaded when in recovery so the patcher and deodexer do not work. The likely result will be a Magisk module or app which does the patching.
I am still working on this so please wait!
 

w4po

Member
Feb 5, 2016
5
0
0
Update:
I have created a better version which bypasses all integrity checks but SPAY and SPASS still do not work due to them using their own trustlets. Also it is highly insecure as it forces all signature checks to return true. If I get DexPatcher to work on this then I will fix the signatures (or make an xposed module?) but if not I will release this later.
A zip will 100% not work. I have tried for ages and no luck. This is because the Samsung libraries are not loaded when in recovery so the patcher and deodexer do not work. The likely result will be a Magisk module or app which does the patching.
I am still working on this so please wait!
Thank you <3 , We are waiting :good:
 

justforgot

Senior Member
Oct 11, 2012
522
146
43
Update:
I have created a better version which bypasses all integrity checks but SPAY and SPASS still do not work due to them using their own trustlets. Also it is highly insecure as it forces all signature checks to return true. If I get DexPatcher to work on this then I will fix the signatures (or make an xposed module?) but if not I will release this later.
A zip will 100% not work. I have tried for ages and no luck. This is because the Samsung libraries are not loaded when in recovery so the patcher and deodexer do not work. The likely result will be a Magisk module or app which does the patching.
I am still working on this so please wait!
Would appreciate if you will be able to record to process how to do it as well. Thank you and we are all waiting for this method.
 

Ahmad Moemen

Senior Member
May 2, 2016
143
49
28
Mansoura
So, how is the progress going so far? All good?
Sorry for that basic question, I'm eagerly waiting, I only want the Secure folder, that's it.
Thank you and keep going!
 
Status
Not open for further replies.