salvogiangri / KnoxPatch

LSPosed module to get Samsung apps/features working again in your rooted Galaxy device.
GNU General Public License v3.0
759 stars 31 forks source link

Samsung A70 (11) need assistance for Secure Folder #37

Closed sleeping3119 closed 1 year ago

sleeping3119 commented 1 year ago

Device AP: A705FNXXU5DVG3 SDK: 30

I read that if FBE is enabled on Android 11 secure folder might don't work. From the previous issues i came to know that for disabling FBE i have to modify "/vendor/etc/fstab.qcom" and perform factory reset.

Is there not any way to fix this only using magisk module for that particular device. we can modify fstab.qcom by Magisk module but then factory reset is the problem.

Please correct me if i am wrong from previous issues i understood that we can patch vold binary to make secure folder work but its patch is not generic. Because i am noob i tried A71 patch that you provided on my A70 which was pretty much similar.

BEFORE-> A71: A80317B8A9831738E7170094A8C3583888000034A00358F8400000B4F51B0394 A70: A80317B8A9831738E7170094A8C3583888000034A00358F8400000B41C1C0394

AFTER-> A71: A80317B8A98317381F2003D5A8C3583888000034A00358F81F2003D5F51B0394 A70: A80317B8A98317381F2003D5A8C3583888000034A00358F81F2003D51C1C0394 I Sytemlessly used the patched binary by Magisk module but it did not work.

salvogiangri commented 1 year ago

The vold (Volume Daemon) system service can't be replaced with a Magisk module due to its nature https://github.com/BlackMesa123/KnoxPatch/issues/23#issuecomment-1646526542, so the only way would be to manually replace it in the system partition. You can send over your vold bin to check if the hex patch is correct.

sleeping3119 commented 1 year ago

here is the vold bin and after the correct patch i just have to overwrite it to bin directory in recovery, right ?

salvogiangri commented 1 year ago

here is the vold bin and after the correct patch i just have to overwrite it to bin directory in recovery, right ?

Correct, make sure to backup the original vold bin in case you encounter any issues.

The patch for this vold binary is (offset 0x0006A040):

salvogiangri commented 1 year ago

Let's move the discussion to #26, closing this issue.