How To Guide [Magisk][US/CAN BL Unlock] Root for Galaxy S21 Series (B/N/0/U/U1/W)

Search This thread

passionicon

Senior Member
Jun 5, 2013
66
8
los angeles
Hi all, just want to ask a few questions and will appreciate all the responses i can get. I'm on G998u1.
I read that rooting trips knox, don't reallycare ,but does Samsung pay still work after rooting?

Also, will i be able to successfully install xposed framework after magisk root. It's literally the only reason i want to root because i use some xposed modules at work.

Finally, does this method still work? I'm on latest march 1 security patch +oneui 4.1


Thanks in anticipation
 

basem55

Member
Sep 21, 2017
14
3
Hi,
Is it normal that the Magisk Modules Not Showing Up ?
See attached images kindly,


I have Rooted by Recovery method ,
And I'm coming from old Samsung S7,
and the Magisk Modules were Showing Up.

My current system:
Samsung S21 SM-G998B/DS
Android 11
PDA : G998BXXU3AUHB
One Ui 3.1
Magisk v24.0
LSPosed 1.83
____________

Sorry for my bad English, and thanks in advance.
 

Attachments

  • Screenshot_20220428-102448_Shell.jpg
    Screenshot_20220428-102448_Shell.jpg
    220.2 KB · Views: 189
  • Screenshot_20220421-091917.jpg
    Screenshot_20220421-091917.jpg
    95.7 KB · Views: 184
  • Screenshot_20220420-041621_Settings.jpg
    Screenshot_20220420-041621_Settings.jpg
    371.3 KB · Views: 175
  • Screenshot_20220429-061421.jpg
    Screenshot_20220429-061421.jpg
    266.2 KB · Views: 190

ebowen 747

Senior Member
Jun 3, 2014
104
24
LG V30
LG V60 ThinQ
I have S21U g9980, unlocked bootloader. If I update firmware will I need to unlock again. On one UI 3.1 Android 11. Want to upgrade to 4.1 Android 12. Can I upgrade and retain bootloader unlock and root?
 

Valiante

Senior Member
Jul 7, 2013
512
120
I'm not sure if search on XDA is messed up or what. No mention of the S22 in the thread.

Can anyone verify if this works for the S22 as well?
 

JD_888

New member
Aug 12, 2022
1
0
I'm on Boost mobile network Galaxy S21 5g SM-G991U software ver. G991USQS5CVHC
running all the latest security patches & such

Is this method still valid & if so will it work for my model? I only want to root to be able to install/run apps that won't work properly without root access, & don't plan on making any extreme modifications beyond the initial root.
(P.s. Any links to threads or ways to find threads & people that I can talk to personally one on one with or anything like that would be greatly appreciated!)
 

afaneh92

Senior Member
Jul 31, 2012
3,920
5,241
I'm on Boost mobile network Galaxy S21 5g SM-G991U software ver. G991USQS5CVHC
running all the latest security patches & such

Is this method still valid & if so will it work for my model? I only want to root to be able to install/run apps that won't work properly without root access, & don't plan on making any extreme modifications beyond the initial root.
(P.s. Any links to threads or ways to find threads & people that I can talk to personally one on one with or anything like that would be greatly appreciated!)
You are on v5 bootloader, only v1 can be unlocked
 

WALEEDALMOALLEM

New member
Oct 21, 2022
3
0
Note: this guide copied from topjohnwu's. Original guide here

US/Canada bootloader unlock thread:
here


Before Installing Magisk
  • Installing Magisk WILL trip KNOX
  • Unlocking bootloader for the first time will do a data wipe.
Installation

If you already have Magisk installed, it is strongly recommended to upgrade directly via Magisk Manager using the “Direct Install” method. The following tutorial is only for initial installation.

Getting Started

Before you start:
  • This tutorial assumes you understand how to use adb and fastboot
  • If you plan to also install custom kernels, install it after Magisk
  • Your device’s bootloader has to be unlocked

Download and install the latest Magisk app. In the home screen, you should see:

device_info.png


The result of Ramdisk determines whether your device has ramdisk in the boot partition.

Unlocking Bootloader

Unlocking BL on modern Samsung devices have some caveats, so I figure this would be helpful.
  • 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 (Vol Down + Vol Up) while connected to usb.
  • Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.

If you think the bootloader is fully unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will still 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 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.

Patching Boot Image

If your device has boot ramdisk, you need a copy of the boot.img

Instructions
  • Use either Frija or Samloader to download the latest firmware zip of your device directly from Samsung servers.
  • Unzip the boot.img from AP and copy the file to your device.
  • Press the Install button in the Magisk card
  • Choose “Select and Patch a File” in method, and select the stock boot image
  • Magisk Manager will patch the image to [Internal Storage]/Download/magisk_patched.img.
  • Copy the patched image to your PC
  • Flash the patched boot image to your device.
    For most devices, reboot into fastboot mode and flash with command:
    fastboot flash boot /path/to/magisk_patched.img or
    Rename magisk_patched.img to boot.img and use 7zip to make flashable tar of your boot.img
    Reboot to download mode. Open Odin on your PC, and flash boot_patched.tar as AP.
  • Reboot and voila!

Patching AP

Instructions
  • Use either 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_[device_model_sw_ver].tar.md5
  • Press the Install button in the Magisk card
  • Choose “Select and Patch a File” in method, and select the AP tar file
  • Magisk Manager will patch the whole firmware file to [Internal Storage]/Download/magisk_patched.tar
  • Start the installation, and copy the patched tar file to your PC using ADB:
    adb pull /sdcard/Download/magisk_patched_[random_strings].tar
    DO NOT USE MTP as it is known to corrupt large files.
  • Reboot to download mode. Open Odin on your PC, and flash magisk_patched.tar as AP, together with BL, CP, and CSC (NOT HOME_CSC because we want to wipe data) from the original firmware.
  • Your device should reboot automatically once Odin finished flashing. Agree to do a factory reset if asked.
  • Install the Magisk app you’ve already downloaded and launch the app. It should show a dialog asking for additional setup.
  • Let the app do its job and automatically reboot the device. Voila!

Custom Recovery​

Installing using custom recoveries such as TWRP is only possible if your device has boot ramdisk.

Instructions
  • Download the Magisk APK
  • Rename the .apk file extension to .zip, for example: Magisk-v2*.*.apk → Magisk-v2*.*.zip. If you have trouble renaming the file extension (like on Windows), use a file manager on Android or the one included in TWRP to rename the file.
  • Flash the zip just like any other ordinary flashable zip.
  • Reboot and check whether the Magisk app is installed. If it isn’t installed automatically, manually install the APK.

Thanks
@topjohnwu for magisk and guide, If you appreciate his effort, show some love and support :)

Donations
https://www.patreon.com/topjohnwu
https://www.paypal.me/topjohnwu
Its work with my sm-G998B android 13 beta 3 OneUI 5

THanks pro
 

Attachments

  • Screenshot_٢٠٢٢١٠٢١_٠٧٤٦٣١_Settings.jpg
    Screenshot_٢٠٢٢١٠٢١_٠٧٤٦٣١_Settings.jpg
    303.2 KB · Views: 94

korsnick

Member
Jan 16, 2022
19
3
I have a Hong Kong SM-G9980 and by following the steps in post #85 of this thread, I was able to get the OEM Unlock option to show up in the menu. When I then tried to go into the bootloader screen:
bootloader-unlock-2021.jpg


instead of he long press to unlock it, i did a short press and then had to reboot to try again. However the OEM unlock was no longer in the Developer Options menu. I tried a Factory Reset and then went through the steps in post #85 but cannot get the OEM Unlock option to appear again. Any thoughts on what I can do at this point?

UPDATE:
I did another factory reset, went through the steps in post #85 again and this time was able to get the OEM Unlock toggle to show up- and it was already turned on. When I powered off the phone, connected the USB cable and held down the vol up and down buttons, I got a blue screen like the picture above, but there was no 'Device unlock mode' option. So still no joy...
 
Last edited:

afaneh92

Senior Member
Jul 31, 2012
3,920
5,241
I have a Hong Kong SM-G9980 and by following the steps in post #85 of this thread, I was able to get the OEM Unlock option to show up in the menu. When I then tried to go into the bootloader screen: View attachment 5759589

instead of he long press to unlock it, i did a short press and then had to reboot to try again. However the OEM unlock was no longer in the Developer Options menu. I tried a Factory Reset and then went through the steps in post #85 but cannot get the OEM Unlock option to appear again. Any thoughts on what I can do at this point?

UPDATE:
I did another factory reset, went through the steps in post #85 again and this time was able to get the OEM Unlock toggle to show up- and it was already turned on. When I powered off the phone, connected the USB cable and held down the vol up and down buttons, I got a blue screen like the picture above, but there was no 'Device unlock mode' option. So still no joy...
post download mode picture or at least kg status
 

korsnick

Member
Jan 16, 2022
19
3
Sounds like nobody has seen this before. Really sucks because I ordered this phone specifically so I could get root on it- something I couldn't do with my TMO model. Guess I'm just gonna have to put it up for sale then.
 

korsnick

Member
Jan 16, 2022
19
3
Well I was actually able to get the unlock option to show up by putting a SIM in the phone and going through all the steps once more. So yay!
 

Quayron

Senior Member
Nov 13, 2013
51
3
Samsung Galaxy S20
so last year there was certain versions wasnt able to unlock due to uiversion,, did we fix that is all s21u versions unlockable now or is there any list of available versions , can somrone give me hand very quick please
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    It is enabled thats literally 1st thing i did, not my first time unlocking one
    I was going by the photo you last posted. I didn't see dev mode there. You should see developer mode in 'About' and if your model has an unlocked bootloader, you would be able to choose OEM.... Mine doesn't either. I use G991U but I don't have the version 1 bootloader. Good luck 👍
  • 30
    Note: this guide copied from topjohnwu's. Original guide here

    US/Canada bootloader unlock thread:
    here


    Before Installing Magisk
    • Installing Magisk WILL trip KNOX
    • Unlocking bootloader for the first time will do a data wipe.
    Installation

    If you already have Magisk installed, it is strongly recommended to upgrade directly via Magisk Manager using the “Direct Install” method. The following tutorial is only for initial installation.

    Getting Started

    Before you start:
    • This tutorial assumes you understand how to use adb and fastboot
    • If you plan to also install custom kernels, install it after Magisk
    • Your device’s bootloader has to be unlocked

    Download and install the latest Magisk app. In the home screen, you should see:

    device_info.png


    The result of Ramdisk determines whether your device has ramdisk in the boot partition.

    Unlocking Bootloader

    Unlocking BL on modern Samsung devices have some caveats, so I figure this would be helpful.
    • 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 (Vol Down + Vol Up) while connected to usb.
    • Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.

    If you think the bootloader is fully unlocked, it is actually not! Samsung introduced VaultKeeper, meaning the bootloader will still 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 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.

    Patching Boot Image

    If your device has boot ramdisk, you need a copy of the boot.img

    Instructions
    • Use either Frija or Samloader to download the latest firmware zip of your device directly from Samsung servers.
    • Unzip the boot.img from AP and copy the file to your device.
    • Press the Install button in the Magisk card
    • Choose “Select and Patch a File” in method, and select the stock boot image
    • Magisk Manager will patch the image to [Internal Storage]/Download/magisk_patched.img.
    • Copy the patched image to your PC
    • Flash the patched boot image to your device.
      For most devices, reboot into fastboot mode and flash with command:
      fastboot flash boot /path/to/magisk_patched.img or
      Rename magisk_patched.img to boot.img and use 7zip to make flashable tar of your boot.img
      Reboot to download mode. Open Odin on your PC, and flash boot_patched.tar as AP.
    • Reboot and voila!

    Patching AP

    Instructions
    • Use either 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_[device_model_sw_ver].tar.md5
    • Press the Install button in the Magisk card
    • Choose “Select and Patch a File” in method, and select the AP tar file
    • Magisk Manager will patch the whole firmware file to [Internal Storage]/Download/magisk_patched.tar
    • Start the installation, and copy the patched tar file to your PC using ADB:
      adb pull /sdcard/Download/magisk_patched_[random_strings].tar
      DO NOT USE MTP as it is known to corrupt large files.
    • Reboot to download mode. Open Odin on your PC, and flash magisk_patched.tar as AP, together with BL, CP, and CSC (NOT HOME_CSC because we want to wipe data) from the original firmware.
    • Your device should reboot automatically once Odin finished flashing. Agree to do a factory reset if asked.
    • Install the Magisk app you’ve already downloaded and launch the app. It should show a dialog asking for additional setup.
    • Let the app do its job and automatically reboot the device. Voila!

    Custom Recovery​

    Installing using custom recoveries such as TWRP is only possible if your device has boot ramdisk.

    Instructions
    • Download the Magisk APK
    • Rename the .apk file extension to .zip, for example: Magisk-v2*.*.apk → Magisk-v2*.*.zip. If you have trouble renaming the file extension (like on Windows), use a file manager on Android or the one included in TWRP to rename the file.
    • Flash the zip just like any other ordinary flashable zip.
    • Reboot and check whether the Magisk app is installed. If it isn’t installed automatically, manually install the APK.

    Thanks
    @topjohnwu for magisk and guide, If you appreciate his effort, show some love and support :)

    Donations
    https://www.patreon.com/topjohnwu
    https://www.paypal.me/topjohnwu
    5
    The latest Magisk Canary release (21409) contains the fix needed for the S21 devices, yes (but being a Canary release there are of course other bugs).

    But, @afaneh92, since you're just copying @topjohnwu's installation instructions exactly, word for word, wouldn't it just have been easier to link to those instructions and let people know that Magisk Canary releases now can root the S21 Ultra (and maybe also warn people that the Canaries can be buggy)?
    4
    US/Canada devices has no oem unlock toggle!
    Unlock service here

    How to get OEM Unlock option back for Non US/Canada device?
    1. Open the Settings app. Tap on General Management → Date and time.
    2. Use the toggle button to disable Automatic date and time.
    3. Set date option will be enabled now. Tap on it, and set the date to about 10-20 days earlier.
    4. Enable developer options.
    4.a Go to your device Settings.
    4.b Select ‘About phone’ » tap seven times on ‘Build number’.
    └ This will enable Developer options under Settings.
    4.c Go back to Settings » scroll down to the bottom and you’ll see Developer options menu.
    5. Open developer options (in the Settings app itself), and find the option called ‘Auto update system‘. Use the toggle button to disable it.
    6. Now, go back to the main screen of Setting, and then tap on Software update.
    7. Disable the option ‘Download updates automatically‘.
    8. Tap on ‘Download updates manually‘ option, but it will give you an error because of the wrong date, so it’s fine.
    9. Restart the device.
    10. Go to Settings > Developer options. The OEM unlock option should be enabled now.
    3
    Thanks, but that doesn't apply to the S21 :coffee:
    Use latest magisk canary, I have rooted my S21 Ultra.
    3
    I assume this will trip Knox right?
    Read the very first bullet, lol