yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy A12] fixapixa:
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://xdaforums.com/t/guide-17-06...ll-twrp-on-exynos-samsung-after-2018.3747535/
[Samsung Galaxy A12] jkaltes:
After using Odin to flash a Magisk modified version of boot.img.lz4, my smartphone stayed in a boot loop. After flashing the unmodified version of boot.img.lz4 (uncompressed and tarred) I could boot again and I could also turn of OEM Unlocking in the development options. So I returned the Smartphone to the seller, giving the true reason.
[Samsung Galaxy A12] forumarbeit:
Hi, where I can found the firmware for my Galaxy A12 (SM-A125F/DSN) for the root?
[Samsung Galaxy A12] Helix-one:
You can download it on SamMobile
[Samsung Galaxy A12] jkaltes:
Latest Samsung Galaxy A12 firmware

Download the latest Samsung firmware for Galaxy A12 with model code SM-A125F. Check out our free download or super fast premium options.

www.sammobile.com
[Samsung Galaxy A12] forumarbeit:
Thanks @jkaltes, I download the firmware from sammobile.

After install is then an new OS on my rooted mobile phone or stays the same original OS only with root rights?

How can I unlock the bootloader?

thanks for your feedback.
[Samsung Galaxy A12] Hulgerorsh:
Ive tried searching for my firmware on sammobile however im not finding it. Its model sm-a125u doesnt even show up on their list.
[Samsung Galaxy A12] virginwidow:
IF I get one of these things - I'm understanding (?) though we can get root - in order to keep root, one has to have a google acct?

2nd Q? is after the "wait to clear PRENORMAL" can the google acct be removed?

3rd Q? Can the phone be set up using WiFi (before buying a SIM) (?) then after the wait, put the SIM in? (reason I've asked is my carrier SIM "does ****" ...)

4th Q? Does the device need to be CARRIER unlocked to UL bootloader -- otherwise, I should buy a fully unlocked one, right?

Thanks in advance

VW
[Samsung Galaxy A12] fixapixa:
1) I guess it's not necessary to keep google account. Haven't confirmed myself however.

2) After unlocking the bootloader you should restart to system, connect to network and let the device verify status with Samsung servers. This way you avoid PRENORMAL status (without waiting) and will be allowed to flash patched AP. After the flash your device will be wiped so any existing google account is deleted anyway but after first boot into system you have to connect to network once again else device gets locked and you can start over. After your device succesfully synchronises itself with Samsung servers, you can disconnect from network and I don't see reason why you would need to have Google account if you don't want one.

3) You'll have to find out yourself. Personally I think that if you follow process from 2), wifi might be enough and no Google account would be needed at all but I cannot confirm that. In worse case if anonymity is paramount for you, just plug in some cheap prepaid SIM if such things are still availabe in your country and throw it away afterwards.

4) By carrier do you mean AT&T, Vodafone and such? No idea about your provider. Devices from open market are unlockable for sure but try to search the forum whether anybody encountered trouble with your provider.

As I wrote before, I have no previous experience with Samsung so I followed linked instructions and didn't experiment. If you want to help others, try to find out yourself and don't forget to report your findings here:-)
[Samsung Galaxy A12] virginwidow:
Thanks so much - Yeah, I'm that "anonymity paramount" user... Replacing a Blackberry Passport only because of that diabolical VoLTE...

Carrier = MetroPCS-T-Mobile

HOPEFULLY I'll be back with MetroPCS (runs on T-Mobile towers) by this time tomorrow ... If they'll re-activate the Passport. I've got a fallback android if that fails, but...

They might refuse the devices I have, and the A21 seems the best option in my price range, Rather than suffer from "bought in Store" sabotaged unit, I'll get one FACTORY unlocked.

US Carriers have gotten pretty evil, I've suddenly learned "Better the Devil you KNOW than meet a new one"

Thanks again for the feedback - VW
[Samsung Galaxy A12] Fandroid Tech:
I am on samsung a10, I cant unlock my bootloader as my kg status is PRENORMAL. I have waited more than 168 hours for the oem unlock option to appar however nothing happend. I found that to unlock the bootloader I need to have my kg state to be normal. I have no idea what to do, i have tried reflashing may times, did all the updates and still nothing. Is there absolutely any hope?
[Samsung Galaxy A12] anisniso:
i flow this setup bue i can root heeeeeeeellp i need open bootloder ??
[Samsung Galaxy A12] abysshk:
Just to elaborate on the Bootloader unlocking.

You will always need to connect to the internet, either wifi or sim card data.

Open Developer Options, Enable OEM unlock. (without internet, this option won't appear under developer)

boot to Download mode , confirm OEM unlock. This will wipe your phone.

go through start up, just skip everything, you phone will be wiped again anyway.

Connect to the internet, Open Developer Options, check that the "Enable OEM unlock" is greyed out!

By doing so, your bootloader is now unlocked. So yes, don't miss any steps stated above.

Samsung has a service called VaultKeeper to prevent unoffical firmware. Checking the "Enable OEM unlock" option is greyed out after Bootloader unlock will ensure the VaultKeeper to accept unoffical firmware. This requires internet connection. I suggest you to give the phone more time to check bootloader unlock state if you have a very slow / unstable internet connection.

If the outcome of the above steps does not appear to be true for you, your phone maybe cannot unlock bootloader.
[Samsung Galaxy A12] Magneto888:
Thank you for sharing information for root the phone. Can we again Unroot the phone if we want? Is there have any chance of the phone become dead?
[Samsung Galaxy A12] Nexon1338:
is it okey to use a rom from a non dsn model on a sm-a125f/dsn?
[Samsung Galaxy A12] Helix-one:
You can always unroot your phone by flashing the official original stock boot image via Odin. The chances of your phone being bricked are very low not unless you flash the wrong image.
[Samsung Galaxy A12] Nexon1338:
thx for awnser :D can u link me a rom that i can use in odin or some other flash client`have done so mutch work to just unlock bootloader and now i dont even finde a rom lol:D on finde for no /dns models

Did root whit theis steps 2 days ago. do I only have to wait a week 7days fore saftynet api to uppdate keep failing The test

Well well im roted and passed saftynet api now wihu:)

Any one know if Therese is any fix avalible for ofical firmware? Error for a12

Ween i boot my device i get unofficial fermwere can this be fixad some way ? Custom rom or som other Way?
[Samsung Galaxy A12] swayy22:
can someone please send me a link for the firmware because the firmware I downloaded everytime I try extracting the boot.img from boot.img.lz4 then I get an error saying the boot.img is corrupted
[Samsung Galaxy A12] Jerffelly:
I downloaded from here [Click here]

It could be possible that your internet connection was gone for a second or so, and in the end the firmware files got corrupted.
[Samsung Galaxy A12] cldkrs:
https://www.sammobile.com

samfrew.com/
[Samsung Galaxy A12] cldkrs:
no. its normal in newer Samsung phones.
[Samsung Galaxy A12] St1cK33_d1G1tZ:
So I extracted the boot image from the correct AP file and patched it thru magisk and when I tried to flash the image with Odin I was faced with: RQT_close!! and my phone had: SW Rev check fail [BOOT] fused: 1>binary:0 Secure check fail: : boot. Now when I read up on this it said my bootloader is locked. I thought I had unlocked my bootloadef weeks ago by using fastboot thru platform tools and when I rechecked I can't get any of the unlock commands to work, the fastboot flashing unlock, the. /fastboot oem unlock and the fastboot OEM unlock commands are all unrecognized and yes fastboot devices shows my phone is recognized. I would love to unlock my bootloader by holding the volume buttons and plugging in my device but when I do so my device starts charging instead and if I go to download mode by holding power and the volume buttons it doesn't give me the option to longpress volume up to bootloader unlock only volume up to download mode. Can someone please help me with this?
[Samsung Galaxy A12] St1cK33_d1G1tZ:
Anyone know ehat I'm doing wrong?
[Samsung Galaxy A12] St1cK33_d1G1tZ:
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.
[Samsung Galaxy A12] mikejsmith1985:
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!
[Samsung Galaxy A12] poog:
Anyone here know if the US variant SM-A125U can be rooted?

1) For the latest update OEM unlocking can be turned ON in developer options for this model

2) Sammobile does NOT seem to have firmware downloads for this A125U variant but I found them here : https://galaxyfirmware.com/model/SM-A125U/

Anyone know if this can be successfully done? thank you
[Samsung Galaxy A12] poog:
"I have an A125U and I can't get the factory firmware,"

Have you tried here? (bottom) https://galaxyfirmware.com/model/SM-A125U/
[Samsung Galaxy A12] edward0181:
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.
[Samsung Galaxy A12] Helix-one:
Ever tried using Magiskhide?
[Samsung Galaxy A12] infimesi:
Just for anyone wondering I was able to root Samsung Galaxy A12 model SM-A125M/DS with the same process stated here.

Thanks OP.
[Samsung Galaxy A12] jhunnix:
i follow all the steps and my phone keeps on and off.. Cant proceed to Home menu.. what should i do? Thanks
[Samsung Galaxy A12] thenewhorizons:
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)
[Samsung Galaxy A12] cldkrs:
if the download fails, click retry and it works.
[Samsung Galaxy A12] dongtotqt:
i can't root my device after upgrading to android 11 :(
[Samsung Galaxy A12] Davie Dave:
can i also root Android 11 with this procedure?
[Samsung Galaxy A12] dongtotqt:
I try but my device got boot loop
[Samsung Galaxy A12] cldkrs:
yes you can!
[Samsung Galaxy A12] cldkrs:
then you dont follow the steps.
[Samsung Galaxy A12] dongtotqt:
I followed the steps but nothing changes, i tried many times. I can root when using android 10 :(
[Samsung Galaxy A12] edward0181:
With all steps taken as OP, it should be doable. (at least for me it did).
[Samsung Galaxy A12] Jesssailor82:
Mine either
[Samsung Galaxy A12] bouyakasha:
I got "unsupported / unknown image format" when I tried to patch AP using Magisk.
[Samsung Galaxy A12] bouyakasha:
Edit: I've realized I wasn't actually bootloader unlocked once I say this post: https://xdaforums.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...
[Samsung Galaxy A12] nsnobel2:
Can I use this method for A125U?
[Samsung Galaxy A12] cldkrs:
yes.
[Samsung Galaxy A12] edward0181:
You could also check: instructions on github for Samsung devices, as this does work briljant.
[Samsung Galaxy A12] chirangb:
I am also stucked with this device. Can't unlock the bootloader no matter what I do. :(
[Samsung Galaxy A12] chirangb:
Did you get your bootloader unlocked already? If yes how? And without unlocking the bootloader you can't root I guess.
[Samsung Galaxy A12] chirangb:
I think this error occurs when you try to downgrade the bootloader. The 5th number of CSC reading from the right side is the bootloader version. That number of new firmware should be equal or greater than the one from the current firmware.
[Samsung Galaxy A12] bluefan:
The network connection is blocked.

SIM ports are blocked .... : /
[Samsung Galaxy A12] Venketesh Benke:
What are the prom

What are the prompts we have to follow sir.. After re-installing magisk
[Samsung Galaxy A12] cldkrs:
Follow the Steps what Magisk say.
[Samsung Galaxy A12] flovlist:
For me it doesn't work, followed all the steps, did it with boot.img only, with complete AP file, with custom boot.img from website but every time I end up on the start up screen and nothing happens. It doesn't boot and after couple of minutes it reboots.

I have the A127FXXU1AUF8 model/firmware but was not able to reboot.

Do you know any other way to root the android 11 samsung a12 without using Magisk?
[Samsung Galaxy A12] LAST_krypton:
Try to do the same thing with other fimware, or even try rooting through a custom recovery.
[Samsung Galaxy A12] flovlist:
Yeah I already flashed different firmware but that didn't help either.

Maybe I can try to install the unofficial TWRP but it looks like that one is for the A125F model which had some different hardware than then A127F so I don't think that is a good idea.

I can also try to flash the android 10 firmware and hope that that helps, I don't think that downgrading while flashing a complete different android version should be a problem, or is it?
[Samsung Galaxy A12] virividiann1434:
Can I still do this if I don't have the firmware of my country? (ARgentina)
[Samsung Galaxy A12] Kairobot:
Hi! Should i patch the boot.img.lz4 or should i remove the .lz4 first? Just starting out pls help
[Samsung Galaxy A12] ASOwnerYT:
I do NOT recommend rooting this device unless you really know what you're doing. After rooting, many features and apps stopped working, and when I installed a Magisk module, it completely broke my phone's software (SIM card not working, constantly boot looping, invalid IMEI, etc).

Update: This guide on clean flashing new firmware fixed my issue.
[Samsung Galaxy A12] tyler4709:
does this work for the a125w model?
[Samsung Galaxy A12] LAST_krypton:
If you can unlock the bootloader, yes.

https://xdaforums.com/t/unlocking-the-bootloader-and-rooting.4331859/
[Samsung Galaxy A12] shauni420:
Has anyone figured out how to unlock bootloader for a125u aio?
[Samsung Galaxy A12] PAOLO_1:
Hello I did everything according to the instructions but unfortunately no success I get an error message
[Samsung Galaxy A12] PAOLO_1:
I've tried everything and no success it's just a waste of time

download the mod apps and enjoy it instead of playing around with stuff like that :)
[Samsung Galaxy A12] MauriJ2001:
Your phone is not unlocked at all

Check if you enabled the OEM Unlock from settings and reboot to download mode long press vol+ to do the BL Unlock and now you re able to flash root
[Samsung Galaxy A12] TheEND009:
Will this method work on Samsung A12 SM-S127DL Straight Talk version? Root seems to be my only option to make SD internal storage for games/apps a viable solution.
[Samsung Galaxy A12] mieucun123:
Can i use SM-A127f firmware on SM-127f/ds ?
[Samsung Galaxy A12] mieucun123:
help me

My phone show me this

ODIN MODE (DT Load Fail)!

[UFDT] DT Entry: not found rev 0x1

[UFDT] DTB Load Fail
[Samsung Galaxy A12] RXPFREE22:
Can you help me pls? i need help with root
[Samsung Galaxy A12] alecxs:
What's wrong with official Installation Instruction
[Samsung Galaxy A12] No_sense_at_all:
With magisk I'm trying to patch boot.img but get error Unable to unpack boot image. How to proceed?

- Device platform: arm64-v8a

- Installing: 24.3 (24300)

- Copying image to cache

- Unpacking boot image

Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]

HEADER_VER [0]

KERNEL_SZ [37591052]

RAMDISK_SZ [779522]

SECOND_SZ [4043309312]

EXTRA_SZ [369099106]

OS_VERSION [42.84.10]

OS_PATCH_LEVEL [2037-03]

PAGESIZE [2]

NAME [E06B004"]

CMDLINE [idboot.hardware=exynos850 ]

CHECKSUM [2203d5ea1e01b04b0546b97f0500718b050054eb1e01b06b8945b97f0100716d]

Segmentation fault

! Unable to unpack boot image

! Installation failed
[Samsung Galaxy A12] alecxs:
you are reading the wrong section. patch whole AP_*.tar.md5 instead
[Samsung Galaxy A12] No_sense_at_all:
I did how instructions told. Rewrite instructions. I used this and I managed to root it

https://www.samsungsfour.com/tutorials/root-galaxy-a12.html
[Samsung Galaxy A12] leonardo07746:
Can I use this method on a SM-125u with cricket wireless as the carrier?
[Samsung Galaxy A12] cldkrs:
**OUTDATED**
[Samsung Galaxy A12] dongtotqt:
can i use this with android 12
[Samsung Galaxy A12] Oswald Boelcke:
Hello @cldkrs

Does this mean you want your thread to be closed?

Regards

Oswald Boelcke

Senior Moderator
[Samsung Galaxy A12] lil_kyrick:
On Android 12 One Ui 4 does not working.
[Samsung Galaxy A12] DaeDae<3:
Dec 28 2022 "Only official released binaries are allowed to be flashed : boot"
[Samsung Galaxy A12] DaeDae<3:
How did you access fastboot mode?? I can't access mine at all, it will never load and there is no OEM unlock switch in developer settings while it tells me the boot.img.tar is unofficial
[Samsung Galaxy A12] jfbjuaifbhauoihfohi:
Odin gets stuck on "File analysis.." when I try to flash the boot.img.tar can anyone help me?
[Samsung Galaxy A12] physwizz:
If you want to install TWRP later you need to patch the full ap file using delta magisk.

You could also take boot.img.lz4 and vbmeta.img.lz4 into the same tar file and patch that with delta magisk
[Samsung Galaxy A12] saraghalayini:
ineed wifi
[Samsung Galaxy A12] alecxs:
ask your parents
[Samsung Galaxy A12] sanjeev kumar yadav:
how to hack a password
[Samsung Galaxy A12] arsfr:
lol
[Samsung Galaxy A12] vienabicghfh:
ty omg i got it its my first tme rooting but i succeded
[Samsung Galaxy A12] DaeDae<3:
You can not root a device using a snapdragon CPU. Especially the new ones.
[Samsung Galaxy A12] jamjamjam123:
Hi there,

Tried this, Odin gives a pass but then doesn't reboot my phone into stock recovery. Just restarts it as normal.

Tried disabling Auto Reboot and exiting download mode manually and quickly pressing volume up and power mode to get into stock recovery, reinstalled magisk, but there were no prompts. Rootchecker says its not rooted.

Any help available? TIA :)

Android 12
[Samsung Galaxy A12] pol2952:
Have you solved your problem? After flashing with a patched AP file, mine's stuck in boot loop and does not go into recovery mode. I'm trying to root my phone btw
[Samsung Galaxy A12] AToska21:
You might want to add that this will only work on U1-U3 bootloaders. U4 has a SSB/LK bug that does not allow custom images, even when the bootloader is unlocked.
[Samsung Galaxy A12] cldkrs:
you might read how old this post is, and its outdated long time ago.
[Samsung Galaxy A12] IDontTellMyName:
Help PLS, My phone is started bootlooping. How do i Fix that? It started when i flashed the boot.img.tar with odin...
[Samsung Galaxy A12] mathysp:
@IDontTellMyName

Reflash the original firmware

If u don't know the firmware, download the Frija tool and put the required data in

Then use Odin to flash the original software. This fixes the bootloop
[Samsung Galaxy A12] mathysp:
To root

1: Download and install Magisk on the original software. (I had problems with using the latest version to patch, so use Version 24.2)

2: Transfer the original AP_file and use Magisk to patch the file

3: Transfer the new file created by Magisk and put it back on your laptop

4: Reflash it

BL=ORIGINAL_BL

AP=FILE_CREATED_BY_MAGISK

CP=ORIGINAL_CP

CSC=ORIGINAL_CSC

USERDATA=ORIGINAL_HOME_CSC

5: Reboot your phone and do the usual samsung setup thing

6: Go to Magisk and click on Direct Install & Follow the steps

7: If u then update the app and installed version to the latest version, u have no problem and it is rooted

8: congrats
[Samsung Galaxy A12] IDontTellMyName:
Thanks! I already fixed it but couldn't get rooted. Now i'm trying again with theese methods.
[Samsung Galaxy A12] dronkit:
Can anyone help me? I got the original boot.img, sent it to the phone, patched by magisk, sent back to PC, tar compressed it using 7-zip, and then when i want to flash it usin odin (AP), odin crashes. Doesn't crash with other tar files.

UPDATE: I think the problem was that the boot.img file INSIDE the TAR wasn't called boot.img! I renamed it, re-TARed it, and it flashed.
[Samsung Galaxy A12] dronkit:
a127m here, with mediatek processor.

I patched the original boot.img using magisk 27.0, took it back to the PC, tar compressed it, flashed it using odin and I didn't get to the stock recovery but to a bootloop. Managed to get into the stock recovery by pressing keys, did a wipe data / factory reset, a wipe cache, reboot, then still bootloop. Any help?

UPDATE: flashing the original boot.img seems to revive it, unrooted.