yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

* Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or your getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.

Supported Models:

Galaxy S10 Lite G770U, G770W and G770F only.

US/Canada bootloader unlock thread:

here

Download & Guide:

1. Unlock your bootloader.

2. Download S10 Lite: r5q.

3. Reboot to download mode and flash vbmeta_disabled.tar in AP slot and reboot. Device will reboot to stock recovery mode prompting you to wipe data so wipe data and reboot to download mode again.

4. Put the TWRP tar for your device with Odin in the AP slot and click start.

5. Reboot to recovery via recovery key combo.

6. Disable encryption:

- Go to Advanced > Terminal, type: multidisabler.​

If vendor complain about free space left on device, will attempt to resize vendor. and it ask to - Run multidisabler again!.​

- Type: multidisabler again. will see - Finished. when done.​

7. Go back to Wipe > Format Data > type yes.

8. Reboot to recovery.

9. Flash magisk apk in twrp.

10. Reboot to system, Enjoy.

Note:

Bugs:

- Encryption not fully working.

Thanks:

TWRP team

Flávio and Vaughnn for testing

ianmacd for multidisabler

Sources:

Kernel tree

Device tree
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Changelog:

29.11.2021 - Update to TWRP 3.6.0

- Add Symlinked dynamic partitions to fstab

- Update multidisabler

- fstab clean up

03.03.2021 - Update to latest TWRP source

- Add terminal multidisabler script

- fstab cleanup.

01.01.2021 - Update TWRP to 3.5.0

- Fix fastbootd

- Builds for Q and R.

21.11.2020 - Initial Release.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
Everything work perfect. Thank You :)
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Dor71:
Great, thank you.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] fbs:
@afaneh92 you're here too lol
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Yes, Im taking a rest from S5 lol.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Do all versions have snapdragons and is it free bootloader unlock? Im hoping it works the same for the G770U as the G770f right. Im looking at buying one and I have to have root and twrp lol
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Stephen:
Moderator Information,

Thread has been cleaned. Selling unlock services through XDA is not allowed.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
How is it possible I dont understand if samsung doesnt allow it officially how does that work?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Nice work on the recovery. This phone is tits its just as fast as my S6 tablet. Which partitions should I back up? Im not sure theres so many It wont back up modem.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
I though you wont do unlock your device lol.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Never mind it will back it up if I just backup modem by itself. What are the main ones for bootloops? Im guessing data, boot, super img with all the partitions inside.

The way I rooted was unlocked bootloader, flashed the dbmeta dummy file, had magisk canary on a ssd drive with the twrp and samsung disabler. After I flashed twrp I boot into recovery flashed the disabler and formate data yes and than I just flash magisk v21.1 zip and rebooted. Now I have check adb apps unchecked in developer options as migrate says his app works better that way so I dont know if it made a difference or not.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
I did the easy way. Im a broke bum it was a gift I dont have a 150 dollars so I went with the 770f model. If I had to I would have.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
What we need now is a permissive kernel.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
You can use the kernel in TWRP its permissive. I dont have free time to support kernels. but you can build it yourself.

GitHub - afaneh92/android_kernel_samsung_r5q: Kernel source for the Samsung Galaxy S10 Lite (Snapdragon)

Kernel source for the Samsung Galaxy S10 Lite (Snapdragon) - GitHub - afaneh92/android_kernel_samsung_r5q: Kernel source for the Samsung Galaxy S10 Lite (Snapdragon)

github.com

there is a build menu, easy way.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
I know I was thinking of trying it, ive built Lineage and a couple of roms for the S2 tablet, Nexus 6, and Ive tried twrp but never kernel. I have my build environment setup on ubuntu 14 on another hard drive but I have a cheap TLC hdmi tv and the resolution messed up and now everything is out of view and I can't even afford a 100 used monitor so its been put on hold for 2 years now.

When you restore a backup which partitions do you restore?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
all but read only, which is modem.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
I was looking into twrp wipe and it doesn't show system? So how do I flash lineage. Its weird because everything is different and I can't find instructions of all of it anywhere note in the note 20 twrp page nowhere.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Hey android 11 one ui 3.0 just dropped for the s10 lite.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Yes I know long time ago, cant update twrp until we got kernel source.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
There no system wipe, this is dynamic partition device. System, vendor, product and odm are part of super partition. Do some search.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
New builds changelog:

01.01.2021 - Update TWRP to 3.5.0, Fix fastbootd, Builds for Q and R.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] al.iraqi ali:
Hi

Can i back to android 10 ?

Thanks
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Yes you can, flash android 10 firmware.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] al.iraqi ali:
OMG that good

Thanks bro

I going to try
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] al.iraqi ali:
Hi

For my bad luck

Can't get back to android 10 :(

When open odin and put files and start

Odin say Fil
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Use patched odin, and make sure your kg state is checking.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] al.iraqi ali:
Bro

Can u help me

By say the version of odin u using to back to android 10

iam on MID firmware

My phone s10lite

Thanks
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Maybe I dont see it. What partitions are needed to restore twrp backup? Probably no one will answer
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Use patched odin

https://xdaforums.com/attachments/odin3-v3-14-1_3b_patched-zip.5158507/

The main partitions like boot, super, data will get you a working rom.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
Hi. Thanks for this amazing work here!.

Just to make sure: I suppose the link to download twrp are for F model also?

Because the files write "U".

Thanks,
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Hi, Yes its for all S10 lite variants
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
PHE-G770FXXU4EUBA-G770FOXM4EUBA.zip

drive.google.com

Heres the new oneUi 3.1 firmware for anyone looking to download fast.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] parpagnas:
What makes it incompatible with sm-n770f/ds?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Exynos chip!
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Was the newest twrp made with the one ui 3.1 kernel?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
no
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Ok I was wondering because the 3.1 source just became available a couple of days ago but the date made me think maybe you did.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Im busy this week.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Can anyone confirm the s10 lite on the latest firmware may security patch can work with twrp?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I tried today but cant boot to twrp recovery. It boot to samsung original recovery. What is the key combination to boot to twrp recovery, or this is not working any more?

This step:

5. Reboot to recovery via recovery key combo.

6. Disable encryption:

- Flash multidisabler-samsung-3.x.zip.

flash it in twrp recovery or original samsung recovery?

Thanks
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Im guessing your on Android 11 yes? So you probably unplugged it from the computer after flashing with Odin twrp? You probably figured it would be easier to hit the keys. That's the problem you have to leave it plugged into the pc now with android 11 to get it to boot into recovery mode. It sucks because every time you bootloop you need a pc to fix it lol. You also have to format data wipe type yes than flash disabler and than magisk v23 apk renamed to .zip
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
Thanks. Yes, android 11 and all security updates until now.. I don't know what was my mistake. I retried everything and now twrp is working. But i flash with twrp magisk-v23.apk, rebooting and i don't have root..

Is there any specific magisk i should install?

(I downloaded magisk.apk and rename it to magisk.zip, and then flashing it as i readed in magisk site.. Is there anything i do wrong?)

Thanks again.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
No if you renamed it should have flashed but you need to go into rom and turn on USB debugging but I'm sure you have if twrp is flashed. Go into developer options and find verify apps over usb and uncheck it that helps. Than try booting back into twrp and flash magisk v23 again. You can try 21 or 22 also I'm not sure which one I used it's been like 6 months.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
You will notice a magisk app on your apps that you have to install when you click on it and it'll needed to finish installing and reboot. Sometimes it doesn't show up right away if it a fresh system on slower devices but after a couple minutes it should.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
Thanks my friend but unfortunately i don't have magisk app after installing magisk.zip. I waited some time. Recovery doesn't give me any error when installing it.. It looks as everything is working fine.. I'll try magisk v22 but i don't think will solve the problem.. Should i wipe case after installation of magisk.zip or it doesn't play any role..
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I tried magisk.zip v22 the same.. I really don't know what else to do.. Any way to test if twrp really working? I have rooted many phones in the past, 1st time i can't find a solution.. :(
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
did you try after flash magisk and boot system to install magisk applications "manually" (again from magisk.zip to magisk.apk) and run it?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I installed manually magisk.apk. When i run it, it looks like magisk isn't installed. It only gives me the option to patch a file, so to install it through odin i suppose.

The only thing i can think is that twrp is not working well. It feels like it is installing but nothing really happens. How can i test that twrp do works?

Is it possible that any security update brake something so this tutorial no longer works?

I downloaded the original rom i already have to install it with odin and try everything from start.. But if i end to the same problems then i can't root..
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
Then i think You can try patch in magisk boot.img file from AP file and after flash in twrp . You can look at mounted patritions in twrp before install and after - sorry i don't have a lot of knowledge (im not dev )
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I installed the original rom from odin and try to do it again from fresh.

In :

5. Reboot to recovery via recovery key combo.

When i do it, i have the original recovery, not twrp..

It's an error isn't it? I should had twrp?

So i can't do step 6:

6. Disable encryption:

- Flash multidisabler-samsung-3.x.zip.

I have to flash this in twrp? Right?

To boot to twrp i insert usb from pc and press power & volume up but it goes to stock recovery. I'm i doing something wrong or it isn't working any more?

The steps i did:

Ok 1. Unlock your bootloader.

Ok 2. Download S10 Lite: r5q.

Ok 3. Reboot to download mode and flash vbmeta_disabled.tar in AP slot and reboot. Device will reboot to stock recovery mode prompting you to wipe data so wipe data and reboot to download mode again.

Ok 4. Put the TWRP tar for your device with Odin in the AP slot and click start.

-------5. Reboot to recovery via recovery key combo.

This step is rebooting to stock recovery, not twrp.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
Ok. Try do like that:

1. In odin, select all files (home_csc of course)

2. In userdata put this file (its twrp and vbmeta )

3. untick autoreboot and flash

4. After odin pass don't unplug usb

5. boot to recovery with key combo

6.Disable encryption:

- Go to Advanced > Terminal, type: multidisabler.

If vendor complain about free space left on device, will attempt to resize vendor. and it ask to - Run multidisabler again!.

- Type: multidisabler again. will see - Finished. when done.

- Go back to Wipe > Format Data > type yes.

- Reboot to recovery.

7. Flash magisk.zip in twrp. (but try with magisk canary)

8. reboot
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
You are a God my friend.. I probably trying 10 hours.. :)

This one worked fine. I have now twrp and root.

I'm not sure if i have the latest magisk. I Googled magisk canary. It says 22.1.

Many many thanks again!!

This should be in 1st page now.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
It's great to hear that it finally worked. There is an update channel in the magisk application settings and see if you have set to canary (I have 23). Here is the author's official github:

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

There will definitely be the latest versions from there. If you have any more problems just write here
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I am probably oftopic, but, is there any way sumsung pass to work after root?

If not, any alternative?

(Ebanking working, netflix fixed by manually installing the apk for apk mirror if anyone is searching for this).

Thanks again.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
unfortunately, it seems to me that samsung pass and Pay will not work in any case due to knox. I personally switched to google auto refill a few years ago.

https://xdaforums.com/t/samsung-pass-on-knox-tripped-devices.3687977/

I've read something here before but I'm not up to date
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] ShadoWDarK1:
Hi, any custom rom for g770u1??? god job
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
G770F roms works if you are unlocked bootloader
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I'm trying to root a phone of a friend. I have rooted fine mine with this. But he has done one update more.. I have XXS4EUF6 bootloader version. He has XXS5EUG5 bootloader. I think it's one update more. Anyway i tried to install my version in odin (I'm doing downgrade i suppose) and odin gives me error

"su reu check fail abl fused 5 binary 4" which as i searched a little i think is downgrade error although i read that you CAN downgrade without problem..

If anyone has any solution, thanks.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
Downgrade on samsung phones is possible when You want downgrade with the same bootloader ( S4 and S5 is version of bootloader) that means he can install every firmware with bootloader S5 or higher but You can install with S4 or higher. Downgrade bootloader with Odin is impossible
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
Thanks. I downloaded his rom.. I'll try with the new rom.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I downloaded his original rom. I re installed it with Odin to test that i can install again the original rom if something goes wrong. It installed fine, so the rom is ok.

Now i did the above again (i have done it successfully for my phone a month ago in the rom i had in this phone then, it was an one month older rom).

So i installing again the original rom but with this more:

1. In odin, select all files (home_csc of course)

2. In userdata put this file (its twrp and vbmeta )

And in the end of installation i have this error in odin, and flashing fail.. (i re flashing original rom without this file in user data installed rom and phone is ok again, flashing is successful but without twrp of course. At least the phone is ok again).

This is the error: only official binaries are allowed

Anyone understand why? Is there any problem with unlocking the bootloader? Thanks!
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
I think this can help :

https://xdaforums.com/t/how-to-bypass-kg-state-and-or-rmm-state-prenormal.3891193/
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
So my mistake was i didn't follow step 3 of this if i understand well? I thought i can miss it as i flashed the above version of twrp.. (it is twrp AND vbmeta_disabled which step 3 is doing thats why i missed.. Or something else is my mistake?)

I'll leave it for now but is it this i should do first? Thanks.

Stage 3: Disable Android Verified Boot

1. Reboot to DOWNLOAD mode. If you are already in the download mode, skip to step 2.

2. Download Odin 3.14.4 or newer and make sure Samsung USB drivers are installed.

3. Open Odin and put the vbmeta_disabled.tar into USERDATA slot and click "Start"

4. Your device will reboot but it will not boot into system as vbmeta signature has changed.

5. Your device will reboot into RECOVERY mode automatically and prompt "You have to reset your device to factory settings". Use "Volume Up" or "Volume Down" button to move and "Power/Bixby" button to select. Confirm and reset the device to factory settings.

6. This is the last time the data on the device has to be cleared. Afterwards, if you don't re-lock bootloader or re-enable the Android Verified Boot, you will not lose your data. Be aware, a stock firmware package contains a Android Verified Boot Metadata Image (vbmeta.img) with verifications enabled. You will need to flash the vbmeta_disable image (put into USERDATA slot) along with the stock firmware (use BL, AP, CP, CSC slots) to make sure AVB is not re-enabled and the data is preserved.

With bootloader unlocked and AVB disabled, it is now possible to boot modified images on the device.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
Yes, i think it will be the shortest way and after that you may be able to flash twrp
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] sosimple:
I finally managed to root my friends phone.. I think the biggest problem was that in download mode kg status displayed "prenormal". My phone was displaying "checking" when the root method worked. So i did this from this post:

https://xdaforums.com/t/how-to-bypass-kg-state-and-or-rmm-state-prenormal.3891193/post-85564027

Basically turning phone 1 month older date etc. After this in download mode was displaying "checking". I did step 3, that i wrote before, and then flashing twrp (basically the file posted before which is twrp and vbmeta) . This way it worked.. Very strange, i don't understand why i should turn date 1 month older but this worked for me..
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Kuba1996:
I also don't know why you had to go back a month but that's good news its work and successful flashing twrp
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Oopsitsdeleted:
Can you please update TWRP so that it supports A12? Because the TWRP splash screen loops after installing a android 12 GSI. Thanks, and have a great day!
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
soon
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] lvlvbaoshi:
Hello, can you add Chinese to the latest twrp 3.6.0? Chinese folders can't be displayed, thank you
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] lvlvbaoshi:
I really need a Chinese twrp3.6.0. Thank you very much
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
3.6 released, will add more languages in next release.
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] lvlvbaoshi:
Thank you so much
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Oopsitsdeleted:
Thanks for developing for this tiny community! I really appreciate it!
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] immerblind:
Heyho. Im curious about your steps to installing a GSI? And which one you choose? U got a working android 11 gsi before?
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Would it be possible to update twrp 3.6.0 it does work with one ui 4.0 only restore has been removed out of twrp options its just blank when you click it because of the slot a and b being unable to restore and most devices.

The S10 light though can restore Android 11 on TWRP 3.52 so I know restore works if it's built into the system but I believe it's removed out of the source code of TWRP.

I would recommend orange Fox if that would be possible or unless you know where to put the restore back into the TWRP code. I have a Poco F3 that I use orange Fox and Android 12 and it has restore even though they're TWRP doesn't

I might be asking to much I do appreciate twrp being able to root android 12 one ui 4 already though. If anyone wants to know same as android 11 just use magisk v24.1 and twrp 3.6.0 Samsung disabler zip for encryption format your internal data install the fake Avb dummy file
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
There is no A/B and restore should be fine just select the storage to restore from
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] Techguy777:
Yes I know I have always restored on twrp 3.5.2 you obviously don't have the phone to check restore it's blank there's no option because twrp source code has removed restore option. Try it if you have the phone it's blank you can make a backup but you can't restore it. Obviously I would try it before commenting. I swear there is no restore
[Samsung Galaxy S10 Lite ROMs, Kernels, Recoveries,] afaneh92:
Ok will fix it in next build, if you refer to system, vendor, product and odm restore only I removed it on purpose.