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

Search This thread

BlassGO

Senior Member
Jan 19, 2021
155
354
SAMSUNG GENERAL PATCHER V2.2

SUPPORT: TELEGRAM CHANNEL - TELEGRAM GROUP - SUPPORT ME

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
12
0
25
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: 729

ahmed.sbahii

Member
Dec 30, 2013
12
0
25
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
155
354
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
155
354
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
12
0
25
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
12
0
25
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: 330

ahmed.sbahii

Member
Dec 30, 2013
12
0
25
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
155
354
- 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