How To Guide Guide to root Galaxy S22 Ultra (B/E/N/0), unlock bootloader and flash official firmware (noob friendly)

Search This thread

willhub

Senior Member
Jul 18, 2011
248
5
Manchester/York
Is it possible to get work stuff that uses Knox to still work after routing? As I have a work profile that connected to my organisation and it needs to reliably work
 

niko666x

Senior Member
Sep 7, 2012
156
15
Hi, is this method still working? I am currently using the latest official update (Android 13). My device is a SM-S908E.
 

Milano_

Member
Nov 13, 2014
17
6
Just for the record, it seems this got solved by using Magisk Canary (Version 25.205) - apparently there has been an issue in stable Magisk with the Denylist that is solved in Canary..... I'm up and happily running with a rooted phone :)

I am already rooted and BL unlocked with HongKong version Android 12.

i want to upgrade to A13:
When Patching the AP with Canary (25.205), can i Dirty Flash or will i lose All my data and factory reset? i want to update to January 2023 version (S9080ZCU2BWAB)

anyone tried this?
 

bresk

Member
Oct 18, 2022
14
2
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.
Sorry for USA models, you can't root unless you can unlock your bootloader
You will lose ALL your data if you unlock your bootloader. Do back up your data.
I am not responsible for bricked devices, or dead SD cards although it is not 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 S22 Ultra 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


Double-click and install the exe file.

Optional: If you just want to change CSC, /efi/imei/mps_code.dat is where you can edit after rooting the phone
Replace the CSC you would like to be in the file

If you like to download the firmware of your carrier, follow the instructions bellow


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, and 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-S908B/DS and you only need to type SM-S908B

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, and keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrive 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

-Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5

Optional: add PIT file if you have to repartition.

Press Start to flash the firmware, after that is 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, press Vol Up + Down and then plug in the USB while keeping Vol Up+Down pressed.

When you arrive 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 ensure you do not sign in to your Google account first. Install Magisk https://github.com/topjohnwu/Magisk/releases/download/v24.1/Magisk-v24.1.apk on your phone. You need to allow the app to install other 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, 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, and keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrive 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

-Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5

Optional again: add PIT file if you have to repartition

When it finishes flashing, 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.


How to update the system without losing roots and data?

Download the new firmware of the phone and update the Magisk App if it is not up to date. Unzip the firmware you download and transfer the AP file to your phone. Patch your AP file and transfer it back to your PC (in /sdcard/Download)

Power off the phone and reboot to Download mode


Open Odin and put the new magisk_patched file in the AP slot, the BL and CP from your new firmware into their respective slots and importantly *HOME_CSC* into the CSC slot.

Press start and let Odin do its stuff.

When flashed, do not wipe.

Press and hold Vol-down and Power
As soon as the screen appears, let go of all buttons.

Within moments without any further user intervention your phone will reboot into your updated Magisk rooted mode, data intact.


Credits to:
Magisk and all the develpers
jult for informing me about the errors
so there is no way to unlock bootloader on usa models to neither s22 and s23 ultra?
 

bresk

Member
Oct 18, 2022
14
2
You dont need to unlock the BL for any privileges. Only thing it allows is flashing Unsigned Images.
i was able to go to twitter and tell that the t-mobile manager i was going to brazil and the conection there is very bad , so i asked to unlock the bootloader but this guys have no idea what they talking about he actually permanent unlock my network....lol....i can atach the entire chat and as well my phone ' more connections sections where you can ask to either unlock permanent or temporary,i played dumb and keep talking with him and asking how was possible to use data there if i cant use a local SIM CARD, so he keep saying yea yea we lease towers in many countrys but most of the time even if your phone is 5g you only be getting 2g....so he unlocked my network lol i can actually just basicaly leave tmobile and go to verizon for example and get a new phone on them since they hate T-Mobile...but im not leaving them i actually just looking to remove unwanted apps..lol...sure root would be a great bonus but i can leave with being able to just freeze some apps etc
 

[email protected]

New member
Sep 10, 2020
2
0
Best,

i rooted my s23 ultra s918B with magisk debug and it worked until magisk said must restart and then magisk was not rooted.
 

Attachments

  • Screenshot_20230321_172534.jpg
    Screenshot_20230321_172534.jpg
    277.6 KB · Views: 31

Alipk52

Senior Member
May 14, 2011
741
135
37
Karachi
OnePlus 5
Realme XT
Hi, is this method still working? I am currently using the latest official update (Android 13). My device is a SM-S908E.
Have you managed to unlock your SD's S22u bootloader with same OP method? I heard that Android 13 can't be unlocked with this method, i am willing to unlock next week, but mixed process across internet confusing me, specially with KG state etc which is new to me. I have OEM menu available in developer options though.
 
  • Like
Reactions: niko666x

niko666x

Senior Member
Sep 7, 2012
156
15
Have you managed to unlock your SD's S22u bootloader with same OP method? I heard that Android 13 can't be unlocked with this method, i am willing to unlock next week, but mixed process across internet confusing me, specially with KG state etc which is new to me. I have OEM menu available in developer options though.
I have not tried. I just couldn't find a reason to do it.
 

senbon-sakura

New member
Apr 16, 2023
2
1
Hello there!

I can't download my firmware through BiFrost. So I tryed to find it on the web but can't find anything... So I'm posting here. My S22 Ultra Region is WWA, which is Hungary region. Can I use an alternative firmware if I'm not able to find it ? It's a demo version, it doesn't seem able to connect to mobile network. I mostly use it to take pictures or playing videogames.

Samsung Galaxy S22 Ultra // SM-S908B // Region: WWA

Edit: Solved.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Sorry to bother you again but can s21ultra SM-G998U be rooted. I'm about to purchase one in few hours.
    You will have to ask that question on the S21 forums.
  • 38
    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.
    Sorry for USA models, you can't root unless you can unlock your bootloader
    You will lose ALL your data if you unlock your bootloader. Do back up your data.
    I am not responsible for bricked devices, or dead SD cards although it is not 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 S22 Ultra 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


    Double-click and install the exe file.

    Optional: If you just want to change CSC, /efi/imei/mps_code.dat is where you can edit after rooting the phone
    Replace the CSC you would like to be in the file

    If you like to download the firmware of your carrier, follow the instructions bellow


    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, and 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-S908B/DS and you only need to type SM-S908B

    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, and keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrive 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

    -Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5

    Optional: add PIT file if you have to repartition.

    Press Start to flash the firmware, after that is 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, press Vol Up + Down and then plug in the USB while keeping Vol Up+Down pressed.

    When you arrive 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 ensure you do not sign in to your Google account first. Install Magisk https://github.com/topjohnwu/Magisk/releases/download/v24.1/Magisk-v24.1.apk on your phone. You need to allow the app to install other 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, 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, and keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone. When you arrive 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

    -Click on CSC and select CSC_OMC_xxxxxxxxxx.tar.md5

    Optional again: add PIT file if you have to repartition

    When it finishes flashing, 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.


    How to update the system without losing roots and data?

    Download the new firmware of the phone and update the Magisk App if it is not up to date. Unzip the firmware you download and transfer the AP file to your phone. Patch your AP file and transfer it back to your PC (in /sdcard/Download)

    Power off the phone and reboot to Download mode


    Open Odin and put the new magisk_patched file in the AP slot, the BL and CP from your new firmware into their respective slots and importantly *HOME_CSC* into the CSC slot.

    Press start and let Odin do its stuff.

    When flashed, do not wipe.

    Press and hold Vol-down and Power
    As soon as the screen appears, let go of all buttons.

    Within moments without any further user intervention your phone will reboot into your updated Magisk rooted mode, data intact.


    Credits to:
    Magisk and all the develpers
    jult for informing me about the errors
    4
    It gives me an error when I try to check for updates. It's the EUX version.
    I think you may need to download the file at this link, although it will be slower. Usually, the app always works. Sorry
    4
    Thanks for the guide, @Williamtung .

    However I feel the strong urge to share a much more convenient change on one step of the procedure, which I keep reading over and over, that can be done in a better way:

    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.

    Manipulating (copying back and forth, Magisk processing it, etc.) not only takes a huge amount of time, but it's also risky to any data transfer failures.

    You can do it in a simpler way, ultra-fast and risk-free (end result is the same)

    1 - Open AP_xxxxxxxxxx.tar.md5 with 7zip (as a .tar file), look for the boot.img.lz4 file, and extract it to the same folder
    2. Compress that boot.img.lz4 file into a TAR file (use 7zip as well). Name the resulting file whatever-you-want.tar
    3. Copy whatever-you-want.tar to your phone
    4. 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 whatever-you-want.tar and select it. You don't need the coffee, it will be completed first.
    5. After finishing the patching, you need to transfer the file magisk_patched-24xxx_xxxxx.tar in the Downloads folder back to your PC/Laptop. This TAR file is tiny (because it contains the patched boot.bin file only), but you can flash it with ODIN in exactly the same way as the full one.
    Odin actually scans the input TAR files and flashes each file inside that it recognizes, to the right partition according to the file name (boot.bin > boot partition). It even handles files that are LZ4 compressed (look for those ending on .lz4)

    If you liked the improvement, feel free to include it on your OP @Williamtung, better yet, spread the word! :-D
    3
    Thanks, still waiting for s22u and firmware(BRI/sm-s9080).
    Edit: The firmware has come up.
    3
    After an intial bootloop the recovery recommended a factory reset. After doing that it worked like a charm.

    Root works as expected (tested blocking internet access for play store with afwall+)
    All cameras work fine with the stock app, including saving pictures to the disk, zooming/camera switch and night mode

    Thanks again!