yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S21 Ultra] FreeRunner2017:
Your welcome, any issues feel free to PM me 😁
[Samsung Galaxy S21 Ultra] Burt Squirtz:
I wish there was a very easy way to patch AP to keep TWRP after a dirty flash manual upgrade.
[Samsung Galaxy S21 Ultra] dr.ketan:
1.Easiest option - Go with custom ROM (If available)

2.Second easy, modify AP and patch it.

Extract all the contents of AP file - delete recoevry and vbmeta images - Repack as tar (You can use 7zip or similar) - Patch it with magisk

After flashing, straightway go to TWRP - and apply multidisabler before booting device.
[Samsung Galaxy S21 Ultra] JazonX:
This would clear the User data / Accounts also, yeah ?

@afaneh92 _ Bro, I think the existing TWRP doesnt mount Data on the Newest March Security Patch.

I had no issues with the February Firmware.

Could you have a look ?
[Samsung Galaxy S21 Ultra] dr.ketan:
You asked for dirty flash trick right? If erasing data and acc then it's not dirty flash.

I don't have any issue on March secure patch
[Samsung Galaxy S21 Ultra] JazonX:
What could be causing this issue?

Did a full stock flash as well, and repeated the TWRP process.
[Samsung Galaxy S21 Ultra] afaneh92:
Run multidisabler script in twrp terminal 🙃
[Samsung Galaxy S21 Ultra] zidane02:
Hello guys, a super great rom finally arrived on S21 Ultra. We will be needing this awesome TWRP. I just wanted to ask if this will work on AUBB firmware? Thanks in advance.
[Samsung Galaxy S21 Ultra] babyboy3265:
Can someone please share a link to a "safe" odin download?

I have some old versions that I have been using on my S9.

I googled for the latest version of ODIN but it seems there are plenty of fake pages and I would prefer to download a legitimate version that would work correctly with the s21.

Thank you in advance.
[Samsung Galaxy S21 Ultra] bartos38:
Someone has a logo fix to, unlock the s21 ultra bootloader
[Samsung Galaxy S21 Ultra] afaneh92:
Yes

Patched Odin 3.13.1

For those looking for a modified, modded, or patched odin that is a newer build than all the fake and renamed prince comsy 3.12.3 versions floating around. I patch recent Odin versions to offer similar functionality to the princecomsy; in that...

xdaforums.com

Yes search for it
[Samsung Galaxy S21 Ultra] bartos38:
@afaneh92 you will give direction where to look, I can't find anywhere, thank you
[Samsung Galaxy S21 Ultra] babyboy3265:
@afaneh92 Mohammad thank you brother for your TWRP and instructions! God bless you!!!
[Samsung Galaxy S21 Ultra] vegetaleb:
Hello

Last time I had a samsung it was the exynos s10+, to keep root (magisk) while rebooting we had to keep pressing volume down (I think) , is still the case with the s21u?
[Samsung Galaxy S21 Ultra] Srbija2012:
Ive just ordered the S21 Ultra.

The process to root the S21 seems very easy compared to some hoops etc you need to jump through for some other Samsung devices...

@dr.ketan looking forward to migrating over to your rom on my new phone when it arrives...
[Samsung Galaxy S21 Ultra] Srbija2012:
Ive gone into Dev mode and enabled OEM unlock, put in my pin etc... Yes when trying to flash TWRP etc, it fails as the bootloader is locked... What am i missing?
[Samsung Galaxy S21 Ultra] afaneh92:
Reboot to download mode and hold vol up to unlock bootloader.
[Samsung Galaxy S21 Ultra] vegetaleb:
Excuse my noob question but what triggers Knox? Flashing TWRP or Magisk, or unlocking bootloader?

I thought systemless root doesn't trigger knox
[Samsung Galaxy S21 Ultra] Srbija2012:
Ive done this, nothing happens, just sits on the downoad screen.
[Samsung Galaxy S21 Ultra] Srbija2012:
EDIT - sorted.
[Samsung Galaxy S21 Ultra] manojl76:
Hi I installed beyond rom everything fine but when I open folders like documents download music with file inside the file doesn't show but the files are there in storage occupied
[Samsung Galaxy S21 Ultra] afaneh92:
Unlocking bootloader is ok, but flashing first custom file will trigger it forever.
[Samsung Galaxy S21 Ultra] afaneh92:
Hi, is this twrp issue?
[Samsung Galaxy S21 Ultra] vegetaleb:
Do you still need a USB cable 2.0 to work with Odin?

The one that comes bundled with the S21U is not compatible?
[Samsung Galaxy S21 Ultra] babyboy3265:
It works with a USB C to USB C cable. As long as your phone is visible in Odin you are good to go.
[Samsung Galaxy S21 Ultra] rajc7:
Hi. I'm quite new to TWRP. It's been a while since this was developed. Is there a way to enable encryption now?
[Samsung Galaxy S21 Ultra] bartos38:
May Security patch May cannot be uploaded TWRP

custom binary (recovery)blocked due to remaining instal in ent balance
[Samsung Galaxy S21 Ultra] afaneh92:
No you cant.
[Samsung Galaxy S21 Ultra] afaneh92:
Pay off your device. Its mdm locked.
[Samsung Galaxy S21 Ultra] bartos38:
The device is paid, I have unlocked the bootloader, I wanted to upload Dr. Ketan 03 rom and it happened before I had 01 and 02 how could it happen
[Samsung Galaxy S21 Ultra] TrevorAshley:
Hi! Will this also work on the SM-G998B/DS? It is the Dual Sim version S21 Ultra 5G
[Samsung Galaxy S21 Ultra] -uniQ-:
I have the same issue as this person - I rooted my device and after a day when I restarted it would not boot up and gave me this message.

Now I cannot install custom FW or root using the patched AP as KG State shows active.

I cannot even see OEM unlock option in the developer options and I have tried the time change trick.

I think we have to wait for 7 days with device online and it will then allow us to root/ flash again.

Correct me if i am wrong.

FYI: https://xdaforums.com/t/guide-17-06...ll-twrp-on-exynos-samsung-after-2018.3747535/
[Samsung Galaxy S21 Ultra] FreeRunner2017:
I know I shouldnt be asking, thanks for your hard work btw, will the recovery ever be updated?
[Samsung Galaxy S21 Ultra] babyboy3265:
Dear great developer afaneh92,

Would you be kind enough to consider porting this recovery for the exynos?

https://xdaforums.com/t/shrp-unofficial-shrp-v3-1-3-custom-recovery-p3q-snapdragon.4278231/
[Samsung Galaxy S21 Ultra] afaneh92:
Yes

I don't have enough time to build other recoveries.
[Samsung Galaxy S21 Ultra] orkavaneger:
****ing legend. I bought my S21 Ultra 2 days ago and rooted just a few hours later. Was easy as hell and all seems stable so far. Thank you for taking your time to make this possible and develop it.
[Samsung Galaxy S21 Ultra] lyzgaard:
Should I downgrade from May update, before rooting and installing this twrp?

Right now im on unrooted May update, and im wondering if I will get the 7 days lockout if doing this on newest firmware?
[Samsung Galaxy S21 Ultra] afaneh92:
I think its ok no need to downgrade
[Samsung Galaxy S21 Ultra] timofonic:
Hello.

I have OEM Unlocked. But Odin can't flash both twrp and vbmeta stuff as you described. Download mode complains about OEM Locker...

My phone is a G998B, Dual SIM.

I can't locate the Bootloader Unlock Screen as shown there...

Can anyone help me? Please, I'm messed with key combinations.
[Samsung Galaxy S21 Ultra] afaneh92:
Post screen with download mode, to reboot into download mode reboot and press both vol buttons while usb connected.
[Samsung Galaxy S21 Ultra] Xaro2491:
Deleted
[Samsung Galaxy S21 Ultra] timofonic:
When going to the bootloader from the recovery menu...

When doing what you said, it shows what I wanted to:

SM-G998G is tricky or I'm not used to this stuff and info in Internet was quite inaccurate for me, at least I understood it wrong. To finally unlock the bootloader, reboot and press both vol + and vol -.

If going to bootloader from recovery mode, it doesn't show this...

Thanks a lot! You're my hero!

Would you please explain this procedure a bit better in the first post of the forum thread so dummies like me are able to understand it better? Please...

EDIT: Things were bad! I did it, but keeps saying OEM is Locked...

What's wrong?

EDIT2: I finally was wrong, I didn't press long enough...

I finally was able to unlock it. Excuse me, I was tired...

What todo next? TWRP is installed, finaly. I cannot patch AP, because my phone doesn't boot anymore.

Can I put Dr.Ketan rom directly or need to do something first? I tried to follow the twrp instructions, but got confused.

GitHub - topjohnwu/Magisk: The Magic Mask for Android

The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.

github.com

Excuse me for my n00biness :(
[Samsung Galaxy S21 Ultra] afaneh92:
Following instructions step by step will get you booted device with twrp and root.

Yes you can try dr ketan rom
[Samsung Galaxy S21 Ultra] BWRainbow:
Could this be compatible with Xcover Pro?
[Samsung Galaxy S21 Ultra] afaneh92:
How is that? they look the same?
[Samsung Galaxy S21 Ultra] BWRainbow:
I think them use the same proccessor but I don't know if that's enough, that's why I was asking :D.
[Samsung Galaxy S21 Ultra] afaneh92:
no they dont
[Samsung Galaxy S21 Ultra] BWRainbow:
My bad then :D
[Samsung Galaxy S21 Ultra] maxq1:
after disabling encryption is flashing magisk required? i plan on flashing a custom rom afterwards anyway, so i'm thinking not. just wanna make sure
[Samsung Galaxy S21 Ultra] afaneh92:
Not required, magisk for root.
[Samsung Galaxy S21 Ultra] nitinvaid:
it wont support Indian variant?

G998B/DS
[Samsung Galaxy S21 Ultra] nitinvaid:
Yesterday I have booted in twrp to make backup of efs partition.

Then I noticed my magisk settings has been reset

Viper4android driver were also uninstalled

Even substratum theme overlays are also uninstalled
[Samsung Galaxy S21 Ultra] nitinvaid:
I have flashed the recovery now if i want to update the rom when new updates comes

If i update the rom with ODIN it will overwrite the recovery right? and even enable encryption again which will again wipe my internal storage so how to update? to keep everything as it is right now including root
[Samsung Galaxy S21 Ultra] kchalos:
Estimado amigo si ya abrirste el gestor de arranque automaticamente ya estara habilitado el OEM ...para q aparesca rapido solo actival tus dato o el wifi y veras que aparece, no es necesario esperar los 7 dias, eso si antes de abrir el gestor de arranque debiste habilitar el OEM y DEPURACION USB

Translation: Dear friend, if you already opened the bootloader automatically, the OEM will be enabled ... so that it appears quickly, just activate your data or Wi-Fi and you will see that it appears, it is not necessary to wait 7 days, that if before opening the manager boot you should have enabled OEM and USB DEBUGGING
[Samsung Galaxy S21 Ultra] husharon:
i have a strange problem...

after i flashed twrp via odin the os is missing and i get bootloops.

i need to flash samsung firmware again every time and cant use twrp.

i really want twrp and back to my custom rom
[Samsung Galaxy S21 Ultra] afaneh92:
make sure you have correct model and follow instructions.
[Samsung Galaxy S21 Ultra] Srbija2012:
You can not flash official firmware via ODIN, and retain root and TWRP, its impossible.
[Samsung Galaxy S21 Ultra] afaneh92:
And who told you that? Its not impossible but the process is long and not easy.
[Samsung Galaxy S21 Ultra] Srbija2012:
If you extract stock FW, without modifying it, and flash AP, CP, BL and CSC via ODIN, how can you retain TWRP in the BL?

I'll wait.
[Samsung Galaxy S21 Ultra] afaneh92:
Disable auto reboot in odin, flash firmware. reboot to download mode again and flash twrp and vbmeta disable.

reboot to twrp immediately otherwise will encrypt data , in twrp run multidisabler from twrp terminal and you done.
[Samsung Galaxy S21 Ultra] AndrzejDwo:
You can even do that in one session by putting twrp and vbmeta in userdata tab.

Cheers
[Samsung Galaxy S21 Ultra] afaneh92:
The next twrp release wont require vbmeta disableing
[Samsung Galaxy S21 Ultra] AndrzejDwo:
Good to hear because patching vbmeta is a pain since John removed that option from magisk and you have to patch whole AP.

Cheers
[Samsung Galaxy S21 Ultra] nitinvaid:
Then what's the way ?
[Samsung Galaxy S21 Ultra] Srbija2012:
That's not what he asked...

Read his post again.
[Samsung Galaxy S21 Ultra] afaneh92:
OK you are right can you take over the development and answer user questions?

you look smarter than me
[Samsung Galaxy S21 Ultra] nitinvaid:
flashed the firmware

still in download mode but how to reboot to direct download mode again

anyone please?
[Samsung Galaxy S21 Ultra] afaneh92:
There is option to download mode if possible in the second tab.

Or force reboot by holding vol down and power for 7 seconds, then press and hold both volume buttons when screen goes black.
[Samsung Galaxy S21 Ultra] nitinvaid:
the 2nd option worked i have updated the firmware and i am rooted

twrp

no data lost
[Samsung Galaxy S21 Ultra] Ssnurzel:
Hi. One question - Can the new TWRP updated (flashed) on a S21 Ultra without full wipe?

Regards
[Samsung Galaxy S21 Ultra] sanoayyk:
Of course.

If you wannna do it without Odin, unpack the tar and put recovery.img into the phone.

Reboot into TWRP, flash recovery.img to recovery pertition.
[Samsung Galaxy S21 Ultra] Ssnurzel:
Thanks. 😊 I will try it.
[Samsung Galaxy S21 Ultra] afaneh92:
Yes no need to extract it just flash in odin if you already have twrp installed.
[Samsung Galaxy S21 Ultra] Ssnurzel:
I extracted and installed the .img file in TWRP and it works. 😊
[Samsung Galaxy S21 Ultra] babyboy3265:
Guys can someone kind enough write a step by step instruction on how to update the TWRP for those of us who have the older version together with the latest version of KETAN rom?
[Samsung Galaxy S21 Ultra] dr.ketan:
1.Download new twrp tar and flash with odin AP tab

OR

2.Download new twrp - extract recovery.img from it - copy to device

Reboot to existing twrp - install image - select copied recovery.img and select recovery partition to flash

Done
[Samsung Galaxy S21 Ultra] babyboy3265:
Thanks doc!
[Samsung Galaxy S21 Ultra] tixos:
@afaneh92

/dev/bus/usb/001/012

Setup Connection

ioctl bulk read Fail. errno 110

Fail Setup Connection

Why is this? BTW I'm using your Odin for linux
[Samsung Galaxy S21 Ultra] Burt Squirtz:
Still Loving your Twrp sir. Is there any way to get this to work with the new one UI 4 beta? Dr Keton says it's possible but whenever I try to install it on beta 4, the screen starts glitching in and out, with TWRP flashing and inaccessible. And the only way to get out of it is to go back into download mode and reflash firmware.

EDIT: please disregard entirely. I figured out that there's a newer version of TWRP that you uploaded, I didn't scroll down far enough under Android host to see it haha. TWRP and magisk fully working on the one UI beta 4.
[Samsung Galaxy S21 Ultra] Rezus97:
Hi guys. I want to install root rights, but I do not understand how to unlock the bootloader, in the developer settings I do not have an OEM Unlock button. I have been using the phone for 4 months. my Firmware is SM-G998W, I bought the phone in Canada at Fido
[Samsung Galaxy S21 Ultra] afaneh92:
Can be unlocked via paid service, but requires device to be on v1 bootloader.
[Samsung Galaxy S21 Ultra] laolaxyz:
I installed TWPR (3.6.0_11-4) by following the instruction on page 1. Everything is fine - the I can access TWRP or boot into Android 12 - Jan 22 ROM not modified. As I installed TWRP the final step was to install Magsik.zip (V23). Went also through without any errors. However, when I install Magsik Manager (Magisk.apk) it shows tat Magisk isn't installed. I tried several times again to patch Magisk.zip - always without any error but still no sucess... Any suggestion how to get root ? Did I miss something ?
[Samsung Galaxy S21 Ultra] afaneh92:
Canary for 12
[Samsung Galaxy S21 Ultra] laolaxyz:
@afaneh92 - thanks, but I am not sure that I do understand your hint.. I downloaded Magisk Canary APK from https://github.com/topjohnwu/Magisk - with exactly the same result - Magisk not installed... Is there also a Canary ZIP which has to be flashed and I didn't see ?

update:

@afaneh92: Thanks - you made my day :-) Renaming the APK into ZIP and then flashing in TWPR did make the trick :-)
[Samsung Galaxy S21 Ultra] laolaxyz:
Now I am still struggeling to enable Google Pay - any suggestions (I just learned that Magisk Hide isn't supported any more)....
[Samsung Galaxy S21 Ultra] afaneh92:
enable zygisk, install universal safetynet fix 2.2 and add your app to denylist. then hide the magisk app.
[Samsung Galaxy S21 Ultra] rafalubo:
hello friend your twrp works the BULF last update of Samsung
[Samsung Galaxy S21 Ultra] laolaxyz:
Thanks - also working like a charm :-)
[Samsung Galaxy S21 Ultra] vibrantliker:
what would the reason be that TWRP does not see files I have on my internal storage?
[Samsung Galaxy S21 Ultra] rmercado:
Help Please...

My phone keep on looping @ TWRP logo

I tried to go to Download mode but it wont allow me..
[Samsung Galaxy S21 Ultra] rmercado:
No wories I manage to recover it... thru ADB..

Thanks anyway
[Samsung Galaxy S21 Ultra] zocex:
same issue here
[Samsung Galaxy S21 Ultra] JazonX:
Hey Guys,

is this the latest version ?

twrp-3.6.0_11-4_afaneh92-p3s.tar​
[Samsung Galaxy S21 Ultra] |||||:
Can we get this for S22 Ultra please ? ;)

Would be epic. Get this Guy a S22 Ultra asap ;)
[Samsung Galaxy S21 Ultra] JazonX:
How to update a rooted Stock firmware (S21 Ultra) - without losing the data ?

Just flashed it with Home_CSC and patched AP, But keeps rebooting to TWRP.

If boots to Stock recovery, It's asking to wipe.
[Samsung Galaxy S21 Ultra] timofonic:
I installed Dr.Ketan ROM, it's suppossed to have TWRP_Feb22.tar.md5

I tried to run TWRP recovery, but a white Android logo with "erasing" appears. I cannot skip it, tried to not autoreboot download mode and no success too.

Can both people here help me? I did many tried and showed my no progress on the other thread, I'm extremely frustrated.

https://xdaforums.com/t/21-02-22-g998b-i-dr-ketan-rom-i-oneui-4-0-i-oneui-3-1.4247357/page-90

I have a working phone with stock firmware, but most of my stuff is for a rooted phone.

Please help.
[Samsung Galaxy S21 Ultra] timofonic:
Dr. Ketan has a more updated one. Anyway, I have issues making TWRP run. It seems TWRP gets deleted and replaced by standard Android Recovery somehow :(

@afaneh92 Can you help? Please...
[Samsung Galaxy S21 Ultra] afaneh92:
follow instructions
[Samsung Galaxy S21 Ultra] timofonic:
Excuse me. I tried to follow instructions.

What instructions? Yours? Is it due to this?

May be because I missed to put vbmeta_disabled_R.tar in userdata? Please excuse me to pollute here, I tried hard to follow instructions but it seems I'm missing something. It's driving me nuts.
[Samsung Galaxy S21 Ultra] notnoelchannel:
twrp still updated?
[Samsung Galaxy S21 Ultra] Sputnikk23:
Unable to take a backup on twrp-3.6.0_11-4_afaneh92-p3s.tar

Console exits quickly with:

TWRP Backup : Error 255 in createTarFork() process.​

recovery log says: unable to open terminal: pcansi

What gives?
[Samsung Galaxy S21 Ultra] Sputnikk23:
So I figured something out.

recovery log dump is showing extra info.

I:addFile '/data/misc/apexdata/com.android.art/dalvik-cache/arm/cache-info.xml' including root: 1
==> set selinux context: u:object_r:apex_art_data_file:s0
I:Error adding file '/data/misc/apexdata/com.android.art/dalvik-cache/arm/cache-info.xml' to '/data/media/0/TWRP/BACKUPS/SM-G998B/2022-03-16--14-34-51_G998BXXU4BVB1_DrKetan_S07_Pro/data.f2fs.win000'

If i try to cat this file via adb while phone is in TWRP I get:

cat: cache-info.xml : Required key not available.

However if I boot the phone and try to cat it via adb (after SU'ing up), I can read it fine.

TWRP seems to be able to access everything else fine. Not sure where to go here.
[Samsung Galaxy S21 Ultra] rah84:
I have exact the same problem when using S21 Ultra Files for G998B :(

i made exactly the steps how on 1st post is..

/data mounting is not possible

same like the guy posted on the 1st post at the bottom screenshots of this error

I followed Instruction exact, i flashed the twrp and vb meta then i booted straight to the twrp, run multidisabler 3 Times with no errors and know i cant booting my device anymore since it hangs on carrier boot Logo so i made a factory reset with odin.....:(

My Phone is of course unlocked and rooted too

this problem i have too and i made all the steps including multidisabler

did u solve it?
[Samsung Galaxy S21 Ultra] |||||:
ok, it works on CVC4 - ONE UI 4.1 Update as well ;)

Galaxy Firmware

Download latest samsung firmware for free without any limits.

galaxyfirmware.com

Edit: Dr. Ketan Rom seems to have it done properly.. ;)

I added his latest TWRP, wich he posted in his ROM.

Just use this in combination with the OP's vbmeta-disabled

Edit:

Damn.. I had TWRP once, but it didn't show the Super.img File and when I restartet it to recovery, it was gone..

And now it is not working somehow.. only getting to normal Recovery ..

(Edit: you have to switch to img flashing in TWRP of course to flash the super.img by dr. ketan)

now it works, see below:
[Samsung Galaxy S21 Ultra] rah84:
twrp doesnt work here damn.

i get always /data cant be mounted even i used multidisabler.

what can i do else??

@||||| ou mmust extract the contents and make vbmeta and twrrp as a TAR file then this works, but its the same version as here......
[Samsung Galaxy S21 Ultra] |||||:
@rah84 Did you unlocked the Bootloader etc? Try to clean install with the latest Firmware.

If important stuff is there, do a full backup before..

And also did you used the latest TWRP, wich I posted above ?

Ok, it seems to work now.

I reflashed the latest Firmware and then again followed the instructions.

Now it works. I might post later some more details. But its just that easy.

Really make sure to have the cable connected to go to TWRP and you long press VOL UP + Power, as long as it needs to come up with TWRP.

After that you can flash the best custom rom (in my opinion) https://drketanrom.com/samsung-s21ultra
[Samsung Galaxy S21 Ultra] JazonX:
Nope, Ended up losing the ability to boot and had to wipe.
[Samsung Galaxy S21 Ultra] rah84:
Thanks for help but Iam already rooted and unlocked the BL, should i first Flash with a unpatched AP File?

I die follows the steps, its really easy

flased the twrp and vbmeta, Thema Go straight from Download mode to twrp Mode and typed multidisabler three times with success

then i cant boot to cuz it hangs during carrier mode, then after wipe i tried again

I did flash the latest twrp 3.60.....

after that yours, seems the same version cuz the Version Code was the same

Is it maybe because my CSC? I have DRE but flashed the DBT, i think that doesnt Care.

@JazonX damn, whats wrong with our phones, i think i give up too
[Samsung Galaxy S21 Ultra] JazonX:
I gave up TWRP a while back. At this point, it's just a hassle.

I'm gonna just use the patched AP TAR and Get root access.

This makes it easier to update on security patches, and on the bottom line you can just flash stock AP and recover out anytime if something goes wrong.
[Samsung Galaxy S21 Ultra] |||||:
Like I said, after this it worked for me.

Flash the unpatched first, try if it works, then flash the patched Firmware (AP) and follow all the steps with the latest twrp and then it should work. Try again.

@rah84

And why did you run the multidisabler 3x ???

I also had DBT and it works for sure. If not, do it all over again and do a clean flash with CSC (that does a clean reset) not like the HOME_CSC (wich keeps your previous Data)

Backup all before that.