• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide [GUIDE][ROOT][MAGISK v22.0+] Samsung Galaxy A02s SM-A025G

Search This thread

CFKod

Senior Member

This guide was made prior to there being a working custom recovery for this device. I highly recommend installing @afaneh92 TWRP in this thread and then simply flash magisk from recovery.




I purchased this phone a few days ago for around £120 - Bargain.
I have spent a few evenings trying to obtain root - and finally managed to achieve it with Magisk

Full data wipes are required during the process (please backup first)
Knox will trip but safetynet passes and google pay working once magisk hide enabled

Based on the Samsung specific guide provided on Magisk Github - with a few minor differences.

I have uploaded all of the tools and files used to my personal onedrive folder -

Make sure your device is on the latest firmware and download the zip
- I used SamFwTool version 1.21.0 to download the BTU Firmware for SM-A025G A025GXXU1AUA3
  • Install Magisk apk on your device.
  • Extract the AP _ tar.md5 from the downloaded firmware .zip using 7zip
  • Transfer the AP to your device and Patch it with Magisk , then copy back to your computer.
  • Enable OEM Unlock and Unlock the bootloader the instructions from magisk git are below, for those that need a reminder.
Unlocking bootloader on modern Samsung devices have some caveats:

Allow bootloader unlocking in Developer optionsOEM unlocking
Reboot to download mode: power off your device and press the download mode key combo for your device
Long press volume up to unlock the bootloader.
This will wipe your data and automatically reboot.

If you think the bootloader is fully unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will still reject any unofficial partitions before VaultKeeper explicitly allows it.

Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is greyed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode

This is where we deviate from the magisk guide... as when I flashed the magisk patched AP along with the BL CP and CSC, you get a vbmeta error and it simply reboots to stock. Magisk seems to patch the vbmeta file and I tried replacing the vbmeta with the stock version from the firmware zip but that also was fruitless.
  • Extract the boot.img from magisk patched AP
  • Extract recovery.img.lz4 and vbmeta.img.lz4 from the stock (unpatched) AP file
  • 7zip - create a new TAR, adding only those 3 files. Boot.tar will suffice for filename
  • Odin 3.14.4 - uncheck auto reboot and then Flash boot.tar in the AP section (CSC, HOME CSC, CP, BL not required - as the device and download are using the latest firmware)
The next part is essential and doing it wrong will again, result in no root....
I mistakenly pressed power up and it loaded fastboot... booting direct to recovery from fastboot again, results in no root.

  • Hold volume down and power to reboot...
  • As soon as the screen turns black indicating it is rebooting let go of volume down and hold power and volume up
  • Release power button when you see the android logo but continue to hold volume up
  • Release volume up when the unlocked bootloader warning appears
  • Tap the power button once to skip that warning
  • Stock recovery should now appear
  • Select wipe data / factory reset
  • Reboot system
  • Setup as usual and install the magisk apk
  • Screenshot_20210306-134846_Settings.png. Screenshot_20210306-134957.png. Screenshot_20210306-135010.png

Update 10April2021: Since doing this quite a few times, I've actually had most success with Magisk 22.0 (I initially went with Canary - but stock is less hit and miss and if you do it exactly like the steps above you will get root.
 
Last edited:

CFKod

Senior Member
thank you so much for the guide, i found nothing from google
can i unroot after modify this device with magisk canary ??

No problem at all, It was the same position I was in so had to post as it was painful process - needed it documented for myself to follow in future too lol

yes - it's very easy to unroot directly in the magisk app

I successfully upgraded to the latest version 22004 from within the magisk app. No issues to report. :)
 
  • Like
Reactions: LiOnDubSeleKta

Flik93

New member
May 11, 2021
1
0
I am trying to use this same process on an SM-A025V (US Verizon) but I have ran into an issue. I was able to find and download firmware for my variant but I do not have the "oem unlock" option in my developer menu. Is this because I do not have the international version?
 

CFKod

Senior Member
I am trying to use this same process on an SM-A025V (US Verizon) but I have ran into an issue. I was able to find and download firmware for my variant but I do not have the "oem unlock" option in my developer menu. Is this because I do not have the international version?


Seems like its carrier locked. You need to be able to unlock bootloader unfortunately
 

Ghet2

Member
May 9, 2021
10
0
Dont kno i have t-mobile version and. I have it
I am trying to use this same process on an SM-A025V (US Verizon) but I have ran into an issue. I was able to find and download firmware for my variant but I do not have the "oem unlock" option in my developer menu. Is this because I do not have the international version?

Seems like its carrier locked. You need to be able to unlock bootloader unfortunately
T-mobile isn't so would I be able to do this with t-mobile firmware . If it's available I don't kno
 
Dec 2, 2017
12
4
I purchased this phone a few days ago for around £120 - Bargain.
I have spent a few evenings trying to obtain root - and finally managed to achieve it with Magisk

Full data wipes are required during the process (please backup first)
Knox will trip but safetynet passes and google pay working once magisk hide enabled

Based on the Samsung specific guide provided on Magisk Github - with a few minor differences.

I have uploaded all of the tools and files used to my personal onedrive folder -

Make sure your device is on the latest firmware and download the zip
- I used SamFwTool version 1.21.0 to download the BTU Firmware for SM-A025G A025GXXU1AUA3
  • Install Magisk apk on your device.
  • Extract the AP _ tar.md5 from the downloaded firmware .zip using 7zip
  • Transfer the AP to your device and Patch it with Magisk , then copy back to your computer.
  • Enable OEM Unlock and Unlock the bootloader the instructions from magisk git are below, for those that need a reminder.
Unlocking bootloader on modern Samsung devices have some caveats:

Allow bootloader unlocking in Developer optionsOEM unlocking
Reboot to download mode: power off your device and press the download mode key combo for your device
Long press volume up to unlock the bootloader.
This will wipe your data and automatically reboot.

If you think the bootloader is fully unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will still reject any unofficial partitions before VaultKeeper explicitly allows it.

Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is greyed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode

This is where we deviate from the magisk guide... as when I flashed the magisk patched AP along with the BL CP and CSC, you get a vbmeta error and it simply reboots to stock. Magisk seems to patch the vbmeta file and I tried replacing the vbmeta with the stock version from the firmware zip but that also was fruitless.
  • Extract the boot.img from magisk patched AP
  • Extract recovery.img.lz4 and vbmeta.img.lz4 from the stock (unpatched) AP file
  • 7zip - create a new TAR, adding only those 3 files. Boot.tar will suffice for filename
  • Odin 3.14.4 - uncheck auto reboot and then Flash boot.tar in the AP section (CSC, HOME CSC, CP, BL not required - as the device and download are using the latest firmware)
The next part is essential and doing it wrong will again, result in no root....
Przez pomyłkę wcisnąłem zasilanie i załadowałem fastboot ... ponowne uruchomienie bezpośrednio do odzyskiwania z fastboot, nie daje roota.

  • Przytrzymaj głośność i włącz, aby ponownie uruchomić...
  • Gdy tylko ekran stanie się czarny, wskazując na ponowne uruchamianie, puść zmniejsz głośność i przytrzymaj zasilanie i zwiększ głośność
  • Zwolnij przycisk zasilania, gdy zobaczysz logo Androida, ale nadal zwiększaj głośność
  • Zwolnij głośność, gdy pojawi się ostrzeżenie o odblokowanym bootloaderze
  • Naciśnij raz przycisk zasilania, aby pominąć to ostrzeżenie
  • Odzyskiwanie zapasów powinno się teraz pojawić
  • Wybierz wyczyść dane / przywróć ustawienia fabryczne
  • Uruchom ponownie system
  • Skonfiguruj jak zwykle i zainstaluj aplikację magisk
  • View attachment 5241955. View attachment 5241957.View attachment 5241959

Aktualizacja 10 kwietnia 2021: Odkąd zrobiłem to kilka razy, w rzeczywistości odniosłem największy sukces z Magisk 22.0 (początkowo poszedłem z Canary – ale zapasy są mniej trafione i chybione, a jeśli zrobisz to dokładnie tak, jak powyższe kroki, dostaniesz root.
cześć5g
I purchased this phone a few days ago for around £120 - Bargain.
I have spent a few evenings trying to obtain root - and finally managed to achieve it with Magisk

Full data wipes are required during the process (please backup first)
Knox will trip but safetynet passes and google pay working once magisk hide enabled

Based on the Samsung specific guide provided on Magisk Github - with a few minor differences.

I have uploaded all of the tools and files used to my personal onedrive folder -

Make sure your device is on the latest firmware and download the zip
- I used SamFwTool version 1.21.0 to download the BTU Firmware for SM-A025G A025GXXU1AUA3
  • Install Magisk apk on your device.
  • Extract the AP _ tar.md5 from the downloaded firmware .zip using 7zip
  • Transfer the AP to your device and Patch it with Magisk , then copy back to your computer.
  • Enable OEM Unlock and Unlock the bootloader the instructions from magisk git are below, for those that need a reminder.
Unlocking bootloader on modern Samsung devices have some caveats:

Allow bootloader unlocking in Developer optionsOEM unlocking
Reboot to download mode: power off your device and press the download mode key combo for your device
Long press volume up to unlock the bootloader.
This will wipe your data and automatically reboot.

If you think the bootloader is fully unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will still reject any unofficial partitions before VaultKeeper explicitly allows it.

Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is greyed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode

This is where we deviate from the magisk guide... as when I flashed the magisk patched AP along with the BL CP and CSC, you get a vbmeta error and it simply reboots to stock. Magisk seems to patch the vbmeta file and I tried replacing the vbmeta with the stock version from the firmware zip but that also was fruitless.
  • Extract the boot.img from magisk patched AP
  • Extract recovery.img.lz4 and vbmeta.img.lz4 from the stock (unpatched) AP file
  • 7zip - create a new TAR, adding only those 3 files. Boot.tar will suffice for filename
  • Odin 3.14.4 - uncheck auto reboot and then Flash boot.tar in the AP section (CSC, HOME CSC, CP, BL not required - as the device and download are using the latest firmware)
The next part is essential and doing it wrong will again, result in no root....
I mistakenly pressed power up and it loaded fastboot... booting direct to recovery from fastboot again, results in no root.

  • Hold volume down and power to reboot...
  • As soon as the screen turns black indicating it is rebooting let go of volume down and hold power and volume up
  • Release power button when you see the android logo but continue to hold volume up
  • Release volume up when the unlocked bootloader warning appears
  • Tap the power button once to skip that warning
  • Stock recovery should now appear
  • Select wipe data / factory reset
  • Reboot system
  • Setup as usual and install the magisk apk
  • View attachment 5241955. View attachment 5241957. View attachment 5241959

Update 10April2021: Since doing this quite a few times, I've actually had most success with Magisk 22.0 (I initially went with Canary - but stock is less hit and miss and if you do it exactly like the steps above you will get root.
Hi:) i have sm-a25g As I connect with vol plus vol minus I connect usb nothing happens but charging the battery as I hold other keys, e.g. power vol plus I release power I keep vol plus the phone jumps in fastboot mode. In download mode I can only enter from adb reboot download but bypass the bootloader lock window, the manual input combinations in download mode do not work for me. Do you have any idea and can I ask for help? :)
 
Dec 2, 2017
12
4
Hi, I have a problem with unlocking the bootloader in SM-A025G. I wrote a comment on you tube I got a contact from you whats upp. The problem is that after selecting oem unlock and connecting the turned off phone, holding vol plus vol minus and connect usb, there is only a charging mode and it should be a download mode with the selection of vol plus to unlock the bootloader. To flash firmware, the only way to go with adb reboot download but bypass the unlock board is the download mode. Phone with European distribution binary u2 android 11
 

CFKod

Senior Member
cześć5g

Hi:) i have sm-a25g As I connect with vol plus vol minus I connect usb nothing happens but charging the battery as I hold other keys, e.g. power vol plus I release power I keep vol plus the phone jumps in fastboot mode. In download mode I can only enter from adb reboot download but bypass the bootloader lock window, the manual input combinations in download mode do not work for me. Do you have any idea and can I ask for help? :)

With device turned off but plugged into USB...
Power it back up
let go of power and hold volume up and volume down. and it will boot to the download mode screen.
 
Last edited:

CFKod

Senior Member
Hi, I have a problem with unlocking the bootloader in SM-A025G. I wrote a comment on you tube I got a contact from you whats upp. The problem is that after selecting oem unlock and connecting the turned off phone, holding vol plus vol minus and connect usb, there is only a charging mode and it should be a download mode with the selection of vol plus to unlock the bootloader. To flash firmware, the only way to go with adb reboot download but bypass the unlock board is the download mode. Phone with European distribution binary u2 android 11
Sorry for late response.
Follow as per thread just posted
 

chrisdsj

Member
Aug 9, 2018
8
0
38
Lompoc
idk if this is news or not but im rooted on the boost variant of the sm-a025u. my question is now that im rooted can i flash the u1 (unlocked xaa) firmware to network unlock the device?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5

    This guide was made prior to there being a working custom recovery for this device. I highly recommend installing @afaneh92 TWRP in this thread and then simply flash magisk from recovery.




    I purchased this phone a few days ago for around £120 - Bargain.
    I have spent a few evenings trying to obtain root - and finally managed to achieve it with Magisk

    Full data wipes are required during the process (please backup first)
    Knox will trip but safetynet passes and google pay working once magisk hide enabled

    Based on the Samsung specific guide provided on Magisk Github - with a few minor differences.

    I have uploaded all of the tools and files used to my personal onedrive folder -

    Make sure your device is on the latest firmware and download the zip
    - I used SamFwTool version 1.21.0 to download the BTU Firmware for SM-A025G A025GXXU1AUA3
    • Install Magisk apk on your device.
    • Extract the AP _ tar.md5 from the downloaded firmware .zip using 7zip
    • Transfer the AP to your device and Patch it with Magisk , then copy back to your computer.
    • Enable OEM Unlock and Unlock the bootloader the instructions from magisk git are below, for those that need a reminder.
    Unlocking bootloader on modern Samsung devices have some caveats:

    Allow bootloader unlocking in Developer optionsOEM unlocking
    Reboot to download mode: power off your device and press the download mode key combo for your device
    Long press volume up to unlock the bootloader.
    This will wipe your data and automatically reboot.

    If you think the bootloader is fully unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will still reject any unofficial partitions before VaultKeeper explicitly allows it.

    Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to Internet during the setup.
    Enable developer options, and confirm that the OEM unlocking option exists and is greyed out. This means the VaultKeeper service has unleashed the bootloader.
    Your bootloader now accepts unofficial images in download mode

    This is where we deviate from the magisk guide... as when I flashed the magisk patched AP along with the BL CP and CSC, you get a vbmeta error and it simply reboots to stock. Magisk seems to patch the vbmeta file and I tried replacing the vbmeta with the stock version from the firmware zip but that also was fruitless.
    • Extract the boot.img from magisk patched AP
    • Extract recovery.img.lz4 and vbmeta.img.lz4 from the stock (unpatched) AP file
    • 7zip - create a new TAR, adding only those 3 files. Boot.tar will suffice for filename
    • Odin 3.14.4 - uncheck auto reboot and then Flash boot.tar in the AP section (CSC, HOME CSC, CP, BL not required - as the device and download are using the latest firmware)
    The next part is essential and doing it wrong will again, result in no root....
    I mistakenly pressed power up and it loaded fastboot... booting direct to recovery from fastboot again, results in no root.

    • Hold volume down and power to reboot...
    • As soon as the screen turns black indicating it is rebooting let go of volume down and hold power and volume up
    • Release power button when you see the android logo but continue to hold volume up
    • Release volume up when the unlocked bootloader warning appears
    • Tap the power button once to skip that warning
    • Stock recovery should now appear
    • Select wipe data / factory reset
    • Reboot system
    • Setup as usual and install the magisk apk
    • Screenshot_20210306-134846_Settings.png. Screenshot_20210306-134957.png. Screenshot_20210306-135010.png

    Update 10April2021: Since doing this quite a few times, I've actually had most success with Magisk 22.0 (I initially went with Canary - but stock is less hit and miss and if you do it exactly like the steps above you will get root.
    1
    Update:
    Have just updated to magisk 22003 directly within magisk app - no issues to report so far
    1
    thank you so much for the guide, i found nothing from google
    can i unroot after modify this device with magisk canary ??
    1
    thank you so much for the guide, i found nothing from google
    can i unroot after modify this device with magisk canary ??

    No problem at all, It was the same position I was in so had to post as it was painful process - needed it documented for myself to follow in future too lol

    yes - it's very easy to unroot directly in the magisk app

    I successfully upgraded to the latest version 22004 from within the magisk app. No issues to report. :)