[Magisk MODULE] Patch SecureFolder - Disable Signature Verification - Flag Secure - Biometrics after reboot

Search This thread

BlassGO

Senior Member
Jan 19, 2021
106
196
SAMSUNG GENERAL PATCHER V2.2

SUPPORT: TELEGRAM CHANNEL - TELEGRAM GROUP

ABOUT THIS:
Magisk module to automatically patch the services.jar of Samsung devices, based on Dynamic Installer

The compatibility is relative but Android 10+ is recommended


ALL features:
  • Disable Signature Verification
  • Disable Flag Secure
  • Try to patch SecureFolder (Android 10 method and Android 11)
  • Enable Biometrics (Fingerprint/FaceUnlock) after reboot
  • General APK recompiling with stock Signature to prevent rejects from system


HOW DO I USE IT?
Code:
1. Simply install the module on 64bits devices (Not tested on 32bits) by Magisk app
2. The process requires the recompilation of a .JAR so be patient!

CREDITS TO:


  • Me @BlassGO (Developer of Samsung Patcher and Dynamic Installer)




General Samsung Patcher 2.2

WARNING: In case of any ERROR, delete the module: /data/adb/modules/samsung-patcher

 
Last edited:

ahmed.sbahii

Member
Dec 30, 2013
10
0
23
Syria
When trying to install module I got this error..
Please tell me how to fix it..
 

Attachments

  • Screenshot_20210517-025051_EFTSU Manager.jpg
    Screenshot_20210517-025051_EFTSU Manager.jpg
    769.6 KB · Views: 81

ahmed.sbahii

Member
Dec 30, 2013
10
0
23
Syria
Yeah, its a magisk module
My device Doesn't accept Magisk...!
I don' know why..!
After I install magisk it doesn't give any permission root...!
Can you give me another way to install this model or do it myself manually...
Without Magisk or TWRP..?
If you have it please tell me because I need run secure folder again..
Thanks in advance..
 

BlassGO

Senior Member
Jan 19, 2021
106
196
My device Doesn't accept Magisk...!
I don' know why..!
After I install magisk it doesn't give any permission root...!
Can you give me another way to install this model or do it myself manually...
Without Magisk or TWRP..?
If you have it please tell me because I need run secure folder again..
Thanks in advance..
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework

Additionally replace the libs from the zip in /system/lib and /system/lib64

NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in older Android versions
 

BlassGO

Senior Member
Jan 19, 2021
106
196
My device Doesn't accept Magisk...!
I don' know why..!
After I install magisk it doesn't give any permission root...!
Can you give me another way to install this model or do it myself manually...
Without Magisk or TWRP..?
If you have it please tell me because I need run secure folder again..
Thanks in advance..
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework

NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in
 

ahmed.sbahii

Member
Dec 30, 2013
10
0
23
Syria
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework

NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in
Now after many tryies to install magisk
Succesfully installed and try with magisk but same error nothing changed..
My sevice is on Android 10
What is the pronlem with my device..?
My device is N970F..?
What should I do now..?
 

ahmed.sbahii

Member
Dec 30, 2013
10
0
23
Syria
If u have root access (without magisk) and based on ur screenshots, it seemed that almost everything worked, in that case edit the zip META-INF/com/google/android/magisk/customize.sh and change the mod="$MODPATH/system/framework/services.jar" to mod="/sdcard/services.jar", then replace the services.jar that will be generated in your internal memory in /system/framework

Additionally replace the libs from the zip in /system/lib and /system/lib64

NOTE: The SecureFolder patch is based on Android 10 method, maybe it not work in older Android versions
And this is the log from Magisk
 

Attachments

  • Screenshot_20210518-212524.jpg
    Screenshot_20210518-212524.jpg
    505.4 KB · Views: 43

ahmed.sbahii

Member
Dec 30, 2013
10
0
23
Syria
Huh, press the top save button for a full log
- Copying zip to temp directory
- Installing General_Samsung_Patcher_BlassGO.zip
ls: /system/sbin: No such file or directory
ls: /product/bin: No such file or directory
ls: /system/xbin: No such file or directory
ls: /odm/bin: No such file or directory
ls: /vendor/xbin: No such file or directory
- Device is system-as-root
chown: 0: No such file or directory
chown: 0: No such file or directory
----------------------------------------
>>> Powered by Magisk 23000
----------------------------------------

chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
--------------------------------------------------
General Samsung Patcher
--------------------------------------------------
by @BlassGO | Version: Beta-1.0
--------------------------------------------------
-- Disable Signature Verification
-- Disable Flag Secure
-- Try to patch SecureFolder (Android 10+)
--------------------------------------------------

-- Making magisk space
-- Decompiling services.jar...
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
-- Patching services.jar for SecureFolder...
Edited: /dev/tmp/services/smali_classes2/com/android/server/locksettings/SyntheticPasswordManager.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/TimaHelper.smali
Edited: /dev/tmp/services/smali/com/android/server/KnoxFileHandler.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
-- Disabling Flag Secure in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/wm/ScreenshotController.smali
-- Disabling Signature Verification in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService$InstallParams.smali
-- Recompiling services.jar...
-- Please wait...( Long Process )
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
W: Could not find resources
CANNOT LINK EXECUTABLE "zip": library "libandroid-support.so" not found
mv: can't create '/data/adb/modules_update/samsung-patcher/system/framework/services.jar': Permission denied
-- Some ERROR occurred during the recompilation !
! Installation failed



A full log..!!
 

BlassGO

Senior Member
Jan 19, 2021
106
196
- Copying zip to temp directory
- Installing General_Samsung_Patcher_BlassGO.zip
ls: /system/sbin: No such file or directory
ls: /product/bin: No such file or directory
ls: /system/xbin: No such file or directory
ls: /odm/bin: No such file or directory
ls: /vendor/xbin: No such file or directory
- Device is system-as-root
chown: 0: No such file or directory
chown: 0: No such file or directory
----------------------------------------
>>> Powered by Magisk 23000
----------------------------------------

chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
--------------------------------------------------
General Samsung Patcher
--------------------------------------------------
by @BlassGO | Version: Beta-1.0
--------------------------------------------------
-- Disable Signature Verification
-- Disable Flag Secure
-- Try to patch SecureFolder (Android 10+)
--------------------------------------------------

-- Making magisk space
-- Decompiling services.jar...
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
-- Patching services.jar for SecureFolder...
Edited: /dev/tmp/services/smali_classes2/com/android/server/locksettings/SyntheticPasswordManager.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/TimaHelper.smali
Edited: /dev/tmp/services/smali/com/android/server/KnoxFileHandler.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
-- Disabling Flag Secure in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/wm/ScreenshotController.smali
-- Disabling Signature Verification in services.jar...
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService.smali
Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService$InstallParams.smali
-- Recompiling services.jar...
-- Please wait...( Long Process )
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
chown: 0: No such file or directory
W: Could not find resources
CANNOT LINK EXECUTABLE "zip": library "libandroid-support.so" not found
mv: can't create '/data/adb/modules_update/samsung-patcher/system/framework/services.jar': Permission denied
-- Some ERROR occurred during the recompilation !
! Installation failed



A full log..!!
Okey thx
It seems a problem with the Dynamic Installer base, but currently I already developed a v2.0 based on a new version of Dynamic Installer, contact me on pv
 
  • Like
Reactions: ahmed.sbahii

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Still doesn't work for me. (My device is snapdragon)
    In some telegram groups, I heard that some people got secure folder fixed, by removing Knox related apps. Maybe you could check out that solution?

    Edit: So I checked the groups out to make sure, and people said they deleted all knox apps inside system/app and system/priv-app but only left KnoxGuard remaining
    And this should fix securefolder without any patches
    Ironically the method was shared by me, but I didnt keep track of knox apps, I cant test it on my device either cuz SecureFolder works for me even if I install stock

    Can you enter the support group that is in the thread?
    1
    where is the link?
    1
    where is the link?
    Open General Samsung Patcher from the end
    1
    - Copying zip to temp directory
    - Installing General_Samsung_Patcher_BlassGO.zip
    ls: /system/sbin: No such file or directory
    ls: /product/bin: No such file or directory
    ls: /system/xbin: No such file or directory
    ls: /odm/bin: No such file or directory
    ls: /vendor/xbin: No such file or directory
    - Device is system-as-root
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    ----------------------------------------
    >>> Powered by Magisk 23000
    ----------------------------------------

    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    --------------------------------------------------
    General Samsung Patcher
    --------------------------------------------------
    by @BlassGO | Version: Beta-1.0
    --------------------------------------------------
    -- Disable Signature Verification
    -- Disable Flag Secure
    -- Try to patch SecureFolder (Android 10+)
    --------------------------------------------------

    -- Making magisk space
    -- Decompiling services.jar...
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    -- Patching services.jar for SecureFolder...
    Edited: /dev/tmp/services/smali_classes2/com/android/server/locksettings/SyntheticPasswordManager.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/TimaHelper.smali
    Edited: /dev/tmp/services/smali/com/android/server/KnoxFileHandler.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PersonaServiceHelper.smali
    -- Disabling Flag Secure in services.jar...
    Edited: /dev/tmp/services/smali_classes2/com/android/server/wm/ScreenshotController.smali
    -- Disabling Signature Verification in services.jar...
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerServiceUtils.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService.smali
    Edited: /dev/tmp/services/smali_classes2/com/android/server/pm/PackageManagerService$InstallParams.smali
    -- Recompiling services.jar...
    -- Please wait...( Long Process )
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    chown: 0: No such file or directory
    W: Could not find resources
    CANNOT LINK EXECUTABLE "zip": library "libandroid-support.so" not found
    mv: can't create '/data/adb/modules_update/samsung-patcher/system/framework/services.jar': Permission denied
    -- Some ERROR occurred during the recompilation !
    ! Installation failed



    A full log..!!
    Okey thx
    It seems a problem with the Dynamic Installer base, but currently I already developed a v2.0 based on a new version of Dynamic Installer, contact me on pv
    1
    After patching secure folder with this module, it still failed to create the secure folder.
    Also tried hiding it in magisk.

    I'm running android 11
  • 2
    SAMSUNG GENERAL PATCHER V2.2

    SUPPORT: TELEGRAM CHANNEL - TELEGRAM GROUP

    ABOUT THIS:
    Magisk module to automatically patch the services.jar of Samsung devices, based on Dynamic Installer

    The compatibility is relative but Android 10+ is recommended


    ALL features:
    • Disable Signature Verification
    • Disable Flag Secure
    • Try to patch SecureFolder (Android 10 method and Android 11)
    • Enable Biometrics (Fingerprint/FaceUnlock) after reboot
    • General APK recompiling with stock Signature to prevent rejects from system


    HOW DO I USE IT?
    Code:
    1. Simply install the module on 64bits devices (Not tested on 32bits) by Magisk app
    2. The process requires the recompilation of a .JAR so be patient!

    CREDITS TO:


    • Me @BlassGO (Developer of Samsung Patcher and Dynamic Installer)




    General Samsung Patcher 2.2

    WARNING: In case of any ERROR, delete the module: /data/adb/modules/samsung-patcher

    2
    Download link not working, it says the file got removed
    2
    Still doesn't work for me. (My device is snapdragon)
    In some telegram groups, I heard that some people got secure folder fixed, by removing Knox related apps. Maybe you could check out that solution?

    Edit: So I checked the groups out to make sure, and people said they deleted all knox apps inside system/app and system/priv-app but only left KnoxGuard remaining
    And this should fix securefolder without any patches
    Ironically the method was shared by me, but I didnt keep track of knox apps, I cant test it on my device either cuz SecureFolder works for me even if I install stock

    Can you enter the support group that is in the thread?
    1
    Download link not working, it says the file got removed
    Thanks for the report, the download is now available
    1
    Worked like a charm on my S20 FE G781B running android 11 with G781BXXU3CUD6 update! Thanks!
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone