[Guide] Root and install PBRP - Samsung Galaxy A7 (2018) Guides, News, & Discussio

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.

Related

[Stock ROM][Combination][RMM state solution][GUIDE AIO] and many more for M30s

What's currently included in this thread :-
TWRP (With/without magisk)
Installing EdXposed
Root with magisk (not recommended due to bootloops, use twrp with magisk)
RMM state Prenormal solution
Stock and combination firmware and Kernal source Gdrive links
Tools for flashing and downloading latest firmware
Post 2
Hide bootloader unlocked warning message
DeGoogle & debloat M30s and install MicroG
Enable Haptic feedback on m30s (or any other samsung phone)
BACKUP YOUR EFS PARTITION BEFORE DOING ANYTHING​If EFSpartition is corrupted or lost, you would not be able to get calls and wifi and your IMEI will be permanently lost.
There is currently no way of restoring corrupted EFS partition since it is device specific, so flashing stock firmware will also be useless
Here is one guide. follow this or any other that works for you.
Here is another (droid view.com/restore-efs-imei-galaxy-s7/)
OR You can Backup all partitions using twrp (nandroid backup) and store in someplace safe (make sure to tick all partitions including EFS)
This is an excellent guide regarding EFS (thanks to @PlayingPoise). I HIGHLY RECOMMEND READING IT BEFORE PROCEEDING.
TWRP (With/without magisk) (huge thanks to @santhoosh)
Thread
there are two .tar files, flash the one you need
Pro Tip: I would recommend Smalipatcher module to reboot directly into magisk system.
Installing EdXposed
See This for installation video OR This Or This for installation guide.
This, for official website
And This for github!
NOTE: v0.4.6.0_beta from github requires custom magisk otherwise the system wont boot since github hosts alpha versions, so i advice to follow the video tutorial since it has installed the most stable EdXposed
Rooting with Magisk (Currently causing random bootloops since custom Kernal is req., i recommend flashing twrp with magisk)
From magisk official repo and This Link, Both are same, but i just wanted to make AIO thread)
thanks to @santhoosh and @topjohnwu
Unlocking Bootloader
Normally I wouldn’t provide instructions for this, but since things had changed drastically from previous Samsung devices, and there are some caveats, I figure this would be helpful.
* Allow bootloader unlocking in Developer options → OEM unlocking
* Reboot your device to download mode. Either use adb reboot download, or use turn off m30s, press vol+ and vol- simultaneously (while powered off) and connect to pc.
* Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.
Just when you think the bootloader is unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will reject any unofficial partitions before VaultKeeper explicitly allows it.
* Go through the initial setup. Skip through all the steps since data will be wiped again later when we are installing Magisk. Connect the device to internet in the setup!
* Enable developer options, and confirm that the OEM unlocking option exists and grayed out! The VaultKeeper service will unleash the bootloader after it confirms that the user has the OEM unlocking option enabled.
* if there is no OEM unlock option, set phone's date to 7+ days and back and now see.
* Your bootloader now accepts unofficial images in download mode.
Instructions
* Download the firmware for your device.
* Unzip the firmware and copy the AP tar file to your device. It is normally named as AP_[device_model_sw_ver].tar.md5
* Install the latest Magisk Manager
* In Magisk Manager: Install → Install → Select and Patch a File and select the AP tar file.
* Magisk Manager will patch the whole firmware file and store the output to [Internal Storage]/Download/magisk_patched.tar
* Copy the patched file to your PC with adb pull /sdcard/Download/magisk_patched.tar. Do not use MTP as it is reported to corrupt files.
* Reboot to download mode, and flash magisk_patched.tar as AP in Odin, together with the BL, CP and HOME_CSC files. Never flash only an AP file, as Odin can shrink your /data file-system if you do.
Important: Uncheck “Auto Reboot” in Options!
* Magisk is now successfully flashed to your device! But there are still several steps before you can properly use the device.
* We now want to boot into the stock recovery to factory reset our device.
* Full data wipe is mandatory! Do not skip this step.
* Press Power + Volume Down to exit download mode. As soon as the screen turns off, immediately press the Vol up and power to boot to recovery . Since we want to boot into stock recovery, continue pressing the volume up button until you see the stock recovery screen.
* Use volume buttons to navigate through the stock recovery menu, and the power button to select an option. Choose Wipe data/factory reset to wipe the data of the device.
* This time, we can finally boot to the system with Magisk. Select Reboot system now, and immediately press the combo key to recovery. After seeing the bootloader warning screen, release all buttons so it can boot to the system.
* The device will automatically reboot for the first time it boots. This is completely normal and done by design.
* After the device is booted up, do the usual initial setup. The following steps will need an internet connection.
* You shall see Magisk Manager in your app drawer; if not, manually install the APK you downloaded in step 3 and continue to the next step. The app would be a stub and it shall automatically upgrade to the full Magisk Manager when you open it.
* Magisk Manager will ask to do additional setups. Let it do its job and the app will automatically reboot your device.
Voila! Enjoy Magisk
Additional Info
* Magisk actually patches 3 partitions on your device:
vbmeta: replace with empty vbmeta image to disable partition verification
boot: remove the signature of the image to prevent soft bricks
recovery: this is where Magisk is actually installed
* Never, ever try to restore either of the 3 images mentioned back to stock! You can easily brick your device by doing so, and the only way out is to do full Odin restore following with factory reset. Just don’t do it.
* If you want to upgrade your device, never flash the stock AP tar file with the reasons mentioned above. Always pre-patch the firmware before flashing in Odin.
* If you don’t need to patch the full firmware, you can manually create a tar file with at least vbmeta.img, boot.img, and recovery.img to let Magisk Manager patch your images in the proper way.
Due to the fact that some devices no longer uses ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to boot to recovery every time if you want Magisk. Since both Magisk and recovery lives in the same partition, what you actually end up getting when you choose to boot to recovery will be determined by how long you press volume up.
1. Powering up normally → System without Magisk
2. Power + Volume Up → Bootloader warning → Release all buttons → System with Magisk
3. Power + Volume Up → Bootloader warning → Keep holding volume up → Actual recovery
I would recommend Smalipatcher module to reboot directly into magisk system.
Updates: For each and every updates, either magisk or system update always patch the firmware with magisk and flash using odin(data will not be wiped if HOME_CSC
used instead of CSC)
RMM state Prenormal solution
Flash stock firmware
Boot up WITH sim inserted, CONNECT to internet during setup (or you can connect after setting up, but perform below operations only when connected to internet).
Enable developer options and go to them.
Now connect to internet and go to dev options, now set date 8 days back and check dev options for OEM unlocking
if it's still not there set date to today and again 8 days back and again check.
This worked for me and OEM unlocking was there and RMM state was changed to checking.
(what we are doing is fooling phone to believe that sim was inserted for more than 7 days)
Stock and combination firmware and Kernal source
Below are Gdrive links for Combination firmware for (M307FXXU1ASH9) and (M307FXXU2ASK2) and ROM M307FXXU1ASHI, M307FXXU2ASL2, M307FXXS2ATB3 (FOR INS ONLY, for other regions, use frija or samfirm).
I have also uploaded Kernal source for M307FXXU2ASL2 on gdrive for faster download.
Tools included
The following tools are also included in the shared folder, they are up to date as of FEB 2020, but i have attached links to original threads of xda to give credits and in case they are updated, you can download them from there. (As i said, this is AIO thread to find tools, none of them are my creation)
Frija, Samfirm continued and Samfirm are Tools for downloading Official firmware from samsung servers with high speed (so no to sammobile and other ****ty premium websites)
Frija thanks to @invmini, Github
SamFirm thanks to @zxz0O0, Github
SamFirm_continued, Github
Odin
Patched Odin by @realbbb
Frija not working ? install both vcredist_x00 for your device !
(check your windows settings to know which version to install)
(Microsoft Visual C++ 2010 Redistributable Package) and (Microsoft Visual C++ 2008 Redistributable Package)
https://www.microsoft.com/en-US/download/details.aspx?id=29 (x86) 2008
https://www.microsoft.com/en-US/download/details.aspx?id=5555 (x86) 2010
https://www.microsoft.com/en-US/download/details.aspx?id=15336 (64bit) 2008
https://www.microsoft.com/en-US/download/details.aspx?id=14632 (64bit) 2010
-Open Frija and type in your model (mine is SM-m307f) and your CSC : (mine is INS).
(All models on samfrew: https://samfrew.com/model/SM-M307F/).
Thanks to @BK
Other Tools
PIT Magic v1.3.10 - Samsung PIT Creator, Editor, Analyzer
Samsung firmware naming convention and explanation (Outdated)
SM-M307F - Galaxy M30s Samfrew
Extract Samsung PIT File from Samsung Firmware -> www.droid views.com/extract-samsung-pit-file-from-firmware (remove space b/w "droid" and "views")
NAND Erase Samsung Devices in Odin -> www.droid views.com/nand-erase-odin-samsung-firmware (remove space b/w "droid" and "views")
Latest Odin Downloader: https://odindownloader.com/category/download
Samsung USB Driver: https://samsungusbdriver.com/category/download
Samsung Firmware: https://firmwarefile.com/category/samsung
Links​LINK (Pm me if link is dead. If there is error like "try after some time", make a copy of file to your drive and then download)
Hide bootloader unlocked warning message
See Here
DeGoogle & debloat M30s and install MicroG
Here
Enable Haptic feedback on m30s (or any other samsung phone) (thanks to ak****)
1- download "Settings database Editor" from playstore.
2- scroll to bottom and find "haptic_feedback_enabled" and change it to 1
Just in case
great, im planning to buy this device and sell my a70, wouldn't have though a little bit of my thread would have been used there also combination files cannot be flashed anymore until a fix is found (nope Z3X Samsung tool don't work )
BK said:
great, im planning to buy this device and sell my a70, wouldn't have though a little bit of my thread would have been used there also combination files cannot be flashed anymore until a fix is found (nope Z3X Samsung tool don't work )
Click to expand...
Click to collapse
Are you talking about the frija and samfirm part?
I think i took it from some other thread which i cant find now. (maybe s10 or note10 ones)
Edit: Gave credits to you
How to flash Combination firmware?
I am trying to flash combination firmware [COMBINATION_FAC_FA90_M307FXXU1ASH9_FAC_CL16672589_QB25543275_REV00] with Odin v3.13.3B Patched but it doesn't work, giving this error on the phone
"Please get the approval to use factory binaries (PIT)"
Anyone know any way to make it work? It would be really nice to be able to downgrade to U1 binaries.
nobody_nowhere said:
I am trying to flash combination firmware [COMBINATION_FAC_FA90_M307FXXU1ASH9_FAC_CL16672589_QB25543275_REV00] with Odin v3.13.3B Patched but it doesn't work, giving this error on the phone
"Please get the approval to use factory binaries (PIT)"
Anyone know any way to make it work? It would be really nice to be able to downgrade to U1 binaries.
Click to expand...
Click to collapse
it's currently impossible to install a test/debugging firmware without a samsung dev account that work as an authorization to flash combination files.
Sm-m307f/ds
Hi i got OTG update and my phone didnt restart after that, i have been trying to find the right Stock firmware for my Samsung M30S SM-m307F/DS but i couldnt find the right one, can you please help me out with the link of the right firmware for my phone.
Thanks
Watch this video broo...you will get to know how to download all latest updated frimware

[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] How to root Galaxy A7 2018

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?

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