yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy A21s Guides, News, & Discussion] David112+:
1. The only workaround for this is to make a new Super.img and flash it, the reason why you have to do this is because you have to make it Read/Write, because it's only Read-only in stock, and you also have to modify the fstab to allow for write operations in the system partition, as of now, I haven't really found a way to edit the fstab of boot.img

If you're planning into writing data to the system partition from recovery (custom recovery such as TWRP and OrangeFox), you have to edit the fstab file located in "/etc/fstab", This file is automatically generated by the recovery so you might have some issues after making it Read/Write

In order to make it read/write you basically have to flash new super.img that allows read/write operations and for recovery, you edit the fstab file, and in order to do that in android, you have to patch the fstab of boot.img in order for it to work

2. In order to keep the modules, you basically have to delete every folder in data except for adb, if that doesn't work then delete every folder except for the "app" folder with only magisk and the "adb" folder

To do that you need a custom recovery because the stock one doesn't allows you to delete specific folders in the partition, instead it formats it
[Samsung Galaxy A21s Guides, News, & Discussion] Jukmisael:
ROM ZTO, A21S working perfectly. It would just be nice to have the Manager in v23 at least, many modules ask for it.
[Samsung Galaxy A21s Guides, News, & Discussion] geocamus:
Hi Brother, can you help me please, i try to patch with SM-A217M_ETE_A217MUBU5CUD1 and Odin give error and when i try to doit with the attached boot.img and vbmeta.img into the tar file, and flash it with BL, CP, CSC using Odin, this last Close inmediately. I flash de AP on .tar, dont change to .tar.md5 and if i do, Odin doesnt recognize this file. I speak spanish if you can help me, thanks in advance.

Click to expand...
[Samsung Galaxy A21s Guides, News, & Discussion] Wowoslaw:
Hi friends, I want to ask how to make root on my phone samsung a21s ANDROID 11 do you have any procedure? 🙄 Thank you for every advice wowo 🙂
[Samsung Galaxy A21s Guides, News, & Discussion] cater2:
no purpose
[Samsung Galaxy A21s Guides, News, & Discussion] MaBo2020:
Rooters: Good Job, but why not Step-by-Step with all Files for downloading ? I try many Methodes likes this here, but NO gives me RootAcess ! So the Step-By-Step and all Files will helping much, not only Me ... And is this Methode working woth European - Models of A21s ? (Sorry my English, iam from Germany)
[Samsung Galaxy A21s Guides, News, & Discussion] cater2:
As I did on my sm-m127f (aka galaxy M12)

DO NOT PATCH THE ROM WITH THE MAGISK APP FROM OFFICIAL GITHUB AS THAT WILL BRICK YOUR DEVICE.

1) Download my firmware stock .

I used the "SamFirm_Reborn" program, which the creator says downloads from Samsung servers

2) Unlocking bootloader: I think this is a great guide for it. Keep in mind that you must unlock the bootloader before proceeding with installation, and you WILL trip knox when you do so. Also, unlocking bootloader and installing Magisk will wipe your data + internal storage, so please back up all of your data before installation.

3) I downloaded Magisk patched , shown in the tutorial

https://xdaforums.com/attachments/magisk_patched_for_a21s-apk.5300541/

4) I followed the tutorial on this page (read carefully) to install Magisk .I followed the installation regarding Samsung devices .

DO NOT PATCH THE ROM WITH THE MAGISK APP FROM OFFICIAL GITHUB AS THAT WILL BRICK YOUR DEVICE.

I used Magisk Patched instead of the official magisk !!!

5) By following the part of the tutorial to install Magisk where it says:

"Install the latest Magisk app and launch the app. It should show a dialog asking for additional setup. Let it do its job and the app will automatically reboot your device."

I used the patched Magisk given in this tutorial

6) After everything done , in Magisk app , I disabled updates ...
[Samsung Galaxy A21s Guides, News, & Discussion] Devilrock09:
hi,

I have done all this, but when after i do all the step when the mobile restart, the magisk app doesn't work cause he can't be able do to a update on itself and with a rootchecker, its say my mobile is not rooted.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Worked For Me Rooted M12 Successfully Thank you So much :-)
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Thanks this thing worked on my Samsung Galaxy M12 and now it's rooted, just few questions to be asked:

1. Can I update my Magisk Using direct install method, will any thing brick.

2. The safetynet is showing error how can I fix it
[Samsung Galaxy A21s Guides, News, & Discussion] cater2:
DO NOT PATCH THE ROM WITH THE MAGISK APP FROM OFFICIAL GITHUB AS THAT WILL BRICK YOUR DEVICE.

As I understand , do not update Magisk , always use Magisk Patch
[Samsung Galaxy A21s Guides, News, & Discussion] cater2:
I followed the link below and installed the second patch Safetynet fix shim Mod zip

https://xdaforums.com/t/magisk-general-support-discussion.3432382/post-85573473

Don't forget to clear Google Store data in Setting --> App ; after zip with Magisk

NOTE: The safetynet-fix-v1.2.0-MOD module is working better for me. The other module was making my system unstable
[Samsung Galaxy A21s Guides, News, & Discussion] cater2:
Hi

I'm experiencing what appears to be a bug...

I installed Magisk Patch as instructed : The first time I was not able to use Galaxy Store and download Smart Switch app , on phone .

I uninstalled Magisk and Galaxy Store worked.

I decided to reinstall Magisk from zero.

Now Galaxy Store works but still can not download smart Switch app and something new has appeared , can not download to make dynamic lock screen work ...

In summary : The first time I installed patched Magisk , Galaxy Story and Smart Switch does not work ...

Now Galaxy Story works , but I find configuration problem on lock screen and Smart Switch

Interestingly thing is that in Setting --> Wallpaper Services , I can not select " dynamic lock screen " . It is always at none. If I select , "dynamic lock screen" , then back to "none"

If anyone has any tips please tell them here

Modules installed:

Debloater

Universal SafetyNet Fix

BusyBox for Android NDK

thanks

SOLVED :

Uninstalled safetynet-fix-shim-MOD.zip module and fixed the problem .

I installed safetynet-fix-v1.2.0-MOD .zip module !

Note: The 2 modules give problems in samsung apps (Galaxy Store, Smart Switch, Dynamic Wallpaper; Galaxy store doesn't update and I can't login, smart switch is unstable and doesn't download, Dynamic Wallpaper doesn't download them; only back working , if you uninstall the safetynet module )
[Samsung Galaxy A21s Guides, News, & Discussion] platonicbomb:
Would you be willing to walk me through this via Zoom for a fee? It would be my first time rooting a phone. My goal is to set the phone up as a VPN router (it needs to receive wifi connection in India and broadcast it via hotspot as if the signal is from the USA).
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
do you own a server from USA for vpn service, btw i am Indian too, tum chaho toh mujh se hindi mai baat kar sakte ho
[Samsung Galaxy A21s Guides, News, & Discussion] platonicbomb:
Well my Hindi is not that great… I’m from the USA, living in Gurgaon. I have only a VPN that connects me to the USA, but I don’t own a server there
[Samsung Galaxy A21s Guides, News, & Discussion] wonkeyeyes:
You need A iDE try import your project to android studio or eclipse , tweak few settings and build the app or which you need
[Samsung Galaxy A21s Guides, News, & Discussion] Subliminize:
Did anyone make this work?
[Samsung Galaxy A21s Guides, News, & Discussion] Subliminize:
Would this work with SM-A217F/DS?
[Samsung Galaxy A21s Guides, News, & Discussion] Subliminize:
Are you on A11?
[Samsung Galaxy A21s Guides, News, & Discussion] kcchan48:
Mine is a single SIM model. Are you able to download the stock firmware for SM-A217F/DS model?
[Samsung Galaxy A21s Guides, News, & Discussion] kcchan48:
Yes. 1 September 2021 Security patch level.
[Samsung Galaxy A21s Guides, News, & Discussion] Subliminize:
Yes I was. Btw, do you know how can I pull my .tar from android internal storage? Because I don't have sd card and I can't seem to find the exact location. Do i really need adb?
[Samsung Galaxy A21s Guides, News, & Discussion] Subliminize:
Omg omg I did it I DID IT! I was so scared lol thanks

kcchan48 🤩🤩🤩🤩 SM-A217F/DS/XTC. A11.​
[Samsung Galaxy A21s Guides, News, & Discussion] Subliminize:
Now I just wanna ask, is it okay now to use the original Magisk app that can be updated instead of the modified one?
[Samsung Galaxy A21s Guides, News, & Discussion] kcchan48:
From the OP:

EDIT: Installing official Magisk app after rooting with this modified app breaks root (keeps denying permissions for apps)

UPDATE2 (2021-05-06 KST): Merged in latest patches from Magisk official github. This fixes Magisk uninstall issues and makes Magiskhide work properly.

Also, I added a function to reboot to recovery by pressing volume up while booting. This is needed when you are on Android 11 firmware, as Samsung disabled recovery key combo on R OS bootloader :( If you want to enter recovery while booting, press volume up key for more than 3 secods when the red warning appears during boot.

It is not clear if the latest version has fixed the issue, but I did try to update from the patched Magisk by clicking on the Update button, but it failed for me.
[Samsung Galaxy A21s Guides, News, & Discussion] johnny_nb:
Hi, this is perfect. Your Magisk modification works for Galaxy M12 SM-M127F. The phone is root !!! I have a build of Central Europe XEZ-M127FXXS2AUE2. Do you have a similar modification of Magisk for Galaxy A52s 5G SM-SM-A5289B? Unfortunately, this method does not work on this.
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
I devoted plenty of time yesterday to analyze those actions and observed various facts which I want to share.

Maybe any conclusions will come up?

BTW:

I didn't root my phone yet, I cannot allow myself any failure at the moment.

Concerning the ankush1492 advice:

If I patched the whole AP file - except boot.img vbmeta.img was patched, too.

That would explain your success.

I tried patch vbmeta.img separately - it didn't work.

Patching boot.img - succeeded.

Then if we patch boot.img only we don't have patched vbmeta.img then pushing AP with unpatched vbmeta.img to phone may eventually lead to failure.

Those are md5sums of my patched files but probably it will give nothing as they are for XEO ROM then not necessarily will correspond to other versions.

MD5SUM:

887afdc83554da23e2858dd59d2b8c24 boot.img - patched

42339f87079163479689f18c0c6bb11a vbmeta.img - patched

I provide sums just for information.

Please compare with yours.

It may give some input eventually.
[Samsung Galaxy A21s Guides, News, & Discussion] Israelleite:
is it really worth to update this late firmware ? mine is working just fine, rooted, btw, my phone is the US/Latin version, SM-A217M --> the M version

I´m from Brazil !
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
I would vote for "no".

It is always a bit of risk and the reward is not that big.
[Samsung Galaxy A21s Guides, News, & Discussion] heats:
Just to confirm - I was able to root my A127F using the patched Magisk apk.

You can either use the latest source from https://github.com/topjohnwu/Magisk (but compile it by yourself) which already contains the fix from the patched Magisk (https://github.com/topjohnwu/Magisk/pull/4788) or use the patched .apk for ease. However, you should install the patched Magisk after rooting again.

The latest release of Magisk (currently) is from May 2021 (v23.0) - it does not include this patch. I guess, after installing the patched version, we can leave the option for "automatic upgrade" once a new Magisk release is out, because it should contain the patch, thus we'll be running an official release.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Hello All Here I have compiled the magisk manager version 0f71edee (23015) since no one has compiled the latest version I did it for u ppl u can download this .apk file to root only for A21s and M12. as stated by

grccorps at the beginning that adding these lines:​

if (strcmp(cmd->hardware, "exynos850") == 0) {

cmd->skip_initramfs = false;

}

will make the device boot properly but as per my inspection the word cmd is replaced with config which means it should look like this:

if (strcmp(config->hardware, "exynos850") == 0) {

config->skip_initramfs = false;

}

i have cloned the master version and then compiled it in Linux Distro.

and had to comment a line in gradle.build(native) //path

so thats it u can try the latest magisk manager right now without getting boot loop.

note no need to flash the AP file just install using Direct Install (Recommended) method.

If it app says requires additional setup just ignore it and do not press OK button just wait for another release I will try to fix it.

There is no button to check SafetyNet but I think it still fails... turn on Zygisk and Enforce DenyLisy and configure the list search for the banking app and turn on all the switches then reset the app data, then try to run that app again because in my case banking app is working by these steps.

Now I have Fixed That Reboot Issue.

....

....

SafetyNet passed using safetynet-fix v2.2.0 Zygisk:

GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk

Google SafetyNet attestation workarounds for Magisk - kdrag0n/safetynet-fix

github.com

Device got certified successfully.

Use This At Your OWN RISK I Am Not Responsible For Any Damages Caused.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Aah! I am getting strange issue related to ADB Push

When I use scrcpy, it always shows an error called adb push return with value 1

/data/local/tmp/scrcpy...... permission denied

and also when I search it on Google I always find the problem is with selinux can some one help me in this.... I am Unable to use my scrcpy tool.
[Samsung Galaxy A21s Guides, News, & Discussion] panda822:
There are no modules in repository

There are no modules in repository
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Where did you check. And which module you are telling about.

If you are searching for .apk file I have uploaded here only
[Samsung Galaxy A21s Guides, News, & Discussion] panda822:
there are no modules to install.

Also, where is the Hide option to hide my banking application from root?
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Oh yes yes there is no online module section if you use latest canary builds of magisk manager, and also there is no option for magisk hide, it has been removed by the magisk developer, in place of that you will see zygisk which will do the same job as the magisk hide. I have already mentioned in my message that how to use the zygisk so please read it once again.

Is it clear my bro !!
[Samsung Galaxy A21s Guides, News, & Discussion] panda822:
Ok. But now a module doesn't work because zygisk is enabled.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
which module bro ? is it Lsposed ??
[Samsung Galaxy A21s Guides, News, & Discussion] panda822:
Kinda, it's Riru.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
yes it does not work bro !!
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
work from here after, because there is an issue with the /data/local/tmp folder, after you root your device; May be the selinux of the device is working incorrectly and the /tmp file is showing permission denied. Note: you can only access the /tmp folder if you have "SU" / Root permission. if you want to use scrcpy it will end up with the error code 1. but when you remove the root after rolling back to stock rom using odin tool. then that /tmp folder works again with the normal permission without root. that's very strange! I would not recommend rooting your phone unless there is some sort of solution for the /tmp folder which is located in /data/local, even when you give permission to /tmp with "chmod 777 tmp", then also it does not work. so roll back your device to stock rom again unless and until there is no solution or fixes for this issue....​
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
Well.

It would be pity to roll back root access.

I rooted today my Galaxy M12 - SM-M127F (Android 11 XEO) - using your acc209cc (22104) modified Magisk apk and I am very glad I finally did it.

Luckily I don't have to pass Safety Net but I'd very like to have Riru-LSPosed as many things are possible under this module.

Unfortunately even old LSPosed versions require Magisk 23 and while you say to avoid 23015 I won't try because usually such things mean hours of work to return from bootloop to start point.

I will continue to monitor this thread and I am waiting for good news, likely new working modified Magisk v.23+ under Christmas tree.

All the best for you and thanx for efforts.

In the meantime I ask myself if update of Magisk modified apk from 22 to 23 on already rooted phone would destroy what I already have.

Afraid that probably it would.
[Samsung Galaxy A21s Guides, News, & Discussion] Knockout Newbie:
Rooted an A217M successfully, using AP patched via grccorps apk and updating to the latest Magisk Canary 23016 with SafetyNet passed using kdra0ng's fix.

Thanks, I was really hesitant to root at first, but thanks to this post it became so much easier.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
¿ Should I continue ?
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
For me yes.

You will get king's crown (eventually) and bow of respect (definitely) if you will make LSPosed working.

That would make it's modules available.

I'd like to have FireFds an XPrivacyLua active.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
OK! bro I will continue the work but please remember that I have rolled my device back to stock rom and currently I am learning Flutter Programming to build android apps. But the problem is when I root my device the compiler is not working properly so I have to Unroot my device to learn that!, I will continue to compile the latest magisk builds but i can't test that app because I have to root my device again that's why!, so u people try that app at your own risk, but I will try my best to minimize the error, but still it's a risky thing so don't blame me if any thing got messed up please.... Thank You. And for lsposed and riru it can be fixed only by the magisk developers, I am just a person to just compile and send to u ppl.

I am currently working on new magisk build compile, so stay tuned...
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
Sure.

An idea came to me.

As far as I know developers use virtual Android devices on their computers.

Don't you use such method?

At least it is safe.

Maybe I myself finally create one.

It is piece of work but one day I will do it.

Thank you and get my wishes of Merry Christmas
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
@sahil_bhandari

Two subjects came to my mind.

1. Could you compile modified Magisk 23000, not 23015?

I didn't see Zygisk in it then it may work or at least it is worth trying.

2. I was thinking about your change in general.

You didn't do revolution in code, you just changed small detail, malfunctioning identification of device.

Why Magisk 23 is behaving in wrong way?

It shouldn't.

@knockout

Write more about your action, please.

What was risky, if there happened weird behavior during rooting, what is worth to look at, etc.

What method you used to upgrade Magisk to 23016?

BTW:

My rooting went smooth, nothing unexpected happened.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Yes, I only do the compile work with just few minor changes, the developer of magisk will do the major changes such as latest fixes of bugs and so onn, I just clone that latest build and compile for specific device. And there are some problems I am facing while compiling the latest 23v of magisk that's why I am not compiling it. And that riru does works very fine on v23. If you want riru to work then please use the 23v which has been compiled by @grccorps. And if you want the safety net bypass then use Zygisk one which I have compiled.
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
Well.

I probably will give it a try.

I have something in my blood what pulls me to troubles.

Aside I wonder why version 22 has 6 MB while 23 has 18 but there is always a reason.
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
Some hours later.

I had version 22104.

I installed 23015 like any other apk because I had no other choice.

Result as on picture.

That worked pretty nice except Magisk hide.

I clicked Install on top right in hope that 22104 will upgrade to v23.

That was mistake.

I lost root then it took me some hours and 40+ phone reboots to achieve again what I had, call recording, FireFds and LSPosed.

I didn't check Magisk hide yet, have enough for today.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Appreciate bro!! ❤
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
Yea.

Looks like v23 can work as manager but cannot handle system mounts in correct way.

Btw:

Magisk hide doesn't work so far and I am not convinced it ever will.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Can you tell me how did you compiled that version because I am not able to compile in my Linux system it's some sdk licenses not accepted issue
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
I didn't compile anything.

I flashed ROM with AP patched by modified Magisk apk version 22104 made by grccorps.

That was done by the book, using download mode and Odin.

Then I clicked install, chose direct install and chose apk version 23015, his or yours, I don't remember who made it.

This is working allowing me to use LSPosed and FireFds but safety net check is not visible despite fact that I installed modules for magisk hide props and safetynet-fix 2.1.0.

Weid anyway as on picture it is visible however check was failing.

BTW:

Can you tell me how may I download Zygisk directly to computer?

Maybe you eventually have link till hands.

Magisk on phone doesn't see it, especially because I disabled updates checking.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
wait i am compiling the latest Build of canary
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
Just correction.

I see safety net check button but check fails, I don't reach basic attestation.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Yes safety net fails that's why I prefer canary build with Zygisk!!
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
I never had Zygisk in my hands.

Was not necessary but now may be for use.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
I have released New APK Please Try it and Say is it working or not because I have not tested it yet..
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
From where may I download it?
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
My old thread on page 5
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
I am bit lost, found 3 applications.

Can you provide MD5SUM of the recently complied and direct link?

I prefer not to make mistake and use wrong application.

On phone it is difficult to navigate through forum.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
How to generate MD5SUM I am new to this actually and the direct like is: https://xdaforums.com/attachments/app-debug-v0c1f6881-latest-apk.5492735/