Root possibility?

Search This thread

Alireza1393

New member
May 2, 2021
2
0
Update and again:


!!! CURRENTLY IT IS NO POSSIBLE TO ROOT THE A21s. NO WAY !!!

... u will risk a Break or loose Time for nothing !
There is NO working Version of TWRP, SU, MAGISK for the A21s out now.


All Methodes here in Forum, other WEBSITES and WWW, like YOUTUBE etc. are Bull****, they NOT work ... DONT TRY IT !!!
Hello. This way aosp Works? And you do not have a problem with the phone? And Can all root operations be implemented in it? ... For example, changing the address?
 

REALSkulldreamz

New member
Apr 29, 2021
3
1
I havent been able to root it yet but my guess is that we habe to unlock the bootloader through a diagnostic way that would be the same way the enginners fix etc...the phones. Im just glad i can flash the stock firmware using odin. Next phone I'll be getting is the new one plus ;-D
 

David112+

Member
Apr 23, 2021
38
5
Xiaomi Redmi Note 7
u ask not the right things:

first he must send us the firmware (downloadlink link)
then he must send us the magisk, - superuser or twrp version, what he used (download link too).

then STEP by STEP, how he rooted the phone !
Well, I might just have found a way, Make a super.img that's Read/Write and then fix the recovery's fstab to make it Read/Write to all partitions like system and vendor, then push SuperSU2.zip and try to flash, which should work, and I'm gonna try it
 

thatha

Senior Member
Jul 14, 2010
195
42
SGN
Redmi 9
Xiaomi Mi Pad 5
I confirm that I have rooted my A21S sucessfully using this modified magisk (U3 Rom). No need to patch the whole AP.tar file, just patch boot.img file only. I upload my patched boot.img for those who need it. Just flash it via odin in AP slot. Thank you very much @grccorps.
 

Attachments

  • boot.tar
    36 MB · Views: 343
Dec 20, 2013
6
0

Attachments

  • A21s.jpg
    A21s.jpg
    29.4 KB · Views: 282
  • A217FXXU5BUA5-Magisk Root_2.zip
    12.6 MB · Views: 231
Last edited:

LonelyCracker

Member
May 4, 2021
28
6

Please follow this tutorial instead.


Root for Samsung a21s

Root your Samsung a21s with this method.
You can't use Magisk or the Stock ROM/Firmware with this method, instead you will use SuperSu and a customized pre-rooted ROM/GSI. For this, you need to backup all your data eventually. For now that's the only way to get this phone rooted. For more information about GSI click here.

UPDATE:
Now you can root your phone flashing this GSI with Odin. So no need to do the tutorial. It will install a pre-rooted AOSP GSI on your phone.
If you already flashed the Android 11 GSI and want to downgrade, unfortunately you need to wipe your data. But if you already this Android 10 GSI and want to update to 11 you don't need to wipe your data.

Downloads:
Android 10 AOSP pre-rooted (Android 10 is highly recommended because it's more stable and faster.) (Download Screenshots)
Android 11 AOSP pre-rooted

Root Confirmations.
https://forum.xda-developers.com/showpost.php?p=83929761&postcount=62 > Theqtest
https://forum.xda-developers.com/showpost.php?p=83931905&postcount=69 > Eklipz3
https://forum.xda-developers.com/showpost.php?p=83940297&postcount=80 > PamelaGirl
thenks for sharing your confirmations.

Follow this tutorial to flash any GSI ROM on your A21s using fastboot. If you are stock on fastboot (can't boot to bootloader) you need to follow the below tutorial or flash the super.tar above.
Screenshot-20201113-072259-1-1.jpg


Backup all your data.
Requirements:

1. Virtual Box
2. Linux ISO (Mint or Ubuntu)
3. 7-Zip ZS Installer
4. Simg2img : thenks MrWaehere
5. Unlock your bootloader
6. GSI Android 10 A/B Gapps : Download only arm64, A/B GSIs.
Choose any ROM. Some does not work, so I recommend to use the Official Android 10 or 11.
Android 10 AOSP 10.0 v222 "system-quack-arm64-ab-gapps.img.xz" with Gapps. (USB does not work on this ROM, only ADB)
7. Odin

Download all the required files and tools Samsung_A21s.zip.
Don't forget to install 7-Zip ZS.

Sharing a folder from Windows to Linux

Fist you need to use both Windows and Linux using Virtual Box and share a folder from Windows to Linux.
Install Linux on Virtual Box following this tutorial and open the Terminal Win + T and run this code. Recommended Linux Mint.

Installing VirtualBox Guest Additions
Code:
sudo su root
Type your Password.
Code:
apt install build-essential dkms
Type Y and wait downloading...
Code:
mount /dev/cdrom /media/cdrom
Code:
cd /media/YOURUSERNAME/VBox_GAs_6.1.16
Code:
./VBoxLinuxAdditions.run
This will install the "VirtualBox Guest Additions" on your Linux, so without it we can't share the folders.

Type :
Code:
adduser YOURUSERNAME vboxsf
And reboot your Linux.

Create a folder on your Windows Desktop called "Samsung".
At the top bar of your Virtual Box click Devices and Shared Folders > Shared Folders Settings, then click the plus icon, select and add your Samsung folder, enable Auto-mount, click OK and close.
A drive will be mounted on your Linux as "sf_Samsung".
Now Save the state of your Linux. (Exitting)

File extraction

Download your stock ROM and extract the super.img.lz4 file from AP_A217XXXXXXXXXX_XXX_XXXX_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS10.tar.md5 with 7-Zip ZS.
Extract the "super.img.lz4" using the 7-ZIP ZS and copy the original super.img to your Samsung folder.

Extract all files from A21_Samsung.zip to your Samsung folder including your "AOSP ROM .IMG".

Convert super.img to raw

Open CMD Win + X, and select Command Prompt (Admin) or press A.
Type:
Code:
cd C:\Users\%USERNAME%\Desktop\Samsung
.
then:
Code:
simg2img super.img super.raw
.
Wait.
Move the super.raw to Samsung_Files folder.

Extracting super.raw

Now Start your Virtual Linux, open Terminal Win + T and type:
Code:
sudo su root
Code:
cd /media/sf_Samsung/System_Files
Code:
./lpunpack --slot=0 super.raw /media/sf_Samsung/System_Files
Wait the extraction and switch to your Windows.

Getting all the bytes from files and creating a modified super.img

Verify if the folder System_Files has this 4 files odm.img, system.img, vendor.img and product.img. Delete the product.img, we don't need it.
Rename your orginal System.img to Original_System.img, and rename your extracted AOSP ROM to System.img then move it to System_Files folder. We will switch the system.img.
Right click on each file > Properties, and copy all sizes in bytes of the original super.img, odm.img, Original_System.img and vendor.img. We don't need the AOSP ROM bytes.

Example:
--device super: super.img : 5557452800
--image system= Original_System.img : 3340271616
--image vendor= vendor.img : 474976256
--image odm= odm.img : 4349952

Calculate your Original_System.img bytes + vendor.img bytes + odm,img bytes.
(3340271616 + 474976256) + 4349952 = 3819597824 . And replace the bytes below "3819597824" with your result.

You need to update the below code with the actual sizes in bytes of your files.

Update the bytes and run

Code:
./lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:5557452800 --group main:3819597824 --partition system:readonly:3340271616:main --image system=./system.img --partition vendor:readonly:474976256:main --image vendor=./vendor.img --partition odm:readonly:4349952:main --image odm=./odm.img --sparse --output ./super.img

Flash the modified boot.tar, and the 2 vbmeta.tar via Odin inside of "Flash it" folder, reboot and boot to the Download Mode again. If bootloop flash only the boot.tar and flash the stock vbmeta downloading here.
Use 7-Zip to archive the new super.img to .tar, flash it via Odin (AP), wait your phone restarts.

That's it have fun.

Notes

I not an expert on this, I just sharing my research I found on the Internet that worked for me. I not responsible for any damage on your phone. It does not stuck or phone, if anything occurs just flash your stock regional ROM through Odin.

If this tutorial did not work, you did something wrong or your phone is not supported.
"Anyway until there is no TWRP or Magisk for this phone you can use it as an alternative.
And I'm sorry for my English. If you don't understood please search for "./lpmake --metadata-size 65536" on the Internet, and you'll find out more tutorials like it but not about for this phone, use it as reference.
Sorry But Could You Guide Me Further ?
I Don't Know How To Add Super SU Without TWRP
 

grccorps

Member
Mar 1, 2012
47
66
Seoul
The patched magisk app has been updated to fix issues with Magiskhide, uninstall, and to add recovery key combo on boot. You should get the latest apk from this thread and update to it.
 

Oswald Boelcke

Senior Moderator / Moderator Committee
Staff member
Moderator Announcement

Thread cleaned from references to social media! As an exemption from the last bullet point of rule no. 5 of the XDA Forum Rules, we grant only developers to provide references to their social media in their own development threads. These conditions obviously don't apply to this thread and especially not to the members whose posts were removed. Please refrain from sharing links to social media to avoid consequences to the account.
Regards
Oswald Boelcke
Senior Moderator
 
  • Like
Reactions: Badger50

rbudrick

Member
Sep 6, 2020
9
0
Sorry if I'm misunderstanding any of the above. Is there still no way to root a SM-A215U? Thanks very much!
 

MaBo2020

Senior Member
Jul 23, 2020
67
8
Hamburg

Please follow this tutorial instead.


Root for Samsung a21s

Root your Samsung a21s with this method.
You can't use Magisk or the Stock ROM/Firmware with this method, instead you will use SuperSu and a customized pre-rooted ROM/GSI. For this, you need to backup all your data eventually. For now that's the only way to get this phone rooted. For more information about GSI click here.

UPDATE:
Now you can root your phone flashing this GSI with Odin. So no need to do the tutorial. It will install a pre-rooted AOSP GSI on your phone.
If you already flashed the Android 11 GSI and want to downgrade, unfortunately you need to wipe your data. But if you already this Android 10 GSI and want to update to 11 you don't need to wipe your data.

Downloads:
Android 10 AOSP pre-rooted (Android 10 is highly recommended because it's more stable and faster.) (Download Screenshots)
Android 11 AOSP pre-rooted

Root Confirmations.
https://forum.xda-developers.com/showpost.php?p=83929761&postcount=62 > Theqtest
https://forum.xda-developers.com/showpost.php?p=83931905&postcount=69 > Eklipz3
https://forum.xda-developers.com/showpost.php?p=83940297&postcount=80 > PamelaGirl
thenks for sharing your confirmations.

Follow this tutorial to flash any GSI ROM on your A21s using fastboot. If you are stock on fastboot (can't boot to bootloader) you need to follow the below tutorial or flash the super.tar above.
Screenshot-20201113-072259-1-1.jpg


Backup all your data.
Requirements:

1. Virtual Box
2. Linux ISO (Mint or Ubuntu)
3. 7-Zip ZS Installer
4. Simg2img : thenks MrWaehere
5. Unlock your bootloader
6. GSI Android 10 A/B Gapps : Download only arm64, A/B GSIs.
Choose any ROM. Some does not work, so I recommend to use the Official Android 10 or 11.
Android 10 AOSP 10.0 v222 "system-quack-arm64-ab-gapps.img.xz" with Gapps. (USB does not work on this ROM, only ADB)
7. Odin

Download all the required files and tools Samsung_A21s.zip.
Don't forget to install 7-Zip ZS.

Sharing a folder from Windows to Linux

Fist you need to use both Windows and Linux using Virtual Box and share a folder from Windows to Linux.
Install Linux on Virtual Box following this tutorial and open the Terminal Win + T and run this code. Recommended Linux Mint.

Installing VirtualBox Guest Additions
Code:
sudo su root
Type your Password.
Code:
apt install build-essential dkms
Type Y and wait downloading...
Code:
mount /dev/cdrom /media/cdrom
Code:
cd /media/YOURUSERNAME/VBox_GAs_6.1.16
Code:
./VBoxLinuxAdditions.run
This will install the "VirtualBox Guest Additions" on your Linux, so without it we can't share the folders.

Type :
Code:
adduser YOURUSERNAME vboxsf
And reboot your Linux.

Create a folder on your Windows Desktop called "Samsung".
At the top bar of your Virtual Box click Devices and Shared Folders > Shared Folders Settings, then click the plus icon, select and add your Samsung folder, enable Auto-mount, click OK and close.
A drive will be mounted on your Linux as "sf_Samsung".
Now Save the state of your Linux. (Exitting)

File extraction

Download your stock ROM and extract the super.img.lz4 file from AP_A217XXXXXXXXXX_XXX_XXXX_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS10.tar.md5 with 7-Zip ZS.
Extract the "super.img.lz4" using the 7-ZIP ZS and copy the original super.img to your Samsung folder.

Extract all files from A21_Samsung.zip to your Samsung folder including your "AOSP ROM .IMG".

Convert super.img to raw

Open CMD Win + X, and select Command Prompt (Admin) or press A.
Type:
Code:
cd C:\Users\%USERNAME%\Desktop\Samsung
.
then:
Code:
simg2img super.img super.raw
.
Wait.
Move the super.raw to Samsung_Files folder.

Extracting super.raw

Now Start your Virtual Linux, open Terminal Win + T and type:
Code:
sudo su root
Code:
cd /media/sf_Samsung/System_Files
Code:
./lpunpack --slot=0 super.raw /media/sf_Samsung/System_Files
Wait the extraction and switch to your Windows.

Getting all the bytes from files and creating a modified super.img

Verify if the folder System_Files has this 4 files odm.img, system.img, vendor.img and product.img. Delete the product.img, we don't need it.
Rename your orginal System.img to Original_System.img, and rename your extracted AOSP ROM to System.img then move it to System_Files folder. We will switch the system.img.
Right click on each file > Properties, and copy all sizes in bytes of the original super.img, odm.img, Original_System.img and vendor.img. We don't need the AOSP ROM bytes.

Example:
--device super: super.img : 5557452800
--image system= Original_System.img : 3340271616
--image vendor= vendor.img : 474976256
--image odm= odm.img : 4349952

Calculate your Original_System.img bytes + vendor.img bytes + odm,img bytes.
(3340271616 + 474976256) + 4349952 = 3819597824 . And replace the bytes below "3819597824" with your result.

You need to update the below code with the actual sizes in bytes of your files.

Update the bytes and run

Code:
./lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:5557452800 --group main:3819597824 --partition system:readonly:3340271616:main --image system=./system.img --partition vendor:readonly:474976256:main --image vendor=./vendor.img --partition odm:readonly:4349952:main --image odm=./odm.img --sparse --output ./super.img

Flash the modified boot.tar, and the 2 vbmeta.tar via Odin inside of "Flash it" folder, reboot and boot to the Download Mode again. If bootloop flash only the boot.tar and flash the stock vbmeta downloading here.
Use 7-Zip to archive the new super.img to .tar, flash it via Odin (AP), wait your phone restarts.

That's it have fun.

Notes

I not an expert on this, I just sharing my research I found on the Internet that worked for me. I not responsible for any damage on your phone. It does not stuck or phone, if anything occurs just flash your stock regional ROM through Odin.

If this tutorial did not work, you did something wrong or your phone is not supported.
"Anyway until there is no TWRP or Magisk for this phone you can use it as an alternative.
And I'm sorry for my English. If you don't understood please search for "./lpmake --metadata-size 65536" on the Internet, and you'll find out more tutorials like it but not about for this phone, use it as reference.

!!! THIS WORKS NOT WITH THE EU VERSION OF THE A21S (Is Tested) !!!

 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    how did you unlock bootloader?

    Power Off the Phone
    Press Vol + & Vol - & connect the USB-Cable
    Then Follow the instructrions ( Long Press Vol + for Unlock Mode)
    and its unlocked.
    1
    again: u cant not root the A21s ... many videos and website show, how u root ths smartphone, but it DOESNT work.
    i think, they want only visitor and follower or they use or try it with an older or modded firmware and not the newest one !



    This Video is from Taiwan
    I have confirmed that the version is to use the first version to modify to reach ROOT
    AP_A217FZHU1ATF1


    https://samfw.com/firmware/SM-A217F/BRI
    1
    Toggle the OEM when unlock, reboot to the bootloader than a 2 option should appear like "Volume up long press : Device unlock mode". Just follow the instructions and unlock.

    You probably did not do that.

    ---------- Post added at 11:38 AM ---------- Previous post was at 11:14 AM ----------



    The stock rom with the Magisk it's better than use a ROMs not fully compatible with this phone. So if you have another method/file, than share with us! It will be great if it's easy than my tutorial.

    ---------- Post added at 12:01 PM ---------- Previous post was at 11:38 AM ----------



    Sometime the system blocks you from flashing files even with the OEM unlocked. So look at "KG STATE" on the top of your bootloader, it should be "Checking" if so it's unlocked and you can flash your files, but if it's "prenormal" than the system blocked the bootloader. You need to flash your stock rom, reboot to the bootloader, Lock the OEM, reboot to your system and toggle disable/re-enable the OEM Unlock than reboot to the bootloader and unlock the OEM.

    First off I want to give a big thanks for the support, and all the positive and quick responses. I feel really good about being a part of this thread with so many helpful and friendly people.

    I will get the stock rom flashed and follow your advise to the letter. I will get this device rooted!

    Thanks:cowboy:
    1
    First off I want to give a big thanks for the support, and all the positive and quick responses. I feel really good about being a part of this thread with so many helpful and friendly people.

    I will get the stock rom flashed and follow your advise to the letter. I will get this device rooted!

    Thanks:cowboy:

    I thank you Pamela for your kindly words. :eek: If needing help in the process just call.