yashsingh1/xdaforums huggingface dataset:
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] varadinum:
Hi,I found two different websites and downloaded two different firmware-SamFirm und HardReset. So, SamFirm is wrong.

1: hashes for stock boot.img /from you/ https://xdaforums.com/attachment.php?attachmentid=4706720&stc=1&d=1550346941 31602bca37fec9053da74211ebdd64ef

2: hashes for stock boot.img/from SamFirm/ https://xdaforums.com/attachment.php?attachmentid=4706722&stc=1&d=1550346941 80bf55e049dc02d4a47fa7169293a570

3: hashes for stock boot.img/from HardReset/ https://xdaforums.com/attachment.php?attachmentid=4706721&stc=1&d=1550346941 31602bca37fec9053da74211ebdd64ef
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Are you sure that you downloaded it right? I just used SamFirm to download ATO region's A920FXXU1ARL3 firmware and the hash turned out to be the same as the other hashes.

Screenshot including the Samfirm software after it downloaded and decrypted the firmware, where I saved and extracted it and finally the hash results are attached below(all in one screenshot).
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] 1024kb:
This works

Hey thanks for your research & generous sharing. You've given us a fairly simple & effective way of getting root on our A9 when no other method exists, your efforts are appreciated.

Getting rid of the ads from my phone is such a relief - now I can start to enjoy this device!
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
All credit goes to [MENTION=4470081]topjohnwu[/MENTION] for creating Magisk and making it possible to patch boot.img to root phones in the first place. All I did was to figure out how to make it easier to do, even if just a bit and other people here helped to test it and confirm that it works.

In other words, he paved the path and I placed some direction signs on it as I followed the path.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] massarone:
have you managed to root on galaxy A9 2018 SM-A920F? can you explain how to do it please?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Hello [MENTION=4298308]massarone[/MENTION]

First of all, yes, I did root on sm-a920f. Second, it's late into the night right now and I'm too sleepy to explain everything in detail(I've skipped some of the details that are obvious or otherwise can be looked up easily, with some being somewhere in this thread) so if you have questions for me, please wait until I wake up.

And I'm not responsible for any damage done to your phone or your data, bla-bla bla stuff. As long as you heed the warnings in this post the phone should be fine. However, I can almost assure you that all the data on your phone is going to be gone if you go through this so make a proper backup if you don't want to lose it. Also, the KNOX counter will be tripped so do research on what that means for you. Depending on the country you got your phone from you might lose your warranty.

To root it, you need to have a stock boot.img to patch with Magisk Manager or a boot.img.tar already patched by it. Current comparison results is that it's likely for boot.img files to be same even if you have the firmware from different regions, but make sure the version number is the same. So you can download one of the patched boot.img.tar files I uploaded to this thread if you want to be lazy and the version numbers match, however I can't confirm it will work all the time and it might cause problems if you do so. You have been warned. To be on the safe side, go find the firmware your phone runs on, and keep an eye to have the matching region on the firmwares(phone and the one you want to find) when you do so, download it. You can look for a software called SamFirm (which finds the latest firmware of the region you pick in it and downloads it) to make it easier to find and download your firmware. Also update your phone's firmware if you need to in the process. Then you'll need to extract boot.img from the file that starts with AP which is within the downloaded firmware. You'll need a compressing software that supports .lz4 codec to be able to extract it(7zip zstandard recommended. NOT Vanilla 7zip btw, that doesn't support lz4.) After that you'll need to put that boot.img on the phone and make Magisk Manager patch it with format img.tar, then get it back to your computer.

You'll then need to turn OEM unlock option on from the developer settings and it might force you to do a factory reset for it.

After that you'll need to get the latest version of ODIN, connect the phone to your computer in DOWNLOAD mode, put the patched boot.img.tar file into the AP slot and flash it. Your phone should restart after this and it's VERY likely that it will require (another if it required one at OEM unlock step) factory reset.

After that and you go through the "first time setup"; go install Magisk Manager again, restart the phone if you need to and you should have a working root on the phone.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
And finally, someone PLEASE make the trwp for the sm-a920f so that we won't have to go through all this every time we need to root(or update the phone after we root) it needs way too many factory resets otherwise. *sigh*
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] milsabords:
Android Pie is rolling out for the A9, at Sammobile some 20 stock ROMS are listed.

I'll wait until mine gets the OTA before I Magisk it.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Brx_denniz:
I unpack boot.img and patched it with magisk. After that I pack it as .tar and put it on my computer. Then I put the patched file on ap after that I boot my phone to download. (OEM off too). When I click on start its seems to failed. I have a920f dou
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
OEM switch should be ON, not off. it's what allows you to flash custom stuff in the first place. When it's off, you can't flash anything except stock firmware on the phone.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Brx_denniz:
Thank you . So I just need to activate USB debugging and nothing more? OEM should turned off. That's all?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Why do you keep having the illusion that you should keep that OEM switch off?

TURN THAT ON FOR GOD'S SAKE. IF YOU KEEP IT OFF YOU'LL FAIL EVERY TIME. Make it just like how it is in this screenshot below. If it needs a factory reset to do so, it will show a warning about it but take a backup anyways because even if it doesn't ask for a factory reset when turn that switch to on, it will force a factory reset after you succesfully flash that patched boot.img and restart the phone, saying something about system integrity(either that the check failed or the integrity is compromised, forgot the exact message, it has been too long since I had that). When that happens, you won't be able to do anything with the phone until the reset's done.

Also, usb debugging has nothing to do with this method. You may turn it on if you wish but it won't affect anything.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Brx_denniz:
Okay. I got my boot.img from samfirmware. After that i put it in my phone and open magisk. I patch it and i get patched_boot.img but not tar. In /stoarge/downloads. I cant pick it when i use AP in Odin. So i unpack it and gets a file (patched_boot.tar).

I can pick this one in AP. So i switch my Phone to Download (with OEM on) and click on start. (Odin with admin rights). After clicking on start its try to flash this patched_boot.tar file on my phone bit its failed.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
There's a setting in magisk manager called patched boot output format you can change it to .img.tar and it will take care of this itself when you patch boot.img, that's the easy way. Alternatively, rename the "patched_boot.img" to "boot.img" and use a supporting zip software to compress the file with .tar. I'm pretty sure that you missed the renaming part because it's not so easy to know about it beforehand. It's important that the .tar file has only one file which is named "boot.img".

This was one of the things I didn't explain much a few posts ago, I thought it was obvious enough. Especially since it's a setting that no one but samsung phone users need. Everyone else would use the command "fastboot flash boot boot.img" or something similar from adb stuff to flash it but samsung needs ODIN to flash things unfortunately.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Codename_Falcon:
Unfortunately this requires the kernel to be modified and recompiled. We would need someone who knows how to do this.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Brx_denniz:
I still dont get it. I'm stuck at Odin. It won't flash my patched thing. Could you do a tutorial on YouTube.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] JulesMarcus1234:
I also managed to root the device. If anyone wants some help maybe send me pm and I hope I can help you figure it out. I thought it was fairly easy. I' m on android 9 btw.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] usitaly:
install Magisk manager apk, flash this firmware PIE: A920FXXU1BSC5 with odin then restart , still with odin to flash this boot pached: patched_boot.img.tar

reboot again and you have rooted your A920F

:good:
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] ricky2299:
bro help

im on oreo a920f
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] ricky2299:
brother, i rooted but after that i updated magisk manager .then i noticed saftey net failed ,then i tried to install old version and flashed again with odin and i lost my root . i flashed like 8 tikes and still havent got root . any updates plz
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] saajmoon:
I need quick solution. I'm after rooting phone and after some days phone make a slower and has a some bug type of don't working miracast. Doesn't matter.. Maybe it was stupid but I unchecked a OEM in dev settings and reset the phone. I have know binnary blocked by frp. What can I do ?

Solved: I used a odin and flash new xeo witout root but in phone memory it's still there. The app like Shealth continues to show that I have root on the phone and an error pops up. Is this a persistent Knox violation? can it be omitted?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] varadinum:
nearby

Hi, I have rooted my Android phone with Magisk.Without TWRP, because it does not exist yet. Galaxy A9 2018 SM-A920F

I get the following message:"Nearby service is stopped repeatedly"

And Safety warning: "unauthorized processes have been detected"

I tried everything as well as force stop, delete cache, delete data ...Unfortunately, all without success.

Do you have an idea? Can somebody help me?

Thanks
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Bruneba:
Did you fix it? Can you post a ss of error please.

Can you install magisk modules if you dont have twrp installed?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] blake .l:
So, does this method still work for root?? any changes or other methods?? have an A9 on the way and would like to root it. Any disadvantages to this method i should know about?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] blake .l:
Just curious what do they charge for the service??
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] blake .l:
even though my CSC is TPA can i still use the files you provided for download for my phone?? or will i have to download different firmware and try to patch the bootloader??
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] blake .l:
Thats why i paid the 29.95 to have One Click Root to do it.... best money i could have spent. I can tell you this its a lot more involved than just patch the bootloader and reboot. Took about 45min to an hour to root.... no problems and all is running smooth...
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] usmanatron:
Thanks for this! I got to the point of flashing the Magisk-patched boot, saw that same message, freaked out and reverted!

I've since pressed reset, cursed myself for wasting time setting up, and it now looks good!

In case it's useful to anyone, Ive written up the steps you need to update to a later firmware version (in case I forget something):

Use SamFirm to get the latest version for your phone

7zip extract to get AP, CSC, etc.

7zip extract the AP file into its own folder

Use the lz4 CLI tool to decompress boot.img.lz4 -> boot.img. Copy this to the phone

Patch this via Magisk Manager -> Install -> Path file. Copy back

Rename patched file to boot.img, use 7zip to tar it to boot.img.tar

Use Odin to deploy separate ORIGINAL AP, CP, CSC, BL files

Switch on, confirm working, go through wizard

Use Odin to flash boot.img.tar via the AP slot

Switch on. when it complains, reset

Profit \ re-install everything!
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] saajmoon:
Hi everyone, how to make a full unroot ?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] milsabords:
Flash thé original boot.img with Odin.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Codename_Falcon:
Are the latest firmwares getting the RMM that Samsung has been putting on other models?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] varadinum:
Hi

Please, I need your help. My Samsung Galaxy A9 SM-A920F is rooted. Now I have found a new update from Samsung. Original firmware update. How can I install this so the root is preserved. Is that even possible? There is no twrp for my Samsung Galaxy A9 2018 SM-A920F. At the time, it has the patched boot.img with odin flashed. How can I flash the original firmware?

Thank you in advance.

is that right?

1 / download firmware

(ota update over phone does not work)

2/ flash firmware with odin

(a factory reset is performed)

3/ after the flashing starts a new clean system

(all previous applications are gone)

4/set up a new system

(settings ... and set up)

5/install magisk manager

(patch original boot.img with magisk)

6/ patched boot.img via odin flashing

7/ enjoy
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] eddie24902005:
Is A9200 can be root in same way?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Codename_Falcon:
Flashing new firmware does not wipe the phone. The process of rooting it again requires you to wipe.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
From what I know, there are two csc files in the downloaded firmware. One of them is called csc and the other is home_csc. One of them, when flashed with the rest to update the firmware, wipes the phone. The other doesn't. Forgot exactly which one does which, to be honest. Also when you flash the patched boot.img it will wipe the phone anyways. So, the easiest way would probably be to just flash the new firmware using the non-wiping csc and dealing with the setup when patched boot.img makes it wipe itself. The safest path would be to flash the firmware using the wiping csc and skipping through the setup steps as much as possible or even restarting the phone into the download mode without letting it boot normally to skip the setup part altogether before flashing the patched boot.img, then going through the setup properly.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
I dont' understand, i make boot.img.tar i flashed it, NOTHING IS CHANGED............... no root no message, how i had done nothingh.............
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Don't expect a message to appear after you flash it. The only indication would be it triping knox every time it boots. ("Set warranty bit: Kernel" appears in yellow at the top of the screen when it boots. Also the opened padlock which indicates something custom has been installed. But these disappear when the boot animation starts and then there are no more indicators. So if those don't appear at boot you have done something wrong in the process)

Did you install magisk manager app? Since you can't flash the zip by yourself in this phone, magisk manager doesn't get installed at all. To be able to do anything with it, you'll need that app. After you install and open magisk manager, if it says magisk is not installed, then you have done something wrong.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
YEs. thank you for reply. I make it with magisk manager app, boot patched with magisk. flahsed boot.img.tar with odin...passed but notingh.. i dont understand what's is wrong -_-
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Think back on the steps you did... what did you do? Remember and tell me here so that I can have a chance to understand what you did wrong.

Also, I've edited my reply but you replied first, please read my reply again and check if you can see anything I've mentioned there, just in case.

Now that I remember, if you flashed the right boot img, the phone should've made a factory reset, because of an incompatibility or something it would say.

Edit: Now that I think more about it, you need to look for a file named patched_boot.img after you patch it. the boot.img file you use to get the patched one doesn't change at all. Magisk, using the boot.img you provide, creates a new patched_boot.img file instead. It should either be in the Downloads folder or the Magisk Manager folder it creates.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
Yes... i have understand that i have to flash patched boot image in download directory. i have tried to flash it in odin but immediately fail. The phone restart without problem but, no root,logically..... what is wrong? sorry for my english i am italian boy :D
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
You need to turn the OEM unlock option in the developer options on. It will probably factory reset your phone, though it shouldn't matter because flashing the patched boot will do the same as well. Just don't forget to take a backup
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
oem unlock is on, and debug too..............i don't understand what is wrong...............:rolleyes:
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Ok that is weird... I can't tell what is wrong from this little info though.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
I try now to do from te begin all the procedure with another firmware..........

I use A920FPUU2BSG...extract boot.img, patch it with magisk, and try to flash by odin.........
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Use only your own firmware's boot.img. Go to Settings->About Phone->Software Information and check which firmware you have and download only that firmware(or its boot.img). Otherwise it may brick your phone.

Also take care to download the firmware for your country/region when downloading it.

Possibly even better, use SamFirm to get the latest firmware for your country/region directly from samsung, extract boot.img, patch it and save the patched_boot.img in a .tar file on computer, then flash the firmware(if it's not the one you have) and the patched boot immediately after that.

Note: SamFirm can download ONLY the latest firmware.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
OK, all done as you suggest and reading the post.....all ok but when flash magisk.patched.tar error writing fail odin........... :rolleyes::rolleyes:

OK! YES i solve it! my phone is rooted! THANKS
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
So, what exactly was causing the problem and what did you do to solve it? Please share it here so that I can learn about it in case it's not something I know about and it happens to me as well, not to mention the others who might have the same problem later on.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
Simple i don't remember to rename magisk_patched.tar...... into----- boot.tar.md5 ;)
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
Oh, that's interesting. I never had to do anything like that though.

Edit: Although I did need to rename the patched boot.img to just "boot.img" and make it into tar it after that. That may have been the problem for you? Also, the .md5 in the end is unnecessary because Samsung usually prepares their firmware, put it into a tar file, calculate its MD5 hash and append it to the file somewhere, changing it into .tar.md5 in the process. It allows ODIN to check if the files's hash matches the hash it was appended with and if it doesn't, it means the firmware file is corrupted or modified somehow without changing the hash.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] baroedo:
Edit: Although I did need to rename the patched boot.img to just "boot.img" and make it into tar it after that. That may have been the problem for you? YES!
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] thesingular:
I see, I forgot to mention that when I was trying to help you. I may have written that earlier(before you asked for help) but it's probably buried somewhere in this thread so you have probably missed it.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] e24421:
Does anyone know how to set selinux permissive

Does anyone know how to set selinux permissive ？ thanks so much. :)
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] jeffersonveloso_06:
Guys I did the procedure and the root worked on the phone, but when I turn on the phone internet the knox agent scans the files and blocks the phone saying that it can not be used without authorization. I try to flash the rom again through Odin and fall into the MDM MODE error. Any ideas on how to get around this? My phone was on android 9 before performing the procedure, then went back to 8 and did the root and gave it.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] franklin84:
Hello.

Someone tried this:?

CF auto root
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Mykairl:
Hello my fellow A9 users.. any idea if TWRP ready for A9 yet...?
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] varadinum:
Twrp doesn't exist yet. Root access works with magisk.

Gesendet von meinem SM-A920F mit Tapatalk
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] varadinum:
SecurityLockAgent and Safety deactivate. So everything works fine.View attachment 4914423View attachment 4914425

Gesendet von meinem SM-A920F mit Tapatalk
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Codename_Falcon:
Hi All,

Just a heads up. The new firmware released in December contain the RMM / KG (“Remote Mobile Manager” and “KNOX Guard“) that Samsung has been putting in other models lately. Once you update to these versions can no longer roll back to previous firmware. Furthermore, the OEM Unlock toggle will disappear until the phone has been left running for 7 days between software update checks.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] varadinum:
Thanks. The new firmware can still be flashed with Odin, right?

Gesendet von meinem SM-A920F mit Tapatalk
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] kissa67zwi:
It is possible to stitch a new insertion. Only it will then be rolled away it will be impossible
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Codename_Falcon:
Yes it can.

I managed to get it rooted again on the December 2019 update. Took a bit of work to figure it out.
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] WS24:
Is there any step by step root for A9 2018 Android 9.0 V2 Bootloader(A920FXXU2BSG1) October 1,2019 Security patch level? thanks
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] luan_na_lua:
Root galaxy a9

alguma novidade sobre o root? se alguém tiver informação, por favor, compartilhe!
[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Bruneba:
[MENTION=10486233]luan_na_lua[/MENTION]

Leia as mensagens desse post, que terá as informações que precisa.