yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy A21s Guides, News, & Discussion] Oneplus#:
Hi, i have a question. Maybe is a stupid one but... i was watching the thread to understand how the fix work and... i don't see anymore the line {LOGD("Kernel cmdline info:\n")} on getinfo.cpp.

Does the new version can work by only editing

}
// Log to kernel
setup_klog();

if (strcmp(cmd->hardware, "exynos850") == 0) {
cmd->skip_initramfs = false;
}

config->set(parse_cmdline(full_read("/proc/cmdline")));
config->set(parse_bootconfig(full_read("/proc/bootconfig")));
parse_prop_file("/.backup/.magisk", [=](auto key, auto value) -> bool {
if (key == "RECOVERYMODE" && value == "true") {
config->skip_initramfs = config->emulator || !check_key_combo();
return false;
}
return true;
});

to

like that? Thanks
[Samsung Galaxy A21s Guides, News, & Discussion] AndyBGD14:
running normally
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
No not you, any one other than you should try it !!
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
@Steker Unik @F308 @Malaahim @Knockout Newbie @panda822 @platonicbomb @wonkeyeyes @Subliminize @kcchan48 @johnny_nb @Israelleite @heats @David112+ @ankush1492 @Jukmisael @geocamus @Wowoslaw @cater2 @MaBo2020 @Devilrock09 @Elkingb @thatha @Jaan_e_ahsan45 @Olep84 @Bluebloomer @Oneplus#

Finally Thanks to Andy Who Said Us That We can now root With official magisk un-modified, sorry I didn't Trusted you before, But Yes We can now Finally root our devices freely and update the magisk manager without any issue.

so from now i am not releasing any modified magisk manager...

Thank You All.
[Samsung Galaxy A21s Guides, News, & Discussion] Israelleite:
Which rom are you using ?
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Stock ROM !
[Samsung Galaxy A21s Guides, News, & Discussion] F308:
You folk offered your share and I give bow of respect for those who contributed.

I am not programmer, I only can play cards which were dealt but if I win with them and may show my gratitude I do it giving my share if I have any.

I presume it is fair enough.
[Samsung Galaxy A21s Guides, News, & Discussion] Kenora_I:
Issues · polygraphene/DirtyPipe-Android

Dirty Pipe root exploit for Android (Pixel 6). Contribute to polygraphene/DirtyPipe-Android development by creating an account on GitHub.

github.com

@sahil_bhandari

This new exploit has a probability to root the device without having to unlock the bootloader.

Specific process is unknown but there needs to be some changes for the kernel?

Could someone look into this?
[Samsung Galaxy A21s Guides, News, & Discussion] Scia0:
If you did it so can I
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
This thread is very old!, you don't need an modified magisk anymore go grab the latest magisk manager and it just work fine!
[Samsung Galaxy A21s Guides, News, & Discussion] Scia0:
Fr
[Samsung Galaxy A21s Guides, News, & Discussion] Scia0:
I feel retarded now
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Why?
[Samsung Galaxy A21s Guides, News, & Discussion] Scia0:
For not doing more research before checking here. I did also get it working in the end
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
OK let me clear you a thing, can you tell me are you able to update Google play system updates, those are patches requires to do after every 1 month.

If you are able to do so then it's good or if you failed to install the updates then you should roll back to stock (remove the root)
[Samsung Galaxy A21s Guides, News, & Discussion] Scia0:
It says that my one is up to date and the update version(Google play system update) is 1 November 2022 which is hopefully correct also for some reason I went into recovery mode and used "mount /system" and after I rebooted I found that my phone status was reverted back to official but my root still worked as normal I was also able to relock the bootloader but it does not show this when I restart.
[Samsung Galaxy A21s Guides, News, & Discussion] jason667:
please how can i install the latest patched magisk on Galaxy A12 [SM-A127F/DS I keep getting app not installed, please how can I install the latest modified magisk on my phone, I cant install some modules because I need a magisk v23 and above
[Samsung Galaxy A21s Guides, News, & Discussion] jason667:
please how can i install this latest patched magisk on my Galaxy A12 [SM-A127F/DS I keep getting app not installed, please how can I install this latest modified magisk on my phone, I cant install some modules because I need a magisk v23 and above
[Samsung Galaxy A21s Guides, News, & Discussion] Scia0:
A12 literally has a custom official twrp recovery you should be able to go from there
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Is your Google play system update is on 1 February?
[Samsung Galaxy A21s Guides, News, & Discussion] moiloon:
hi could anyone point me how to root my android 12 a12, read multiple threads here and elsewhere, watched many videoes ect, and confused myself, i have d/loaded the correct fw from samfm for my region ect, already unlocked bootloaded, but confused at next parts, in odin do i need to only need flash the patched AP? or must all boxes in odin be populated by the rest of the firmwatre i dloaded?

any help would be more than appreciated, any links to a video that shows the correct process for a12 125f ?

i cant get the AP to my phone via usb, disconects midway through, transfered via dr fone software, but cant patch it, get process error

edit, just got ap patched, following this video

, after final reboot and wipe ect , i dont have magisk on my device, what am I doing wrong??

edit finnally got it working, 1st time didnt work, even though i disd nothing different, oh well, rooted

kindest regards
[Samsung Galaxy A21s Guides, News, & Discussion] chris1892006:
I tried your modded magisk on my android 11 device my Hisense 43A6H google tv & it didnt work. No root but I cant get my device into "Download Mode" ie "BROM Mode" for Mediatek MTK devices like my tv which is a MT9612.

Any advice on how to get root on my tv? I've tried many different magisk versions and canary with no luck.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Hello Good People,

Will the Magisk work at rooting a SM-A217M/DS model?

Thanks
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Yes ig it must work. Make sure to install the official Magisk Manager from their GitHub repository.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Would I still be using your modified version of should I get the latest version of Magisk from Gitub.

At the moment I have your acc209cc (22104) installed.

My device is a SM-A217M/DS

Android 10

Thank you friend :)
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
You should use the latest version of Magisk Manager. Please download the Magisk Manager and just install it normall no need to reinstall the whole ROM.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Super thanks for the response.

Will I still need to download my firmware?

Thanks
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
No, no need to reflash the rom. Just download and update the magisk.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Wow...so I only need Magisk to root my device now? I need no other files?

Thanks
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Yes, you don't need more files other than latest magisk manager's apk. Then you need to update using direct install only. And then you are done.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Got v26.1 installed.

When I "select and patch a file" it ask me to raw image or ODIN tarfile.

Where can I locate this file?

I thought Magisk was the only thing needed?

Thanks
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Please select direct install (recommend) only.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
I dont think I have that option.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
The magisk is not installed properly because the home page installed status says N/A. You have to select the odin file. If you are not sure about how to do it, please refer any youtube videos it will help you.
[Samsung Galaxy A21s Guides, News, & Discussion] chibuzorotu:
So I followed the steps in the original post and when I boot, I get the red test warning. Also when I open certain apps, it tells me i have root, but in magisk (both patched and latest), installed is n/a
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Sorry about the delay, I had surgery and needed time to heal.

I used odin to flash the boot.tar file and it put my device into boot loop. Even after entering into recovery and wiping the data twice, the device continues to boot loop.

Any help from you good looking guys would be much appreciated.

T.I.A.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Hey get well soon. Please do not use boot.tar as a patched magisk file. Use AP.tar as your patch. I mean patch your AP file from magisk and use that patched file in Odin where it says AP.
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Thank you dear friend for the kind words. My one eye is slowly healing.

I got the stock firmware reinstalled and the phone is back to working.

Do I need to have the bootloader unlocked to flash the file from Magisk?

T.I.A
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Yes of course you need to unlock the bootloader before flashing, silly question 😓
[Samsung Galaxy A21s Guides, News, & Discussion] PamelaGirl:
Ya little bit of a brain freeze.

After trying several methods already I recall when I first got the device it was a pain in the boot to unlock the bootlader. I think after trying so many different methods I had to actually wait several days for it to appear in the developers action.
[Samsung Galaxy A21s Guides, News, & Discussion] Sertexx:
This took me hours to get working, back and forward between patches and boot cycles. Boot locking me and crashing. Restarting and reverting back to stock. But i did get it working.

IF ANYONE IS HAVING ISSUES WITH MAGISK OR BEING STUCK IN A BOOT CYCLE ON THE a21s , TRY USING MAGISK VERSION 25.2

Releases · topjohnwu/Magisk

The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.

github.com

GO TO THE LINK ABOVE THEN SCROLL DOWN TO v25.2

then do the same process as above just using this version instead. If that doesnt work please refer to this official guide by topjohnwu

Installation

The Magic Mask for Android

topjohnwu.github.io

if all this fails then I've got no idea what to do next. Just doing this fix took me about 3-4 hours.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Can you please confirm me that are you reffering to this? If so, please tell me whether you are able to update it to latest month or not.

Thank you!
[Samsung Galaxy A21s Guides, News, & Discussion] lupus4:
This is a helpful thread thansk, but I am also wondering if it is possibl on android 13 becase alot of other threads say that it's only possible to root the a21s on early versions.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Why would you even cared about rooting your device. Please do not root any device for no reason!
[Samsung Galaxy A21s Guides, News, & Discussion] lokey0905:
Only flash magisk_patch_boot in odin and root done. Working on A217F.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Please mention all the procedures in steps:

We are currently not able to root M127G/F and some other samsung devices due to some kernel incompatibility issue. Please mention your version of magisk also!
[Samsung Galaxy A21s Guides, News, & Discussion] lokey0905:
My English is not good. I use Google Translate and I found some tips.

Device A217F Android 13 magisk delta 26301

1. Download magisk and patch boot.img

2. Extract boot.img from magisk_patched.tar

3. Use 7.zip to re-add boot.img and compress it into boot.tar

4. Connect to the Internet and check for system updates and enable OEM unlocking

5. Unlock bootloader

6. Make sure kg lock is in check status and then flash boot.tar

7. After entering the system, connect to the Internet to check for system updates. Otherwise, the kg lock status will change to prenormal and the phone will be locked after the phone restarts.

8. Open magisk to repair and restart the computer. If it is normal, the computer will boot normally and magisk will be displayed for correct installation.
[Samsung Galaxy A21s Guides, News, & Discussion] Ryourin:
It works succefully. But how to hide the root from several apps?
[Samsung Galaxy A21s Guides, News, & Discussion] nightkin90:
Hi, I am unable to root SM-A125F using any method whatsoever, can someone please help? I get stuck in bootloop always!
[Samsung Galaxy A21s Guides, News, & Discussion] HuyTheWinter:
this post is for A21s (A217F/M) not A12
[Samsung Galaxy A21s Guides, News, & Discussion] |moppel|:
Is this still true for June 2024 and SM-A217F?

I followed all's the guides here for rooting but it always ended up in boot loop.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
if you followed the guide properly and still getting boot looped then yes, then problem still persists.

No new releases for now

we have to wait for some patches.

Bootloop - Samsung S9 · Issue #7254 · topjohnwu/Magisk

Device: Samsung S9 (G9600) Android version: 10 Magisk version name: v26.1 (debug) Magisk version code: ee34f77 (26105) Followed exactly all the steps in https://topjohnwu.github.io/Magisk/install.h...

github.com

have a look at this issue.
[Samsung Galaxy A21s Guides, News, & Discussion] |moppel|:
I'm trying with Magisk v26.3, as this should work regarding the comments in the github issue. I'll report back.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
yeah, sure!
[Samsung Galaxy A21s Guides, News, & Discussion] |moppel|:
OK i actually got root with this workaround: https://github.com/topjohnwu/Magisk/issues/7254#issuecomment-2094530848

How To:

Follow the official Magisk Installation but use Magisk.v26.3 for patching.

Be sure in Download Mode it shows KG STATE: checking NOT KG STATE: Prenormal and BL MODE = OFF (U)

If it shows Prenomal connect to the internet let the phone get some necessary updates. Check if the entry OEM Unlock is present, activated and greyed out.

Be sure to have developer options enabled and OEM and Bootloader unlocked.

It bootloops 1 time after odin flash and then you see the recovery.

Do factory reset.

Wait for the phone to boot.

Activate online connection during setup and check for developers options and OEM unlock like in 2.1 and 2.2 or Magisk will not be able to perform the additional actions and you will be stuck in bootloop.

Copy Magisk.v26.3.apk to your phone and install.

Open Magisk and it will ask you to perform the additional installation steps. Phone will automatically reboot during this process.

>rooted

You can Update Magisk and Magisk App to 27 now within the Magisk app safely.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
You are on version 27 or 26.3? If 26.3 can you upgrade it 27? Because i am sure older version works well but it is broken from newer versions.
[Samsung Galaxy A21s Guides, News, & Discussion] |moppel|:
Magisk itself updated through the app and the app are on v27 now. Still works.

The problem only seems to be in the patching process.

Added this to my Guide.
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Ok, thanks for sharing this information with us @|moppel|
[Samsung Galaxy A21s Guides, News, & Discussion] |moppel|:
Maybe I should post this in a new thread so ppl are actually able to find this until it is fixed?
[Samsung Galaxy A21s Guides, News, & Discussion] sahil_bhandari:
Yeah good idea.
[Samsung Galaxy A21s Guides, News, & Discussion] Ditn:
thanks, this worked for me
[Samsung Galaxy A21s Guides, News, & Discussion] David112+:
A new update of Magisk just came out @grccorps

Could you check for us to see if it has the fixes and if it's safe for us to update or?
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
We should NOT update to the new Magisk release for the time being. Updating to new version of Magisk will either brick the device or break the root.

I have submitted a pull request on Magisk's official github so that we can get the problem solved on the official Magisk releases. Hopefully, if this gets accepted, the modified Magisk app on this thread would no longer be needed (as the official release would become compatible with A21S).
[Samsung Galaxy A21s Guides, News, & Discussion] ankush1492:
I can confirm it works with Galaxy M12
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
This is a good news. When I looked at boot image and kernel source of M12 I found the exact same problem that can cause bootloop after flashing Magisk. It's great that this app solves the problem on M12 without any additional modification.
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
Do not work for AP_A217MUBU5CUD1_CL21209953_QB39381331_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS11
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
Fail boot.img
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
can you patch my file boot.img ??
[Samsung Galaxy A21s Guides, News, & Discussion] David112+:
Are you spanish? If you are then I might be able to help you, if you're brazilian then I'm not able to do so
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
for latam - colombia :(
[Samsung Galaxy A21s Guides, News, & Discussion] David112+:
Ah, ya veo, tienes telegram para que te pueda ayudar?

Translation: Ah, I see, do you have a telegram so I can help you?
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
Is the problem that the app can't patch AP.tar? Or is it that the phone fails to boot after flashing the patched file?

If it's the former, then I have attached the patched files from SM-A217M UD1 (COO) variant. You should remove the .md5 from the AP tar file name, delete boot.img.lz4 and vbmeta.img.lz4 inside it, and add the attached boot.img and vbmeta.img into the tar file, and flash it with BL, CP, CSC using Odin.

I have tested this boot.img on Korean SM-A217N and it booted successfully, so if everything goes right, it should work for you too.

EDIT: I couldn't attach boot image here due to file size, so I uploaded it in google drive: HERE
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
I sent the request
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
Do not work for me
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
What is the exact problem? Did the phone fail to boot? Or does Odin not work? Or does AP.tar not open?

Please keep in mind that before flashing the patched firmware using Odin, you must unlock the bootloader first. (This is a good guide on how to do it).

If you have problem opening/modifying the AP.tar, it's likely that the file is corrupted. I recommend you to download it again from sites such as Samfw or by using tools like Samloader.
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
bootloader is unlocked, flash boot fail with odin
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
1.Which version of Odin are you using? You should use the last version (3.14.4 from Sammobile)

2. In the download mode, what does the KG_STATE show? And when Odin fails, is there any error on the phone's download mode screen?
[Samsung Galaxy A21s Guides, News, & Discussion] Elkingb:
Working but with my file boot.img latam - colombia - COO,

and now???
[Samsung Galaxy A21s Guides, News, & Discussion] ankush1492:
I want to point out that if individual boot.img dont work try with the full AP file. I might be worng, I am just sharing what worked in my case.
[Samsung Galaxy A21s Guides, News, & Discussion] ankush1492:
Also, can you help me with this?

I have come across a very strange phenomena on Galaxy M12. When I install an app as user it exists in /data/app forder in a weird way. The folders in /data/app are like ~~h8DR1aXXIZfV_DXfqwYf3g== (see attachment) and in these folders there is another folder with the app package name. On regular devices I hvae seen app package folder in /data/app itself.

When I copy the app package folder from /data/app/~~h8DR1aXXIZfV_DXfqwYf3g== to /system/app it does not work. I can see the app folder after reboot or even reset but app in not installed on the system. I have confirmed by running the activity using 'am' and tried listing with 'pm'. I have also given same permissions as other app folders in /system/app. I have also tried /system/app~~h8DR1aXXIZfV_DXfqwYf3g==.

Edit: As it turns out when I am copying to /system/app the base.apk is not copied properly. I have tried it multiple time, the system is mounted. Whatever I do it is either 0 kb or 100 kb exactl and the file is ~6mb. Still strange behaviour.
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
This may be due to the fact that A21S & M12 are using dynamic partitions. While the /super partition (this in charge of /system, /vendor, /product, /odm) is very large (about 5.5GB), the allocated space for each partition seems to be rather small with little extra space. (for A21S, there is about 20mb free space in / (this includes system) and 5mb in /vendor)

One way to work around this is by creating a dummy module to use Magisk's Magic mount function. This function allows modules to add/delete/replace files in /system without actually modifying it.

1. Using file managers like Root Explorer, you should create a folder in /data/adb/modules (the name doesn't matter)

2. Create a file named module.prop in it. in this file, write the following:

id=<anything (ex. dummymodule)>
name=<anything (ex. Hello World)>
version=v1.0
versionCode=1
author=<anything (ex. Hello)>
description=<anything (ex. Hello World!)>

3. Create a folder named system

4. In the system folder, create a folder that matches with the folder in /system that you're trying to put your file in (in your case, it would be app)

5. After creating the app folder, create a folder with the name name as the apk that you're trying to copy

6. Copy the apk file that you're trying to install into the app folder that you just created.

7. reboot

After rebooting, you should see the changes. I personally used this method to install Pixel Launcher on my A21S.

If you want more information this, these links would be very useful:

https://topjohnwu.github.io/Magisk/details.html#magic-mount

https://topjohnwu.github.io/Magisk/guides.html
[Samsung Galaxy A21s Guides, News, & Discussion] David112+:
I'd recommend you to use a file explorer (I use Mixplorer) to copy the "base.apk" to /sdcard and then install the "Terminal Systemizer" module in magisk manager, then in a terminal, you type "su", then "systemize" and choose the 3rd option and type the path to the app (In this case it's /sdcard/base.apk)

You're not the only one with this problem and I've managed to workaround it
[Samsung Galaxy A21s Guides, News, & Discussion] grccorps:
Thank you for posting this great guide. I didn't know that this module existed...
[Samsung Galaxy A21s Guides, News, & Discussion] ankush1492:
Amazing workaround using magisk custom module. I want to say extra thank you just because now I know I can make my own magisk module.

BUT, there is a thing in this way. The purpose for me to make an app as system is to retain it after factory reset. So by this method the /data/adb path get formatted and hence we loose our app. Any other workaround? Is there any folder which has persistent storage which has space?

Any workaround to increase the space on /system partition?

I have not yet tried Terminal Systemize method. Will try and tell if it solves the problem. Meanwhile any workaround on above?

Thanx