How To Guide How To: Root Galaxy A12 | SM-A125F/DSN

Search This thread

Helix-one

Member
Mar 7, 2021
32
17
Samsung Galaxy A12
Hi everyone, I'm not a developer. I've picked up a Samsung a12 for work, we have a mobile app which has a security requirement to include root detection and not allow install on a rooted device. So the sole purpose of this device is to root it, install this application and ensure the root detection code is working as expected. I've googled and tried the KingRoot 1 click type options and I tried a Magisk write that didn't work and finally found this thread. I have an A125U and I can't get the factory firmware, can I just flash a125f?

If it matters, my CSC code is XAA

I can muddle my way through instructions and I've rooted 2 other devices in the past following tutorials from XDA. But its been 5 years at least since the last time I've done this and being completely honest I need a stronger technical understanding of everything to be able to ask for help intelligently. But I need to get this figured out this weekend hopefully as we'll be having a security review at the end of the week. Any pointers on how to get the a125u factory firmware or a simple way to get this rooted would be much appreciated!
Ever tried using Magiskhide?
 

infimesi

New member
Jun 9, 2021
1
0
Just for anyone wondering I was able to root Samsung Galaxy A12 model SM-A125M/DS with the same process stated here.

Thanks OP.
 

jhunnix

New member
Jun 10, 2021
1
0
i follow all the steps and my phone keeps on and off.. Cant proceed to Home menu.. what should i do? Thanks
 

thenewhorizons

New member
Jun 20, 2021
4
0
Hey, can somebody please help me with downloading the firmware for Ireland (Vodafone)? I've tried downloading it on sammobile and samfrew but every time the file gets to 1.5 - 2GB, it fails and says "Network Error". It's not my hard drive space and my internet connection seems fine.

Would someone be able to download the firmware for me and post it on Google Drive please? Thanks

SamMobile Galaxy A12 Firmware (Ireland; Vodafone)
 

cldkrs

Senior Member
Dec 12, 2019
132
56
Geilenkirchen
Hey, can somebody please help me with downloading the firmware for Ireland (Vodafone)? I've tried downloading it on sammobile and samfrew but every time the file gets to 1.5 - 2GB, it fails and says "Network Error". It's not my hard drive space and my internet connection seems fine.

Would someone be able to download the firmware for me and post it on Google Drive please? Thanks

SamMobile Galaxy A12 Firmware (Ireland; Vodafone)
if the download fails, click retry and it works.
 

bouyakasha

Senior Member
Jan 23, 2008
95
15
Can be easier to just patch the complete AP file from original FW.
AP_A125FXXU1BUE3_CL21578447_QB40050028_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS11.tar
(4.3Gb) to phone. Patch with magisk. Copy to PC and flash with ODIN.

No need to factory wipe as flashing whole AP package will do the wiping for you.
I got "unsupported / unknown image format" when I tried to patch AP using Magisk.
 

bouyakasha

Senior Member
Jan 23, 2008
95
15
This is the Method how i Root my Galaxy A12 .
This method is very easy if you take your time. THIS WILL ALSO WIPE YOUR DEVICE. I AM NOT RESPONSIBLE FOR ANY DEVICE OR SD CARD DAMAGE.

BEFORE PROCEEDING, UNLOCK BOOTLOADER.

YOU CAN FIND THE FIRMWARE YOU NEED ON SAMMOBILE.

1. Download the firmware for your device.
2. Load Zarchiver from playstore.
3. Open Zarchiver and locate the firmware you downloaded.
4. Click on the firmware, a menu will appear at the bottom. You will then have option to extract.
5. Extract the firmware and you will have files..AP..BL..CP..CSC..and HOME_CSC. The only file we need is AP
6. Click on AP file and rename AP_A125FXX.md5 to AP_A125FXX.tar - so your just highlighting the file and removing md5 so it only says .tar at the end.
7. Once you have renamed AP file click and again you will be given the option to extract. Once extracted, locate boot.img.lz4
8. Then extract boot.img.lz4 leaving you with boot.img
9. You should have Magisk manager installed on device. Use Magisk to patch the boot.img. once patched locate magisk_patched.img and rename to boot.img
10. Return to Zarchiver locate the patched boot.img and compress to boot.tar.
11. Move compressed boot.tar to computer and rename to boot.img.tar
12. Put device in download mode, open Odin and put the boot.img.tar in AP and click start. Once odin says pass, your device will boot to stock recovery and you will have to do a factory reset so save anything you need before doing this.
13. Once Device boots - RE-install Magisk Manager and follow prompts.

Congatulations, Youre Rooted Now.

View attachment 5244935
Edit: I've realized I wasn't actually bootloader unlocked once I say this post: https://forum.xda-developers.com/t/how-to-unlock-bootloader.4244757/post-85085247


I've followed every step, and had success until... the very last one where Odin throws an error when flashing to PDA with the new boot.img.tar - "NAND Write Start!!" / RQT_CLOSE!!" in Odin and "SW REV CHECK FAIL : [boot]" "Fused 1 > Binary 0" and "SECURE CHECK FAIL : : boot" on the phone in download mode.

I'd really appreciate any tips on what I'm doing wrong...
 
Last edited:

nsnobel2

Senior Member
Sep 27, 2011
420
24
This is the Method how i Root my Galaxy A12 .
This method is very easy if you take your time. THIS WILL ALSO WIPE YOUR DEVICE. I AM NOT RESPONSIBLE FOR ANY DEVICE OR SD CARD DAMAGE.

BEFORE PROCEEDING, UNLOCK BOOTLOADER.

YOU CAN FIND THE FIRMWARE YOU NEED ON SAMMOBILE.

1. Download the firmware for your device.
2. Load Zarchiver from playstore.
3. Open Zarchiver and locate the firmware you downloaded.
4. Click on the firmware, a menu will appear at the bottom. You will then have option to extract.
5. Extract the firmware and you will have files..AP..BL..CP..CSC..and HOME_CSC. The only file we need is AP
6. Click on AP file and rename AP_A125FXX.md5 to AP_A125FXX.tar - so your just highlighting the file and removing md5 so it only says .tar at the end.
7. Once you have renamed AP file click and again you will be given the option to extract. Once extracted, locate boot.img.lz4
8. Then extract boot.img.lz4 leaving you with boot.img
9. You should have Magisk manager installed on device. Use Magisk to patch the boot.img. once patched locate magisk_patched.img and rename to boot.img
10. Return to Zarchiver locate the patched boot.img and compress to boot.tar.
11. Move compressed boot.tar to computer and rename to boot.img.tar
12. Put device in download mode, open Odin and put the boot.img.tar in AP and click start. Once odin says pass, your device will boot to stock recovery and you will have to do a factory reset so save anything you need before doing this.
13. Once Device boots - RE-install Magisk Manager and follow prompts.

Congatulations, Youre Rooted Now.

View attachment 5244935
Can I use this method for A125U?
 
I need some decoding! I thought I unlicked my bootloader while in fastboot mode I entered: "fastboot getvar all" and I got a response of finished! or something along those lines. I downloaded adb & platform tools to execute commands through but none of the fastboot commands are recognized besides the one I just mentioned. I tried to unlock my bootloader by holding the volume buttons and plugging in my USB-C to my PC but all it does is show the percentage speed through to show its charging. When I hold power and vol.- & vol.+ it only gives me the download mode and exit option. The image I am attempting to flash as far as I'm concerned is correct. I extracted the AP file from the most recently updated firmware for my model (sm-a12xxxxxxxxx) and carrier then extracted the boot.lz4 image then patched it with Magisk and compressed it to a .tar file. Odin almost completely runs a pass then fails at the last second and gives me the output I posted with this post. What am I doing wrong and how do I unlock my bootloader? P.S. T-Mobile is my carrier.
I am also stucked with this device. Can't unlock the bootloader no matter what I do. :(
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    This is the Method how i Root my Galaxy A12 .
    This method is very easy if you take your time. THIS WILL ALSO WIPE YOUR DEVICE. I AM NOT RESPONSIBLE FOR ANY DEVICE OR SD CARD DAMAGE.

    BEFORE PROCEEDING, UNLOCK BOOTLOADER.

    YOU CAN FIND THE FIRMWARE YOU NEED ON SAMMOBILE.

    1. Download the firmware for your device.
    2. Load Zarchiver from playstore.
    3. Open Zarchiver and locate the firmware you downloaded.
    4. Click on the firmware, a menu will appear at the bottom. You will then have option to extract.
    5. Extract the firmware and you will have files..AP..BL..CP..CSC..and HOME_CSC. The only file we need is AP
    6. Click on AP file and rename AP_A125FXX.md5 to AP_A125FXX.tar - so your just highlighting the file and removing md5 so it only says .tar at the end.
    7. Once you have renamed AP file click and again you will be given the option to extract. Once extracted, locate boot.img.lz4
    8. Then extract boot.img.lz4 leaving you with boot.img
    9. You should have Magisk manager installed on device. Use Magisk to patch the boot.img. once patched locate magisk_patched.img and rename to boot.img
    10. Return to Zarchiver locate the patched boot.img and compress to boot.tar.
    11. Move compressed boot.tar to computer and rename to boot.img.tar
    12. Put device in download mode, open Odin and put the boot.img.tar in AP and click start. Once odin says pass, your device will boot to stock recovery and you will have to do a factory reset so save anything you need before doing this.
    13. Once Device boots - RE-install Magisk Manager and follow prompts.

    Congatulations, Youre Rooted Now.

    Screenshot_20210309-182256_Root Checker Basic.jpg
    2
    28.3.2021: Download of patched boot.img.tar failed with error:
    SW REV CHECK FAIL : [boot]Fused 1 > Binary Only official released binaries are allowed to be flashed : boot

    KG STATUS : PRENORMAL was the culprit. For naive users inexperienced with Samsung devices like myself might be usefull to have warning in the rooting guide to avoid PRENORMAL state and link to instructions how to do it.

    Update 8.4.2021: To get rid of PRENORMAL state is enough to wait for a week with sim, active data connection and maybe also logged into google account. Do not reboot or disconnect network during wait time. Check the OEM ulocking state in developer settings time to time (to trigger status verification on Samsung servers).

    Flashing unofficial binary succeeded afterwards.

    Sources:
    https://milankragujevic.com/how-to-avoid-rmm-state-prenormal-when-unlocking-samsung-phones
    https://forum.xda-developers.com/t/...ll-twrp-on-exynos-samsung-after-2018.3747535/
    1
    It worked! Thank you so much for this tutorial! 😍
    1
    Ive tried searching for my firmware on sammobile however im not finding it. Its model sm-a125u doesnt even show up on their list.