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

Search This thread

rafal.polska.b

Senior Member
Mar 22, 2015
252
64
Gdynia
UPDATE - I tried to update to latest update available which is September patch tried first with magisked AP to gain root with no luck (bootloop) again.
....tries again with original AP and it's good to go no problems at all.
I'm starting to think that the problem is from magisk or its necessary to wipe everything

any help is appreciated, knowing that the bootloader is unlocked and been rooted before just need to regain root access without losing data.
Few posts above I have listed my steps for flashing new firmware on my S22 Ultra hoping someone confirm if it should work allowing me to preserve my data.
Unfortunately no one responded and I followed these steps getting a bootloop. Finally I had to wipe data within stock recovery.
Then i have opened a discussion on Telegram and got this procedure that should work if you don't want to loose data:

Extract vbmeta.img from patched by Magisk AP tar file
Extract recovery.img from TWRP tar file
Create new tar TWRPWithVBMETAPatched.tar from both extracted files vbmeta.img and recovery.img
In ODIN put:
AP stock file into AP slot,
BL stock file into BL slot,
CP stock file into CP slot,
HOME_CSC into CSC slot,
TWRPWithVBMETAPatched.tar file into USERDATA slot.
UNSELECT "Auto reboot" in ODINS' Options tab and start flashing.
When completed reboot into TWRP recovery (Power + Volume Up buttons with phone plugged to PC)
In TWRP run multidisabler in Terminal (if needed twice until Finished is displayed)

The most important step is to reboot into TWRP once the flashing is completed. If you boot into system then you have bootloop.
 

cass89

Senior Member
Jan 17, 2013
54
11
Samsung Galaxy S22 Ultra
which region do i select if i have s908e for use in usa? the 908e doesn't have a usa region listed..
Or is there a way to extract what's on the phone
Or at least check what region the phone currently has.. idk how to check that
 
Last edited:

.unique.

Member
Jul 23, 2013
12
0
Few posts above I have listed my steps for flashing new firmware on my S22 Ultra hoping someone confirm if it should work allowing me to preserve my data.
Unfortunately no one responded and I followed these steps getting a bootloop. Finally I had to wipe data within stock recovery.
Then i have opened a discussion on Telegram and got this procedure that should work if you don't want to loose data:

Extract vbmeta.img from patched by Magisk AP tar file
Extract recovery.img from TWRP tar file
Create new tar TWRPWithVBMETAPatched.tar from both extracted files vbmeta.img and recovery.img
In ODIN put:
AP stock file into AP slot,
BL stock file into BL slot,
CP stock file into CP slot,
HOME_CSC into CSC slot,
TWRPWithVBMETAPatched.tar file into USERDATA slot.
UNSELECT "Auto reboot" in ODINS' Options tab and start flashing.
When completed reboot into TWRP recovery (Power + Volume Up buttons with phone plugged to PC)
In TWRP run multidisabler in Terminal (if needed twice until Finished is displayed)

The most important step is to reboot into TWRP once the flashing is completed. If you boot into system then you have bootloop.
Thanks , for reply :love: >>> need confirmation on this method (working or not)

also willing to find a way without changing the original kernel
 

eyalsa

Senior Member
Aug 21, 2017
104
16
Last edited:

debban

Member
Sep 7, 2022
7
0
I bought an unlocked VW phone from US in a business trip , paid off and came to home country . VZW said wait for few days and it will get unlock , Trusting a MNC , i came back and now it is showing error
"sorry your device can't be activated on another carrier " Contact Verizon .. When i insert SIM .
I contacted verizon , samsung , no help , i cannot go back US and hate to trash a $1200 phone
I spend sometime browsing xda and hit this

Carrier/SIM Unlock - Galaxy S21 Ultra 5G SM-G998U & U1 (QualComm SnapDragon) USA/CANADA! - NO ROOT- FREE


Downloaded Frija , Flashed AIO CSC for U1 , (Somehow XAA always gives me error ) , wiped cache , factory reset still when insert sim shows me error.
Basic question:
1) Does this error means it is network locked ? When i go to Download mode it still shows Carrier VZW ? Where is it come from bootloader ?
2) If i root the phone (i dont care warranty)will it get rid of this ?any pointer will be big help

i could not activate the sim with verizon and since i bought it as aftermarket .

Will rot the phone solve the carrier lock ?
 

cass89

Senior Member
Jan 17, 2013
54
11
Samsung Galaxy S22 Ultra
Can anyone verify if i can flash any region as long as it matches the model? So any s908e region can be flashed to any s908e phone?

Trying to root, I think i got everything else covered, just want to make sure because my phone currently works but it doesnt have a region download for my area.. wanna try to avoid bricks lol


Got root, thanks for the guide
 
Last edited:
  • Like
Reactions: a63548

samftw24

Member
Mar 20, 2021
16
5
So I was having issue trying to update from August S908BXXU2AVG6 to the current latest firmware while keeping root, I tried the method back on post #426 but that didn't work and kept giving me bootloop, after a bit of trial and error I found that if the bootloop starts and your phone automatically goes into recovery, from there you can wipe to factory > re-do phone introduction and install magisk and it will keep root.

Not ideal as you lose all data so I will attempt post #441 next time I try to update...
 

.unique.

Member
Jul 23, 2013
12
0
#426
Found nothing special in the mentioned post most of it says dirty flash works but it doesn't. Always boot-loop. #441 is the last hope , waiting for confirmation.
 

samftw24

Member
Mar 20, 2021
16
5
Found nothing special in the mentioned post most of it says dirty flash works but it doesn't. Always boot-loop. #441 is the last hope , waiting for confirmation.
Yeah the dirty flash originally worked for me to get to August update but nothing after that works without boot loop.
Next update I'll try will be once Android 13 is out
 
Aug 28, 2019
29
8
Hello. I have a problem. There is no OEM unlock option on my phone. Can it be turned on somehow?
Samsung Galaxy S22 Ultra Exynos Enterprise Edition.
 

sanoayyk

Senior Member
Feb 11, 2019
119
29
I successfully upodated to AVI7 from the former one keeping root.
My data partition is encrypted from the beginning. No TWRP.

What I did is just disabling magisk modules except boot loop portector.
Just putting magisk-patched tar into AP.
 
  • Like
Reactions: samftw24

LarryCox

New member
Oct 15, 2022
2
0
You won't probably brick your smartphone because both of them are similar after I've looked at them. Therefore, I believe flashing is okay.
 

ThomasGrace

New member
Oct 27, 2022
1
0
You won't probably brick your smartphone because both of them are similar after I've looked at them. Therefore, I believe flashing is okay.
 

s3axel

Senior Member
Mar 4, 2013
705
451
Google Pixel 7 Pro
I recently also have bootloop issues. I'm on S9080 (Snapdragon) with AVI1 firmware, which was successfully rooted. As I had some issues with battery life I tried a "full fresh" approach, reflashing the firmware via Odin and using a 25.2-Magisk-patched AP image. I have never used TWRP or the multidisabler in the past as I didn't have to, rooting the "non-TWRP" way has worked just fine and I was expecting it to work the same now.

Interestingly enough the phone boots just fine, I can setup Magisk and still everything works fine. However, once I add Magisk modules (the built-in "Systemless hosts" is enough) the phone shows a bootloop upon restart. This bootloop cannot stopped by safe-booting (which should disable all Magisk modules), only reflashing the original AP gets back the device.

Any ideas what may be causing this? I alread tried repatching the AP image.
 

face103

Member
Jan 8, 2008
18
0
Hi i have also purchased this same device fake china Samsung s22+ ultra, i checked the device with benchmark and it was showing as Alps, then also discovered that it is an MTK 6580 DEVICE. I thought of an idea to flash the device with the original Samsung rom but somehow i have bricked it and won't turn on anymore and i cant find the right rom for it as the name of the device is not showing up with a rom when I do a search online. although it does show up with a scatter file. can anyone help with this?
 

nicoco19

Member
Jan 20, 2019
23
4
Hi there ,
I currently have a Samsung Galaxy S22 Ultra, European model with Exynos, my phone is running an Android 12 rom and it is rooted.
I would like to upgrade to Android 13, but the question I have is whether there is already a method to root the phone under this new Android 13 rom or do I have to be patient ;-)?
Thanks in advance for your help and feedback everyone.
 

BajaBlast4Life

Senior Member
Jul 23, 2016
118
30
Hi there ,
I currently have a Samsung Galaxy S22 Ultra, European model with Exynos, my phone is running an Android 12 rom and it is rooted.
I would like to upgrade to Android 13, but the question I have is whether there is already a method to root the phone under this new Android 13 rom or do I have to be patient ;-)?
Thanks in advance for your help and feedback everyone.
It's the same instructions if you do it without TWRP.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    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!