[GUIDE] How to root Galaxy A7 2018 - Samsung Galaxy A7 (2018) Guides, News, & Discussio

I am not responsible for any loss or damages done by you
Before we proceed we must first unlock the bootloader.
Unlocking Bootloader​Unlocking the bootloader on modern Samsung devices have some caveats. The newly introduced VaultKeeper service will make the bootloader reject any unofficial partitions in some cirumstances.
Allow bootloader unlocking in Developer options → OEM 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.
Go through the initial setup. Skip through all the steps since data will be wiped again in later steps. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is grayed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode
Instructions​
Use either samfirm.js, Frija, or Samloader to download the latest firmware zip of your device directly from Samsung servers.
Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_A750FXX.tar.md5
Install Zarchiver from the Play Store.
Click on AP file and rename AP_A750FXX.tar.md5 to AP_A750FXX.tar
Once you have renamed AP file click and again you will be given the option to extract. Once extracted, locate boot.img.lz4
Then extract boot.img.lz4 leaving you with boot.img
Install Magisk manager and launch it.
Use Magisk Manager to patch boot.img, once patched locate magisk_patched.img and rename it into boot.img
Return to Zarchiver and locate the patched boot.img and compress to boot.tar
Move compressed boot.tar to your computer and rename to boot.img.tar
Reboot to download mode. Open Odin on your PC, and flash boot.img.tar in AP slot.
Once odin says pass, your device will boot to stock recovery and you will have to do a factory reset.
After device boots go through the initial setup and connect the device to Internet during the setup.
Enable developer options in settings, and confirm that the OEM unlocking option exists and is grayed out.
Reinstall Magisk manager and follow all prompts.
Congatulations! Your phone is now rooted.

Hello! Thank you for this guide. I followed all the steps, but after flashing and reinstalling Magisk, it doesn't ask me for additional setup. Do you have any advice?

Related

[Guide]How to root Samsung Galaxy C9 pro (SM-C9000)

Hi! After struggling in rooting my C9 pro (SM-C9000, TGY) due to the lack of a proper guide, I decided to provide my guide to the community.
Of course, I don't take responsibility for damages etc. etc. Read the entirety of the guide before doing anything.
Useful shortcuts: Holding down power+volume down for a couple seconds force reboots from almost anywhere. Vol up+home+power while booting boots into recovery. Vol down+home+power boots into download (odin) mode.
Step 1) Fetch the required files(sorry I can't post direct links):
Nougat 7.1.1 firmware from sammobile
Oreo 8.0 firmware from sammobile
Odin https://www.xda-developers.com/update-firmware-any-samsung-phone/
Magisk Manager https://www.xda-developers.com/how-to-install-magisk/ (The link that says "Download the latest Magisk Manager APK here")
ADB https://www.xda-developers.com/install-adb-windows-macos-linux/
CROM Service apk from apkmirror
Step 2) Prepare the files
Unlock developer options on your phone by spamming Build Number in Settings> About Phone> Software Information. Enable USB debugging from developer options. Connect your phone to your PC via cable. Extract ADB (platform-tools) on your desktop (or other location). Extract Oreo firmware. There should be 5 files. Copy the one that starts with AP into platform-tools folder. Open the platform-tools folder. Hold down shift and right click inside the folder. Choose "Open PowerShell window here" from the context menu. Type or copy-paste
Code:
.\adb devices
to start ADB. On your phone, check "always allow on this PC" and click OK when prompted. Enter the code again and check if a device appears on the list. Then type
Code:
.\adb push AP_C9000ZHU1CSC1_CL14667562_QB22709761_REV00_user_low_ship_MULTI_CERT_meta.tar.md5 /sdcard/
.(Change the name of the file corresponding to yours. You can change the destination to another folder in your phone. Ex. /sdcard/download/) This will transfer the file from your PC to your phone. Do not drag and drop the file. This might corrupt it, causing a bootloop upon installiation. (Happened to me initially. Recovered & used the push command to get it to work.). Transfer Magisk Manager's apk to your phone or download it directly from your phone(you can drag and drop this one, as it won't install if corrupted(it won't corrupt)). Install Magisk Manager on the phone(Enable sideloading if asked). In the app, touch the topmost install button and touch install again in the next screen. You will have two options: "Download zip only" and "Select and patch a file". Choose "Select and patch a file", then locate the AP file you transferred to the device. Magisk manager will patch the file and generate magisk_patched.tar in /sdcard/download/. In ADB, type
Code:
.\adb pull /sdcard/download/magisk_patched.tar
This will transfer it to the platform-tools folder. Again, don't use windows explorer to transfer. That will most certainly corrupt the file.
Step 2.5) Backup
Backup your data (you can use smart switch desktop program paired with mobile app to backup most of the stuff). Remove your google account from the device.
Step 3) Install Nougat 7.1.1
Extract Nougat 7.1.1 firmware. Extract odin. Run Odin.exe (might have version in name). Click OK. Factory reset your phone (You can do so from settings or recovery mode.). After the reset, reboot into download mode. It will ask if you're sure you want to install unofficial software, choose continue (If I don't recall incorrectly, the button for that was vol up). Plug your phone into your PC. Odin log should say "added!!" and you should see your device in one of the rectangles above. Now select the tar.md5 files extracted from the 7.1.1 firmware. Click the BL button, locate the BL_etcetc.tar.md5 file, click open. It will check the md5 for a second then let you click the next button. After choosing the BL(bootloader), AP(system), CP(radio) and CSC(localization) files (USERDATA button should remain empty, HOME_CSC file has no use) make sure only F.reset time and auto reboot are selected in options. Click start to begin. After flashing, it will do another factory reset and show you the setup.
Step 4) Unlock Bootloader
Skip everything in setup, then unlock develper options and you should see "OEM Unlocking" option that was removed in OREO firmware in there. Enable it. Next transfer the CROM service apk to your device (or download it directly). Install the app. Open it. Unlock the bootloader. (This step is required because C9000 is a Chinese phone)
Step 5) Install Oreo again
Boot into download and connect to odin. You can use the reset button to empty the buttons. Now select BL, CP and CSC files from the extracted oreo firmware. For AP, choose magisk_patched.tar . Start. If the installiation fails, you didn't unlock the Bootloader properly. The phone will reboot and factory reset a couple times. When it boots up, you'll have magisk installed.
Step 6) Things to do after rooting(optional)
First of all, magisk can hide root from Google, but not Samsung. Samsung Health, Knox secure container, Maximum power saving mode and Samsung pay won't work after you root. NFC will keep turning on on its own unless you uninstall Samsung pay. A samsung package (I'm not sure about the name but I think it was security log agent) will keep sending an unblockable notification offering to unroot. Uninstall that too, and you'll have a stable experience.
Recovering from fails:
If download mode refuses to install because of unofficial binaries, the bootloader isn't properly unlocked. Wait a couple seconds and force reboot with the key combination. Since it couldn't flash the system, that should reboot back to download mode (or recovery. in that case, choose "reboot to bootloader"). Install the official firmware, unlock bootloader and try again.
If the magisk_patched.tar file gets corruped and you flash the corrupted file successfully, your device will get into a bootloop. After the install, odin orders the phone to reboot into recovery to factory reset, but since the system image is corrupted, it won't be able to boot and produce a kernel panic. This will cause the phone to reboot, which will fail and cause it to try to reboot again. Since the phone doesn't get past the splash screen, this bootloop cannot be interrupted by button shortcuts. You should wait for the battery to die out for the bootloop to end. (It should take a day at max. Wrap a towel around it to block the vibration sounds if you want) After battery gets depleted, you need to perform a quick maneuver. You should plug the phone into a power supply (preferably your computer) while holding down volume down+home+power buttons. If you do it right, it will boot into download mode. (Otherwise, it will bootloop again. Simply unplug, wait for it to stop and try again) Flash the official firmware and repatch the AP file. Just in case you run into this issue, I recommend having less than 10% charge in your phone while flashing, just to make the wait time shorter.
Important: Check your firmware's baseband version from settings before flashing. In C9000ZHU1CSC1, CSC1 is the system and U1 is the bootloader version. Compare the bootloader version to the firmware you're going to flash and make sure they match. You can't downgrade bootloader versions. Flashing a previous version will brick your phone. (Probably permanently) This shouldn't be an issue since sm-C9000 has only one bootloader version, but check it anyways just to be sure.
Lojcs said:
Hi! After struggling in rooting my C9 pro (SM-C9000, TGY) due to the lack of a proper guide, I decided to provide my guide to the community.
Of course, I don't take responsibility for damages etc. etc. Read the entirety of the guide before doing anything.
Useful shortcuts: Holding down power+volume down for a couple seconds force reboots from almost anywhere. Vol up+home+power while booting boots into recovery. Vol down+home+power boots into download (odin) mode.
Step 1) Fetch the required files(sorry I can't post direct links):
Nougat 7.1.1 firmware from sammobile
Oreo 8.0 firmware from sammobile
Odin https://www.xda-developers.com/update-firmware-any-samsung-phone/
Magisk Manager https://www.xda-developers.com/how-to-install-magisk/ (The link that says "Download the latest Magisk Manager APK here")
ADB https://www.xda-developers.com/install-adb-windows-macos-linux/
CROM Service apk from apkmirror
Step 2) Prepare the files
Unlock developer options on your phone by spamming Build Number in Settings> About Phone> Software Information. Enable USB debugging from developer options. Connect your phone to your PC via cable. Extract ADB (platform-tools) on your desktop (or other location). Extract Oreo firmware. There should be 5 files. Copy the one that starts with AP into platform-tools folder. Open the platform-tools folder. Hold down shift and right click inside the folder. Choose "Open PowerShell window here" from the context menu. Type or copy-paste to start ADB. On your phone, check "always allow on this PC" and click OK when prompted. Enter the code again and check if a device appears on the list. Then type .(Change the name of the file corresponding to yours. You can change the destination to another folder in your phone. Ex. /sdcard/download/) This will transfer the file from your PC to your phone. Do not drag and drop the file. This might corrupt it, causing a bootloop upon installiation. (Happened to me initially. Recovered & used the push command to get it to work.). Transfer Magisk Manager's apk to your phone or download it directly from your phone(you can drag and drop this one, as it won't install if corrupted(it won't corrupt)). Install Magisk Manager on the phone(Enable sideloading if asked). In the app, touch the topmost install button and touch install again in the next screen. You will have two options: "Download zip only" and "Select and patch a file". Choose "Select and patch a file", then locate the AP file you transferred to the device. Magisk manager will patch the file and generate magisk_patched.tar in /sdcard/download/. In ADB, type This will transfer it to the platform-tools folder. Again, don't use windows explorer to transfer. That will most certainly corrupt the file.
Step 2.5) Backup
Backup your data (you can use smart switch desktop program paired with mobile app to backup most of the stuff). Remove your google account from the device.
Step 3) Install Nougat 7.1.1
Extract Nougat 7.1.1 firmware. Extract odin. Run Odin.exe (might have version in name). Click OK. Factory reset your phone (You can do so from settings or recovery mode.). After the reset, reboot into download mode. It will ask if you're sure you want to install unofficial software, choose continue (If I don't recall incorrectly, the button for that was vol up). Plug your phone into your PC. Odin log should say "added!!" and you should see your device in one of the rectangles above. Now select the tar.md5 files extracted from the 7.1.1 firmware. Click the BL button, locate the BL_etcetc.tar.md5 file, click open. It will check the md5 for a second then let you click the next button. After choosing the BL(bootloader), AP(system), CP(radio) and CSC(localization) files (USERDATA button should remain empty, HOME_CSC file has no use) make sure only F.reset time and auto reboot are selected in options. Click start to begin. After flashing, it will do another factory reset and show you the setup.
Step 4) Unlock Bootloader
Skip everything in setup, then unlock develper options and you should see "OEM Unlocking" option that was removed in OREO firmware in there. Enable it. Next transfer the CROM service apk to your device (or download it directly). Install the app. Open it. Unlock the bootloader. (This step is required because C9000 is a Chinese phone)
Step 5) Install Oreo again
Boot into download and connect to odin. You can use the reset button to empty the buttons. Now select BL, CP and CSC files from the extracted oreo firmware. For AP, choose magisk_patched.tar . Start. If the installiation fails, you didn't unlock the Bootloader properly. The phone will reboot and factory reset a couple times. When it boots up, you'll have magisk installed.
Step 6) Things to do after rooting(optional)
First of all, magisk can hide root from Google, but not Samsung. Samsung Health, Knox secure container, Maximum power saving mode and Samsung pay won't work after you root. NFC will keep turning on on its own unless you uninstall Samsung pay. A samsung package (I'm not sure about the name but I think it was security log agent) will keep sending an unblockable notification offering to unroot. Uninstall that too, and you'll have a stable experience.
Recovering from fails:
If download mode refuses to install because of unofficial binaries, the bootloader isn't properly unlocked. Wait a couple seconds and force reboot with the key combination. Since it couldn't flash the system, that should reboot back to download mode (or recovery. in that case, choose "reboot to bootloader"). Install the official firmware, unlock bootloader and try again.
If the magisk_patched.tar file gets corruped and you flash the corrupted file successfully, your device will get into a bootloop. After the install, odin orders the phone to reboot into recovery to factory reset, but since the system image is corrupted, it won't be able to boot and produce a kernel panic. This will cause the phone to reboot, which will fail and cause it to try to reboot again. Since the phone doesn't get past the splash screen, this bootloop cannot be interrupted by button shortcuts. You should wait for the battery to die out for the bootloop to end. (It should take a day at max. Wrap a towel around it to block the vibration sounds if you want) After battery gets depleted, you need to perform a quick maneuver. You should plug the phone into a power supply (preferably your computer) while holding down volume down+home+power buttons. If you do it right, it will boot into download mode. (Otherwise, it will bootloop again. Simply unplug, wait for it to stop and try again) Flash the official firmware and repatch the AP file. Just in case you run into this issue, I recommend having less than 10% charge in your phone while flashing, just to make the wait time shorter.
Important: Check your firmware's baseband version from settings before flashing. In C9000ZHU1CSC1, CSC1 is the system and U1 is the bootloader version. Compare the bootloader version to the firmware you're going to flash and make sure they match. You can't downgrade bootloader versions. Flashing a previous version will brick your phone. (Probably permanently) This shouldn't be an issue since sm-C9000 has only one bootloader version, but check it anyways just to be sure.
Click to expand...
Click to collapse
Have you tried this method and phone working fine will there will be any problem if i use this method for rooting c9000?
khankk42 said:
Have you tried this method and phone working fine will there will be any problem if i use this method for rooting c9000?
Click to expand...
Click to collapse
Yes, I did root my SM-C9000 using this method, and it is working nicely. Obviously I lost access to Secure Folder and Samsung Pay. You should be able to install the Play Store version of Samsung Health. Maximum Power Saving froze the phone the first two times I enabled it, but it's working fine now. One unexpected caveat is that mobile hotspot started to turn itself off if mobile data is enabled even though my carrier has no restrictions on using hotspot. You can't share your data connection using Bluetooth or usb cable neither. You can still use the hotspot for creating a local network. Other than those, I didn't experience any problems after rooting. While I was rooting, I did the mistake of using MTP to transfer the image and as a result my phone bootlooped for half a day but if you follow the instructions, that won't be a problem.
Of course, I don't guarantee anything and don't take responsibility, but there is no reason anything should go wrong.
My base band R16NW.C9000ZHU1CSC1, model number SM-C9000, android 8.0.0...
I have never rooted any phones in my life. What should i do? I search on internet but i didnt found any spesific things about "R16NW.C9000ZHU1CSC1" can you help me? Those options will work for me to ?
otocu said:
My base band R16NW.C9000ZHU1CSC1, model number SM-C9000, android 8.0.0...
I have never rooted any phones in my life. What should i do? I search on internet but i didnt found any spesific things about "R16NW.C9000ZHU1CSC1" can you help me? Those options will work for me to ?
Click to expand...
Click to collapse
Sorry for responding late. Yes, that is the exact model that I have and rooted using the method in the post. If you feel confident, you can follow trough it and root your phone. You can grab the required firmware from Sammobile. Keep in mind that after rooting some features might stop working (like hotspot and knox-related features). Good luck!
I got the same model of Samsung phone. I follow the steps but till step five, when i press open the files in odin and press start button, the odin will disappear in my computer. Then i try again and it failed. My phone shows: unsuppoted dev types. Here are my photos. Do you have any ideas? And i dunno how can i redo it again to root my phone. Would love to see helps from you, thanks!
cherrio128 said:
I got the same model of Samsung phone. I follow the steps but till step five, when i press open the files in odin and press start button, the odin will disappear in my computer. Then i try again and it failed. My phone shows: unsuppoted dev types. Here are my photos. Do you have any ideas? And i dunno how can i redo it again to root my phone. Would love to see helps from you, thanks!
Click to expand...
Click to collapse
Sorry for the late response. Searching that on the internet, it seems you might be using an old version of Odin. Please make sure you're using 3.13.1 and try again

[ROOT GUIDE] T860 root no TWRP method

This is an advanced guidance.
I will explain exact procedure presuming other things are already known for those who are know what are they doing.
Therefore, if anything goes wrong I don't feel responsible for whatever you do.
1. Unlock bootloader
2. Device will, format itself. Do initial setup without setting anything because you will need it to format again.
3. Boot device and turn on OEM unlock and USB debugging in to developer options in system settings.
4. Reboot device again.
5. Download stock firmware (you can use FRIJA or SAMFIRM tool from XDA.)
6. Unpack firmware zip
7. Connect tablet to your PC
8. From folder of unpacked firmware COPY AP file to your tablet SDCard/Documents folder.
9. Download and install latest Magisk Manager.apk on tablet.
10. Open Magisk Manager you will see "Magisk is NOT installed" in red letters but no problem.Set it EXACTLY like on picture 1.
11.Click "install" and you will see screen on picture 2.
12. Select "SELECT AND PATCH A FILE" and select that AP firmware file you previously copied from your PC
13. Magisk will start to patch a file. When patching is done...
14. Close Magisk Manager and open your SDCard/Documents folder on tablet. You will find there "MAGISK_PATCHED.TAR" file.
15. Copy that file from tablet to PC
FLASHING
Turn off tablet and put it in download mode
1. Open on PC patched ODIN 13.3 or 13.4 and UNTICK "reboot automaticly" on ODIN settings
2. Select files for flashing BL to BL, CP to CP, CSC to HOME_CSC....
BUT EXCEPT ORIGINAL AP FILE SELECT "MAGISK_PATCHED.TAR" FILE !
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
5. Set up tablet as usually.
6. Install Magisk Manager.apk and open it...It will do some patching updates then reboot itself.
7. Open Magisk Manager again and install Magisk zip from manager. Manager will root and reboot device itself.
8. You have a root without TWRP
.
To keep this guide short, same video procedure I found here...It is for S10+ but applicable for this tablet as well.
ROOT WITH MAGISK
.
Thank for that clarity .. i just get an Tab s6 and i needed i simple and recent tutorial.
This guide worked perfectly. The one with twrp didn't.
Thank you.
This didn't work for me.
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
I can't get into Recovery Mode to format. It freezes on the boot logo, I'll hold Volume Down + Side Key to power off, Volume Up + Side Key to boot into Recovery Mode but it just tried to boot normally and freezes on the boot logo.
Is it better to root first or flash TWRP.
EDIT: Duh!!
tin2404 said:
This is an advanced guidance.
I will explain exact procedure presuming other things are already known for those who are know what are they doing.
Therefore, if anything goes wrong I don't feel responsible for whatever you do.
1. Unlock bootloader
2. Device will, format itself. Do initial setup without setting anything because you will need it to format again.
3. Boot device and turn on OEM unlock and USB debugging in to developer options in system settings.
4. Reboot device again.
5. Download stock firmware (you can use FRIJA or SAMFIRM tool from XDA.)
6. Unpack firmware zip
7. Connect tablet to your PC
8. From folder of unpacked firmware COPY AP file to your tablet SDCard/Documents folder.
9. Download and install latest Magisk Manager.apk on tablet.
10. Open Magisk Manager you will see "Magisk is NOT installed" in red letters but no problem.Set it EXACTLY like on picture 1.
11.Click "install" and you will see screen on picture 2.
12. Select "SELECT AND PATCH A FILE" and select that AP firmware file you previously copied from your PC
13. Magisk will start to patch a file. When patching is done...
14. Close Magisk Manager and open your SDCard/Documents folder on tablet. You will find there "MAGISK_PATCHED.TAR" file.
15. Copy that file from tablet to PC
FLASHING
Turn off tablet and put it in download mode
1. Open on PC patched ODIN 13.3 or 13.4 and UNTICK "reboot automaticly" on ODIN settings
2. Select files for flashing BL to BL, CP to CP, CSC to HOME_CSC....
BUT EXCEPT ORIGINAL AP FILE SELECT "MAGISK_PATCHED.TAR" FILE !
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
5. Set up tablet as usually.
6. Install Magisk Manager.apk and open it...It will do some patching updates then reboot itself.
7. Open Magisk Manager again and install Magisk zip from manager. Manager will root and reboot device itself.
8. You have a root without TWRP
.
To keep this guide short, same video procedure I found here...It is for S10+ but applicable for this tablet as well.
ROOT WITH MAGISK
.
Click to expand...
Click to collapse
Before step 10 ensure that you have a Wi-Fi connection. I think Magisk requires it. Magisk would not produce the drop-down till I connected to the internet. Then everything worked fine.
Good man, thanks so much!
Sent from my Pixel 4 XL using Tapatalk
I wish this worked for the TMobile version
noxarcana said:
This didn't work for me.
3. Flash all files to your tablet and disconnect from PC when ODIN finished
4. Reboot tablet into recovery and format data and cachee ! Restart tablet and wait few minutes to load
I can't get into Recovery Mode to format. It freezes on the boot logo, I'll hold Volume Down + Side Key to power off, Volume Up + Side Key to boot into Recovery Mode but it just tried to boot normally and freezes on the boot logo.
Click to expand...
Click to collapse
You need to restart tab after flashing BUT again in DOWNLOAD MODE...not in recovery ! Then flash TWRP and restart in twrp recovery.You need to untick AUTO REBOOT in Odin before flashing TWRP.
Not able to shutdown
After rooted with Magisk,my Tab S6 is not able to shutdown,no matter which methode I use,it just restart itself.
Does anyone have this issue?
worked perfect on oneui 3.1 aswell thank you
I rooted my Galaxy Tab S6 using the Magisk-only method after updating to Android 11. I had trouble with the post-Odin step (pressing power and volume up right after screen turns off) so I had to do the flash a couple more times before I got that right, and everything shows as rooted now.
However, my 256GB internal storage is only showing up as 32GB! Is that a firmware thing, or a partitioning thing? How can I fix it?
Used ther same method on my rooted tab with the May update (T865XXU4CUE1_T865OXM4CUE1_DBT) - magisk-patch AP, flash all files in Odin, after reboot the device is rooted.
BUT after another reboot (or rather shutdown and boot), root access is lost and cannot be restored in any way until I re-flash the device with the same firmware again.
Any solution to this?
6. Install Magisk Manager.apk and open it...It will do some patching updates then reboot itself.
7. Open Magisk Manager again and install Magisk zip from manager. Manager will root and reboot device itself.
Click to expand...
Click to collapse
This never happens. I even uninstalled Magisk Manager after patching, flashed the firmware, reinstalled the latest Canary Manager, still no patching or reboot happening.
Edit: just rebooted and shutdown a few times, root sticks. Before, I held VolUp as described in many guides until the "secured by Knox" logo appears, now didn't touch any button except Power.
Oh well...

[Guide] Root and install PBRP

I AM NOT RESPONSIBLE FOR ANY MISHAPS OR YOU BEING CLUMSY BEFORE DOING ANYTHING I HIGHLY ADVISE YOU TO BACKUP THE NECESSARY DATA STORED ON YOUR PHONE
Before we proceed we must first unlock the phone's bootloader or otherwise you'll encounter "Only official binaries are allowed to be flashed" that being said let's go!
Unlocking Bootloader​
Unlocking the bootloader on modern Samsung devices have some caveats. The newly introduced VaultKeeper service will make the bootloader reject any unofficial partitions in some cirumstances.
Allow bootloader unlocking in Developer options → OEM 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.
Go through the initial setup. Skip through all the steps since data will be wiped again in later steps. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is grayed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode
PBRP installation
First and foremost PBRP doesn't seem to work properly on the latest build of the OS so we might have to downgrade on an older build of the OS which is from 20200817105004 with a security patch level of 2020-08-01 otherwise we'll encounter issues that users have experienced on the latest build of the OS, so let's get started
Use either samfirm.js, Frija, samfw or Samloader to download the older build firmware zip of your device directly from Samsung servers.
Reboot to download mode. Open Odin on your PC, and flash AP, together with BL, CP, and CSC.
Your device should reboot automatically once Odin finished flashing.
Go through the initial setup. Skip through all the steps since data will be wiped again in later steps. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is grayed out.
Download this file.
Reboot to download mode. Open Odin on your PC and flash the downloaded file.
Reboot to recovery and voila! You now have PBRP.
Root installation
Use the firmware zip you installed earlier.
Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
Rename AP_[device_model_sw_ver].tar.md5 to AP_[device_model_sw_ver].tar
Open and extract boot.img.lz4 which it will leave you boot.img
Copy the extracted boot.img file to your phone.
Press the Install button in the Magisk card.
Choose “Select and Patch a File” in method, and select boot.img
The Magisk app will patch the file to [Internal Storage]/Download/magisk_patched_[random_strings].img
Copy the patched boot.img file to your PC.
Rename the magisk_patched_[random_strings].img to boot.img and repack it as tar file format.
Reboot to download mode. Open Odin on your PC, and flash boot.img.tar as AP.
Your device should reboot automatically once Odin finished flashing.
Install the latest Magisk app and launch the app. It should show a dialog asking for additional setup. Let it do its job and the app will automatically reboot your device.
Voila! Enjoy Magisk
Credits
@topjohnwu - For magisk
@itmr - For compiling and making PBRP.

How To Guide Guide to root Galaxy A22 5G, unlock bootloader and flash official firmware (noob friendly)

Code:
Your warranty is now void.
If you root your device, Your KNOX status will be tripped.
You can still pass the safety net after you root if you follow the instructions.
I am not responsible for bricked devices, dead SD cards although it is not really possible
Please do some research if you have any concerns about doing this to your device
How to flash official firmware? (not the root and unlock bootloader part!)
You will need:
A Galaxy A22 5G and common sense
Samsung Odin (the flashing tool of the official firmware)
https://dl2018.sammobile.com/Odin3-v3.14.1.zip
You need to extract the zip file and you are going to use the file Odin3_v3.14.1.exe inside the folder.
Samsung Android USB Driver for Windows
Samsung Android USB Driver | Samsung Developers
You need the driver only if you are developing on Windows and want to connect a Samsung Android device to your development environment over USB.
developer.samsung.com
Double-click and install the exe file.
Samsung Official Firmware
Release 1.0.3 · zacharee/SamloaderKotlin
Contribute to zacharee/SamloaderKotlin development by creating an account on GitHub.
github.com
Download the platform you want to download to. (Windows)
You need to extract the zip and double click open the file Bifrost.exe inside the folder.
You need to fill in the Model, Region, press the Check for Updates button and the Download button.
How to find the Model: on your phone → Settings → About Phone → The third row says the Model number and you need to remove the part with the part of /xx, for example, SM-A226B/DS and you only need to type SM-A226B
How to find the Region: You can check the Region at this link https://samfrew.com/model/SM-S908B/
You need to find find a three-letter word depending on your carrier and country and type it in Bifrost, for example, EVR
Press the Check for Update button and download it with the Download button.
Put it to a place you can easily find, ie. Desktop.
After downloading it, find the file SM-xxxxx_x_xxxxxxxx_xxx.zip.enc4 on the place you put it and change the document format from .enc4 to .zip. Then, double click and extract the file.
Open Odin3_v3.14.1.exe and turn off your phone. Connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrived at Download Mode press volume up. Go back to Odin3_v3.14.1.exe:
-Click on BL and select BL_xxxxxxxxxx.tar.md5
-Click on AP and select AP_xxxxxxxxxxx.tar.md5
-Click on CP and select CP_xxxxxxxxxx.tar.md5
(If you want to keep your data don't flash CSC).
-Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5
-Click on USERDATA and select HOME_CSC_OMC_xxxxxxxxxx.tar.md5
Press Start to flash the firmware, after done, your device will automatically reboot to the system.
How to unlock the bootloader?
Go to your phone → Settings → About Phone → Software information → Press Build number 6 times until you see the notice “You’re now a developer”
Go in Settings → Developer options → enable OEM unlocking
Power off your phone first. Then, connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone.
When you arrived at Download Mode, long press volume up until you see the black screen. Confirm to unlock the bootloader and you will erase your device.
How to root your phone?
After you unlock your bootloader, you set up your phone and make sure you do not sign in google account first. Install Magisk https://github.com/topjohnwu/Magisk/releases/download/v24.1/Magisk-v24.1.apk on your phone. Oh yes, in case you do not know, you need to allow the app to install apps so that you can install the apk.
Transfer AP_xxxxxxxxxx.tar.md5 in the firmware you download from your PC/Laptop to your phone.
Open Magisk on your phone and press the install button in the Magisk column. Select 'Select and Patch a File', 'Let's Go' and find the AP_xxxxxxxxxx.tar.md5 and select it. You can have a cup of coffee if you like when you waiting for the patching of the file.
After finishing the patching, you need to transfer the file magisk_patched-24xxx_xxxxx.tar in the Downloads folder back to your PC/Laptop.
Turn off your phone. Connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrived at Download Mode press volume up. Open Odin3_v3.14.1.exe on your PC/Laptop:
Click on BL and select BL_xxxxxxxxxx.tar.md5
-Click on AP and select magisk_patched-24xxx_xxxxx.tar
-Click on CP and select CP_xxxxxxxxxx.tar.md5
(If you want to keep your data don't flash CSC).
-Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5
-Click on USERDATA and select HOME_CSC_OMC_xxxxxxxxxx.tar.md5
When it finishes flashing it, it will automatically reboot and you can gain root access.
Optional: If you want to have the safety net passed (most of the banking apps use it), then you need to install the zip
as a Magisk module in Magisk https://github.com/kdrag0n/safetynet-fix/releases
How? Go to Magisk → Modules → install from storage and select the zip you downloaded.
Or you could just get your AP file and extract your boot.img.lz4 (use lz4 from github), put it on your phone and patch it with Magisk, then flash the VBMeta that this thread has in Odin, reboot and erase the cache and data in the stock recovery, rebooting to download mode again and flashing your magisk patched boot img in a tar file.
Platypus Enthusiast said:
Or you could just get your AP file and extract your boot.img.lz4 (use lz4 from github), put it on your phone and patch it with Magisk, then flash the VBMeta that this thread has in Odin, reboot and erase the cache and data in the stock recovery, rebooting to download mode again and flashing your magisk patched boot img in a tar file.
Click to expand...
Click to collapse
I agree with you. You can also use this way. However, using Magisk does all the jobs makes life easier and I am a bit lazy
Hi! I'm new into rooting and I just wanted to know, What's the risk of bricking when using magisk? I've rooted an old phone successfully via TWRP tho this way seems a bit more direct, and can I choose any region during the official firmware download?
MateoElias said:
Hi! I'm new into rooting and I just wanted to know, What's the risk of bricking when using magisk? I've rooted an old phone successfully via TWRP tho this way seems a bit more direct, and can I choose any region during the official firmware download?
Click to expand...
Click to collapse
The worst that would happen is a bootloop, which you can easily fix with a factory reset (not a good solution, but at least it works). The only dangerous part is installing the wrong TWRP version or a failed Odin flash, but no bricks. Odin mode will almost always work. Just make sure you have a charger in good condition.
As for picking regions, I'd just pick the phone's original region, if I were you. I'm not actually sure if region is tied to the device itself but better safe than sorry.
Greetings...
To check your Buld Number or Build Version, before you proceed doing any stuffs, type on the phone keypad this >>> *#1234#* and it will show on your device screen
Just tried to follow the guide, but I'm getting an error while flashing:
Custom binary blocked by OEM Lock: vbmeta
Firmware used:
A226BXXU4AVB1_A226BOXM4AVB1_NEE
Patched AP with Magisk 24.3.
Edit: NVM, LONG press volume up...
tried to follow the guide my A22 is rooted. But i have problem.
no application recognizes the root. I installed root checker and he says my phone is rooted but superuser binary files it not installed
Any one can help please?
Alpa475 said:
tried to follow the guide my A22 is rooted. But i have problem.
no application recognizes the root. I installed root checker and he says my phone is rooted but superuser binary files it not installed
Any one can help please?
Click to expand...
Click to collapse
I suppose you may have installed to sbin, but I am not really sure
Can you update the link to the Magisk release?
Leonardo Green said:
You can root Galaxy A22 and A22 5G in TWRP.
Click to expand...
Click to collapse
I am not familiar with the A22 series, but I will say this: I'm rather wary of questionable root solutions, especially those that aren't open source. This is why I personally prefer Magisk - it is completely open source, so anyone who would like to examine the code can do so.
Sorry, when i See this tutorial, my phone has updated to android 13. Could this step possible to do now with this android version?
Very much thank you for the information!
have successfully run the tutorial above. even already using GSI rom android 13 from pixelExperience. but the network you get is stuck on 4G. are there any tools or tutorials to restore the 5g network.
Williamtung said:
Code:
Your warranty is now void.
If you root your device, Your KNOX status will be tripped.
You can still pass the safety net after you root if you follow the instructions.
I am not responsible for bricked devices, dead SD cards although it is not really possible
Please do some research if you have any concerns about doing this to your device
How to flash official firmware? (not the root and unlock bootloader part!)
You will need:
A Galaxy A22 5G and common sense
Samsung Odin (the flashing tool of the official firmware)
https://dl2018.sammobile.com/Odin3-v3.14.1.zip
You need to extract the zip file and you are going to use the file Odin3_v3.14.1.exe inside the folder.
Samsung Android USB Driver for Windows
Samsung Android USB Driver | Samsung Developers
You need the driver only if you are developing on Windows and want to connect a Samsung Android device to your development environment over USB.
developer.samsung.com
Double-click and install the exe file.
Samsung Official Firmware
Release 1.0.3 · zacharee/SamloaderKotlin
Contribute to zacharee/SamloaderKotlin development by creating an account on GitHub.
github.com
Download the platform you want to download to. (Windows)
You need to extract the zip and double click open the file Bifrost.exe inside the folder.
You need to fill in the Model, Region, press the Check for Updates button and the Download button.
How to find the Model: on your phone → Settings → About Phone → The third row says the Model number and you need to remove the part with the part of /xx, for example, SM-A226B/DS and you only need to type SM-A226B
How to find the Region: You can check the Region at this link https://samfrew.com/model/SM-S908B/
You need to find find a three-letter word depending on your carrier and country and type it in Bifrost, for example, EVR
Press the Check for Update button and download it with the Download button.
Put it to a place you can easily find, ie. Desktop.
After downloading it, find the file SM-xxxxx_x_xxxxxxxx_xxx.zip.enc4 on the place you put it and change the document format from .enc4 to .zip. Then, double click and extract the file.
Open Odin3_v3.14.1.exe and turn off your phone. Connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrived at Download Mode press volume up. Go back to Odin3_v3.14.1.exe:
-Click on BL and select BL_xxxxxxxxxx.tar.md5
-Click on AP and select AP_xxxxxxxxxxx.tar.md5
-Click on CP and select CP_xxxxxxxxxx.tar.md5
(If you want to keep your data don't flash CSC).
-Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5
-Click on USERDATA and select HOME_CSC_OMC_xxxxxxxxxx.tar.md5
Press Start to flash the firmware, after done, your device will automatically reboot to the system.
How to unlock the bootloader?
Go to your phone → Settings → About Phone → Software information → Press Build number 6 times until you see the notice “You’re now a developer”
Go in Settings → Developer options → enable OEM unlocking
Power off your phone first. Then, connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone.
When you arrived at Download Mode, long press volume up until you see the black screen. Confirm to unlock the bootloader and you will erase your device.
How to root your phone?
After you unlock your bootloader, you set up your phone and make sure you do not sign in google account first. Install Magisk https://github.com/topjohnwu/Magisk/releases/download/v24.1/Magisk-v24.1.apk on your phone. Oh yes, in case you do not know, you need to allow the app to install apps so that you can install the apk.
Transfer AP_xxxxxxxxxx.tar.md5 in the firmware you download from your PC/Laptop to your phone.
Open Magisk on your phone and press the install button in the Magisk column. Select 'Select and Patch a File', 'Let's Go' and find the AP_xxxxxxxxxx.tar.md5 and select it. You can have a cup of coffee if you like when you waiting for the patching of the file.
After finishing the patching, you need to transfer the file magisk_patched-24xxx_xxxxx.tar in the Downloads folder back to your PC/Laptop.
Turn off your phone. Connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrived at Download Mode press volume up. Open Odin3_v3.14.1.exe on your PC/Laptop:
Click on BL and select BL_xxxxxxxxxx.tar.md5
-Click on AP and select magisk_patched-24xxx_xxxxx.tar
-Click on CP and select CP_xxxxxxxxxx.tar.md5
(If you want to keep your data don't flash CSC).
-Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5
-Click on USERDATA and select HOME_CSC_OMC_xxxxxxxxxx.tar.md5
When it finishes flashing it, it will automatically reboot and you can gain root access.
Optional: If you want to have the safety net passed (most of the banking apps use it), then you need to install the zip
as a Magisk module in Magisk https://github.com/kdrag0n/safetynet-fix/releases
How? Go to Magisk → Modules → install from storage and select the zip you downloaded.
Click to expand...
Click to collapse
Hi, Thanks for sharing this but unfortunately my camera is not working after doing all this. Please suggest what should i do
Praveenbha said:
Hi, Thanks for sharing this but unfortunately my camera is not working after doing all this. Please suggest what should i do
Click to expand...
Click to collapse
Have you tried Universal Safetynet fix? https://github.com/kdrag0n/safetynet-fix
I rooted the phone according to your guide
But after everything I can't connect to the internet
Youtube, system update doesn't work
MAGISK itself was able to update without any problem
Chrome will turn on pages, but without images and displays error about unsecured connection

How To Guide Rooting a Samsung device using Magisk and Odin. (2023)

NOTE : This guide can work for almost all modern Samsung devices and not just the S7 FE.
The device will be erased completely in order to install the root.
Risks of rooting :
1. You can brick your phone by doing this.
2. Can void your warranty. (I suggest rooting after warranty or if your device is a bit old.)
3. KNOX can be tripped and some security features won't be available. ( WILL DISABLE SECURE FOLDER )
4. Some apps such as banking apps and calling apps such as Zoom may not work after rooting.
Things you need :
1. A PC/Laptop.
2. The device you wish to root.
3. An original Samsung cable
Before starting you should :
- UNLOCK THE BOOTLOADER.
1. Remove all accounts from the device to ensure security features don't mess our root installation.
2. Turn on usb debugging. If you do not know how to do that, check here.
3. Download Samsung drivers to ensure the device is well connected.
4. This is a tedious process so i suggest charging your device until full.
1. Installing the firmware.
There is a forum for this. Click here.
If you want to use SamMobile to get the firmware : (you do need to sign up)
1. Go to Settings > About Device/Tablet > Software Info and note down the baseband version. This will be required for getting the firmware file.
2. While in Software Information, search for "service provider software version" and check the last 3 letters (Device Reigon). Example : XSA.
2. Extracting the MD5 File.
1. First you must download 7-zip to extract the md5 file. You may use other tools.
2. Then you must extract the files using 7-zip or the software you chose.
3. Next, extract only the files which start with a AP, BL, CSC and HOME. (This will take a while depending on the write speed of your storage.)\
4. Now transfer the AP file to your device. Make sure to put it downloads on your device for easy access.
3. Patching AP file with Magisk.
1. Now, download the Magisk manager apk.
2. Open the app and click install which is next to Magisk.
3. Click Select and Patch a File and select the AP file.
4. After patching, you should transfer the patched AP file (its usually renamed to Magisk Patched or something.) to the pc.
4. Flashing the patched AP file onto the device.
1. After the previous steps, make sure your device is in download mode and connected to your computer.
2. Now, download and open the latest version of Odin.
3. Go to Options and Disable Auto Reboot.
4. Click the AP button and choose the patched magisk file.
5. As we added the AP file, add the default. (BL, CSC and HOME)
6. Click Start.
5. Final steps
1. As soon as it finishes, exit out of download mode and immediately boot into recovery mode.
2. Use the volume buttons to go down to Wipe Data and Factory Reset.
3. Click the power button and confirm. After this, go back to reboot now and click the power button.
Once you finish the setup, go to the home drawer and check if the magisk app is there.
If not, shut down the device and turn it on again.

Categories

Resources