yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] martindar:
Finally! managed to get twrp Installed!!! only took me two weeks and having to re root about eight times! but finally have stock rom ( latest) and twrp recovery, after installing i found my storage had dropped from 128gb to 32gb but fixed in twrp! in the repair section, (data repair) am extremely happy but still don't really know why it took so many tries, but there you go, managed to insert renamed patched recovery img into AP tar file and remove stock recovery and flashed in odin along with bl,csc,cp, still not sure why or how it worked this time, but not complaining! the last time i had twrp was on a nexus 4 !! they have made it very difficult but persevere and success will come, many thanks to Ian and John wu if anybody needs help just ask.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] wuseman:
Thanks alot for this one, works excellent on my SM-970F NCC firmware.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
[MENTION=7187684]ianmacd[/MENTION]

Any chance for newer CTD1 kernel version?

thx in advance
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
Of course, but I need fresh kernel source from Samsung for that. Still waiting...
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] hanspampel:
Are you missing something? Seems the camera still works.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
???

must reroot my phone again and I am waiting for CTD1 with twrp but if not reachable in near future will use older CTC9.

What am I missing here?

AFAIK not good to have twrp baseed on different kernel than firmware right?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] hanspampel:
If there are no problems with older kernel versions, you can use it. Or use the aosp based twrp in unify dev section. I think on that twrp you will never getting cam errors anymore.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
ok, so what is better solution CTD1 firmware and CTC9 twrp or older firmware CTC9 with CTC9 twrp.

I had big problems with edxposed recently which forced me to reroot and want to be as safe here as possible
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] hanspampel:
You dont have to update twrp with every fw. Samsung only releases sources when they are changing kernel stuff. Maybe samsung didnt change something, it seems so cause camera works with ctc9 on ctd1 fw, they dont release new sources.

Im not confirm with edexposed. Never used it. Try it out and see what happend.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] p@to:
Hi. I hope someone can clarify which partitions I should select to make a backup. Thanks in advance
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Philnicolls89:
I am unsure myself, but If you want to make a full system back up just select everything in the twrp back up menu. 1 or 2 may be unnecessary but it will absolutely do no harm.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] p@to:
[MENTION=1683264]philnic[/MENTION]olls

Thanks for answering. Actually I would like to back up only the partitions that are necessary. I hope someone can clarify that for us
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Joe333x:
Does this work for G973F/DS? Is there anything different between the single aand dual sim versions of the s10 that i should know about?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Keule-Tm:
Depends on what you want to do with the backup. Just backing up your apps? Data is what you desire. Full ROM to reinstall it later? Probably all partitions (depends on ROM, AFAIK).
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] p@to:
Hi!

Yes!

ROM buck up to reinstall it later
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] AmberKat:
G973F Newest Firmware Bootloop?

Hi, so im on the newest firmware (Binary 5 or just G973FXXS5CTD1 patched with magisk) and i have root, but i cant install TWRP, i flash it with odin and it just bootloops, and im forced to reflash stock, this is really confusing me so it would be nice if someone could help me, because i really need twrp at this point and its frustrating me too.

also my bootloader is unlocked
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] fil3s:
Alright! :)

Here's how i did it on my g973f (with root) - no PC :D , keep reading

1. Install termux app

2. download twrp image

3. Download magisk manager app, patch twrp.img

4. Run this in termux:

Su

f=/storage/emulated/0/Download/magisk_patched.img; dd if=$f of=/dev/block/sda15 bs=$(stat -c%s $f)

5. Reboot to twrp (power, vol up bixby, release power when phone vibrates, keep holding bixby, vol up)

6. Flash multi-disabler

6. Format data, reboot

7. Run thru setup , connect wifi , sign in etc.

Finally run the magisk management app and complete setup. :)

Note: may take couple reboots to get magisk to setup properly

Profit. :svetius:
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] rypz79:
What ROM build are you using? mine is CTD1

Do you have any problems with your camera or other FCs?

Will it work with the SM-N975F?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] fil3s:
CTC9 latest oneui 2.1 i think. No problems with camera or FC's .. I'm not sure about SM - n975f... .
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] tiho5:
You mentioned it before, yes, but I wasn't sure

We are happy to have you here

Thank you, mate

---------- Post added at 07:35 PM ---------- Previous post was at 07:04 PM ----------

Reporting:

Tried it.

Had a bit too much beer, I think, as it didn't work.

However

run_program("/sbin/mount", "/product");

worked
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Jmakhdoom:
Just purchased new S10+ and rooted and installed TWRP as per directions of OP. Everything went smoothly. Thanks all for your great work. God bless you.

Now waiting for custom ROMs. When first custom ROM is expected? Is there any work going on ..?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Geekser:
I too am looking forward to custom roms, but honestly, there is no way to say when it will happen. Enjoy your phone for what you have now and be patient, it will happen when it happens. Custom Development for the S10 looks like it is going to be much more complicated than previous Samsung phones. The challenges that happened with TWRP Development are an indicator of just how complex and different this phone is.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Jmakhdoom:
Which partitions to backup and restore if needed in TWRP?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lupin57:
They are usually proposed by default ... but u can add some :)
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Magendanz:
The official TWRP installation instructions for these devices need to be updated. If you follow them as they're currently written, it will result in a boot loop.

https://twrp.me/samsung/samsunggalaxys10.html

https://twrp.me/samsung/samsunggalaxys10plus.html
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
Some of that text is boilerplate text, detailing the standard TWRP installation methods. I recognise that it's not ideal. That's why I added the system-as-root in an A-only partition configuration section, which concludes:

Please bear all of the above in mind when considering the installation methods listed below, and refer to the device's TWRP support thread on XDA for detailed information about installation and the associated hazards. Details of the firmware version(s) with which the current TWRP image's kernel is compatible can be found in the TWRP changelog for this device.​

Anyone who follows that advice before acting will be fine.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] darksimo:
hi, thanks for your great work!! i need some help: i already rooted my phone with john's method, and now i want install twrp, so i want please know what step to follow for it? thanks
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Magendanz:
I generally don't root my devices, which is why I skipped directly to the "Odin Install Method (No Root Required)" section. Is this really even an option for this model? You say yourself in the OP, "If your device is currently still unrooted and running stock firmware, do not proceed with installing TWRP. First root your device with Magisk."

For me, following the No Root Required section resulted in a boot loop, and I can't even seem to enter Download Mode to restore stock firmware in Odin. At this point, I'm just waiting for the battery to drain.

In the spirit of full disclosure, I'm not actually running on a Galaxy S10. I've built an unofficial TWRP for the 2019 Galaxy Tab A 10.1 [SM-T510/T515] based on your S10 device tree, and am attempting to test. They have very similar architecture.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] fkofilee:
Hi Guys

Is this TWRP compatible with the DS editions. I seem to remember on previous devices that there were TWRP for Dual Sim Devices etc?

While we are at it - Are you able to flash G975F Firmware on a G975F/DS with no issues? I remember you couldnt in the past but wasnt sure if this had changed with the Dual SIM being so common for this device.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] dynospectrum:
Mine is dual SIM. Yes it works fine.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] rp4k:
I have 975F dual sim with no issues. Just make sure your base firmware is a dual sim firmware . You can pick one from the OXM multi-CSC firmware and flash that then build your image and then flash again your patched.tar that is what I did it was very simple.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] fkofilee:
Ta muchly. I see Samfirm and Sammobile doesnt have the F/DS firmware on it. I wanted to flash FW from there as it should be available in someway.?

I want to have a backup incase my TWRP fails with all the Samsung Security they put in place...
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
Follow directions in the OP. [MENTION=2022726]PiCkLeS[/MENTION] has added more detailed instructions in posting #9, so those may be easier for you to follow.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
If you're looking for something like OXM, there is no special dual SIM version of the firmware. One size fits all.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
You can flash TWRP with Odin, but if you're running stock firmware, you will need to flash a vbmeta.img with partition signatures removed at the same time, i.e. as part of the same tar file.

It can seem as if it's impossible to get back to Download Mode, but in my experience, it's always possible, no matter how badly wrong a flash has gone. It can occasionally take several minutes of holding the keys before Download Mode appears.

OK, so the same observations probably apply to your device. I assume this device is also rooted in recovery.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] hoeni:
I've been trying this for over 2 hours now and I can't get it to work.

First I tried it using this as a guideline:

https://www.getdroidtips.com/twrp-recovery-galaxy-s10-s10-plus-root/#How_to_Install_TWRP_recovery_on_Galaxy_S10S10_and_Root_using_MagiskSU

It uses a pre patched twrp file.

This however resulted in a bootloop, in which the phone restarted every fe seconds.

I went back into download mode and flashed the original magisk patched AP file to get back to zero.

Next I tried the approach form OP:

Download twrp file, patch it using magisk app, rename it to twrp-img, download a terminal emulator app and typed in:

su

dd if=/sdcard/twrp.img of=/dev/block/platform/13d60000.ufs/by-name/recovery

I can't remember the exact wording, but it seemed successful to me. Nothing happened though.

I powered off, and tried rebooting into recovery by pressing power+bixby+volUP.

Samsung logo appeared, bootloader warning appeared, samsung logo appeared again. And then nothing.

It stays like that for like a minute and then vibrates shortly, before rebooting, resulting in a slower bootloop than before.

Regardless if I press and hold the button combo for recovery or not, it won't boot anything.

So back into download mode and reflash AP file.

What did I do wrong? :crying:

---------- Post added at 09:54 AM ---------- Previous post was at 09:48 AM ----------

Also I absolutely don't get what this is referring to.

I only have 1 twrp file, which I patch using magisk app, resulting in 1 patched twrp file named magisk_patched.tar

So why does the instructions speak of 2 seperate files? :confused:

---------- Post added at 10:11 AM ---------- Previous post was at 09:54 AM ----------

I retried using terminal emulator app, but with the command provided by OP instead:

dd if=/sdcard/twrp.img of=/dev/block/sda15

Still the same as before, however this time it takes a little bit longer for the phone to reboot since it's stuck on a black screen for some seconds before vibrating and rebooting. I'm at a loss here.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] PiCkLeS:
When you patch the AP-file (big one, over 4gig) with Magisk Manager you get magisk_patched.tar.

When you do the same with the twrp-image you downloaded from this thread, you get another smaller file. This smaller file you rename recovery.img. When you open magisk_patched.tar (big one) you will see an original file called recovery.img, that needs to be replaced by your brand new patched image wich you just renamed to recovery.img.

Im not at a computer and can only write via min phone, but if you really dont get any further after that explantion then PM me and Ill help you later today.

/P
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] hoeni:
Holy moly that helped a lot!

I wasn't aware that you were talking about the patched AP file!

I replaced the recovery.img, flashed it in Odin but I can still not boot into recovery.

I'll try it once again from scratch now.

Also, how long is "Press Power + Bixby + VolUP and HOLD THESE KEYS FOR A LONG TIME" supposed to take?

And aren't we supposed to only keep pressing volUP to boot into recovery acording to Magisk?

---------- Post added at 12:22 PM ---------- Previous post was at 11:53 AM ----------

Nah, still won't boot into recovery for some reason.

I'm writing you a pm. :)

---------- Post added at 12:38 PM ---------- Previous post was at 12:22 PM ----------

I tried sending you a pm but somehow it won't show up in my sent messages.

If you didn't get it please contact me as soon as you are free, thanks!
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
Please read John Wu's Samsung Pie system-as-root instructions.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Joe333x:
Okay so this is probably going to sound like a dumb question but I'm going crazy right now. Where do I download Magisk or do I need to compile it myself?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] robbo1947:
https://github.com/topjohnwu/Magisk/releases/tag/v20.4
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Joe333x:
Thank you!
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] zizomolto555:
i wanted to install recovery without root but how can i get a disabled vb meta?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Joe333x:
Should we be using Magisk Canary or latest stable?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] robbo1947:
I opted for stable and have no problems.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
How can i update software to newer one?

I guess i can flash new one rotted with magisk together with twrp rooted by magisk using odin and choose home as csc to save my data but then after flashing twrp and install multidisabler do i have to wipe -> format data which will erase all my settings and aps or can skip this safely?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] robbo1947:
Yep, download your new firmware using Frija or Samfirm and new TWRP if required, be careful to select correct TWRP version according to new firmware version (check TWRP release notes)

Patch firmware AP and TWRP. Rename patched TWRP to recovery.img and using 7zip or similar, replace the stock recovery in the Magisk_patched.tar file with this new one.

Open Odin 3.13.1 or later on your computer, and deselect Reboot under Options tab.

Now use the new magisk_patched.tar 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.

Let Odin do its stuff, exit Download mode holding Vol-down and power button until screen goes off, then immediately press and hold Bixby button, Vol-Up and Power button, when boot screen appears release Bixby and Power buttons but keep pressing Vol-Up until TWRP appears. Be very careful here, because when TWRP first loads more often than not it insists on doing another reboot, so be ready with the button combo again.

In TWRP flash multidisabler, DO NOT WIPE.

Go to TWRP home screen , select Reboot and then Recovery.

Within moments without any further user intervention your phone will reboot into your updated Magisk rooted mode, data intact.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
@ robo1947

Thx for clarification, will do it exactly as described
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
I don't know in which topic to put it, so will try here

Since 3 days i fight with my s10+ to update it to ctdt with twrp and edxposed. After 1 day when phone was set up right and was working ok i get message that new times zones are to be update and need to restart phone. After that i cn't log no more to samsung account and nagging screen pops up to do it. I tried many methods from unassigned device and change password on browser on pc with samsung account, wipe cash of Samsung account on phone using titanium backup, all unsucesfull. When i reboot to unroot phone can easily sign in. Do't know how to repair it. What do You advice? I have full backup in twrp and titanium backup but after problem. I want to try to switch to earlier ctc9 and use backup but how to do it. Put just data in twrp or use titanium backup. I don't want to start from scratch for the 3 time as it takes more than a day to set phone up with all apps, car, tasker, home media, torrents etc.

Any advice please, never had so many problems with Pie, is the only solution to go back on Android9 with this phone. Can it be connected to new Samsung ui 2.1?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] robbo1947:
The CDT1 firmware has a new bootloader so you can't go back to CTC9 let alone Pie.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
@ robbo1947

I just made a task in tasker to hide nagging screen when it pops up, not a solution but rest works ok beside all samsung connected services which i don't use as i always use rooted phones. Just had to completely switch from samsung health to google fit but its ok with me. Just 1 thing witch doesn't work is do not disturb (DND) feature which never switch on or off according to schedule. On Pie it worked ok... With my current experience will not advice to go to Android 10 if root an exposed is needed, it works much worse with many problems and app crashes...
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] Joe333x:
Just FYI if what Robbo says is true about not being able to flash CTC9 firmware. You can however run a CTC9 rom. I am currently on CTD1 firmware but running BeyondRom which is CTC9. So you could try that.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] martindar:
no root possible after may update??!

Ianmacd could you please tell me whether it is still possible to root and gain back your recovery after the may update, i cannot get anywhere in odin after said update ? am currently back to stock now, cant factory reset either phone wont let me when i tried i got a message saying "unauthorised factory reset, aborted" any help or ways around this would be extremely helpful many thanks, martin.

---------- Post added at 07:02 PM ---------- Previous post was at 06:55 PM ----------

i have had rhe same after may update, samsung seemed to have locked the phones down with this update i am back to stock as had all sorts of problems like yourself, just hoping there may be a fix on the horizon! cant believe i got caught out installing said update,good luck.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] robbo1947:
⁸

I've just realised the TWRP you used was v3.3.1-103 which is for the CTC9 firmware, whereas you've flashed the CDT1 firmware. I don't think [MENTION=7187684]ianmacd[/MENTION] has released TWRP yet for the latest firmware, he's probably still waiting on Samsung to release the source. I wonder if this is causing you the problems.

The way around this would be to just revert the recovery to the stock recovery and just use TWRP on demand, which is what a lot of people do. If you read the latter part of [MENTION=7187684]ianmacd[/MENTION]'s 1st post of this thread, you see mention of this. An alternative way is to extract the stock recovery.img from the patched AP (magisk_patched.tar) file of the stock firmware, then using Flasify or similar, reflash it to the phone to replace TWRP. Don't forget to copy the stock recovery.img to the SD of your phone.

Now if you need to use TWRP you can, using Flashify, flash TWRP to your phone, do what you want to do but before exiting, using TWRP, flash the stock recovery.img and then reboot back into Android.

N.B. You don't have to patch the TWRP if using the on demand method.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] martindar:
many thanks!

thanks for reply! shouldn't have missed that! never thought about TWRP at the time, running stock now :(

but will await Ianmacd's brilliance and try again for the freedom of root!! thanks again!
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] lukjod:
@ robbo1947

by any chance do You have a link for some step by step tutorial as I don't want to screw it again and start from the beginning, twrp i just need really for backup so can live without it all the time on the phone, and just flash it on purpose of update. Just don't know how to start and make all of as 1 error usually means starting from beginning and loosing 1-2 days to set phone up ok in my case.

btw

Thank You very much for so much knowledge and help in this stuff

The most important question is:

Can this be done without loosing my data and if not how can i use backup if twrp will not be there?

Do I have to use titanium backup afterward?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] robbo1947:
Yes this can be done without loss of data or wiping.

Ensure you have a copy of the patched stock recovery.img on your phone's SD. To get this file, on your computer open the magisk_patched.tar file with winzip, from the winzip window drag the recovery.img file to a free area on your desktop, then copy this file to your phone SD. Also on your phone's SD you need a copy of the TWRP file. Make sure you copy these files to an easy to remember place on your SD, perhaps even create a new folder called Recoverys if you want. Also from the Play Store, install Flashify.

To get started on using TWRP on demand, reboot your phone to TWRP, go to Install then select Install Image, select the (stock) recovery.img and flash. Now go to TWRP Home, select Reboot then select Recovery. The phone will now boot into Magisk rooted mode.

Now if you want to use TWRP, open Flashify, choose Recovery image option, and select the TWRP file and flash. Reboot, using usual button combo to TWRP.

Just remember that every time you use TWRP, having done what you wanted to do with it, before rebooting you must flash the (stock) recovery.img

Simples.

?
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] ianmacd:
Version 3.3.1-104_ianmacd released for G97[035]F.

Changelog

v3.3.1-104_ianmacd for G97[035]F [inc. CTD1 kernel] (2020-05-31)

Rebase kernel on Samsung's CTD1 source code.

This version is intended for use only with Android 10.
[Samsung Galaxy S10 ROMs, Kernels, Recoveries, & Ot] fil3s:
Safely updated my G973F on los 17.1 by flash to recovery partition. ??