yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S9 & S9+ Cross Device Development] corsicanu:
Official TWRP 3.6.1-* For Galaxy S9/S9+ Exynos​

Only for exynos variants - G960F (Europe, Global Single-SIM); G960FD (Global Dual-SIM); G960N (South Korea); G965F (Europe, Global Single-SIM); G965FD (Global Dual-SIM); G965N (South Korea);

Disclaimer

I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.

Please do some research if you have any concerns about features included in this recovery 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.

Features:

- built from Android 10 kernel source
- built from android-9.0 recovery sources
- built in full 64 mode
- fully compatible with Android 9.0/10.0

Downloads:

S9 - https://twrp.me/samsung/samsunggalaxys9.html

S9+ - https://twrp.me/samsung/samsunggalaxys9plus.html

Instructions:

Odin

Download latest Odin zip from downloads.corsicanu.ro/samsung

Download and install Samsung Drivers (if you have them installed you can skip this step)

Go to settings/Developer options and enable OEM unlock (If you don't see developer settings, go into Settings/About phone/Software info and tap "Build number" 10 times to show Developer options menu)

Download TWRP_*.tar

Switch off the phone

Use Bixby Key+Volume Down+Power to enter Download Mode and connect the device to usb

Open Odin and untick autoreboot in "options" tab. Also make sure that your device is detected

Put TWRP_*.tar.md5 file into AP tab

Click Start

When Odin shows "PASS", take your device in hands, disconnect the usb cable and press simultaneously the "Bixby key" + "Vol. Down" + "Power" buttons until the downoad mode disappears

At the precise moment the screen becomes black, immediately release the "Vol.Down" button and press the "Bixby key" + "Vol. UP" + "Power" buttons during 10 to 15sec to forcefully enter TWRP

If it didn`t worked, redo the steps from #1 more careful this time.

TWRP

Download TWRP_*.img, push it into phone storage, choose install image in your current recovery, navigate to downloaded *.img file, select it, select to flash as recovery.

After booting in TWRP download and flash no-verity-opt-encrypt-6.1 zip to disable data partition encryption

If for any reason you fail to install TWRP multiple times/different methods, make sure you check this thread

Sources:

S9 Device tree - https://github.com/TeamWin/android_device_samsung_starlte

S9+ Device tree - https://github.com/TeamWin/android_device_samsung_star2lte

Kernel - https://github.com/corsicanu/android_kernel_samsung_universal9810/tree/android-9.0

Recovery - https://github.com/omnirom/android_bootable_recovery

Credits:

TeamWin, jesec, geiti94, dyneteve, testers, donors and anyone else involved in making this possible
[Samsung Galaxy S9 & S9+ Cross Device Development] corsicanu:
Misc links:

TeamWin official website

Telegram Support Group

Telegram Channel

Bootloaders / modems zips

Latest Magisk stable or canary
[Samsung Galaxy S9 & S9+ Cross Device Development] corsicanu:
FAQ / Further reading

Q: TWRP can't mount data partition, what to do?

A: Make sure you formatted data partition.

Q: Phone is not booting even after 20 minutes

A: Try to reboot. If still not booting, make sure you formatted data partition.

Q: How to format data partition?

A:

Q: Phone is showing only Samsung logo

A: Try to reboot. If still not booting, consider installing an older TWRP build or a more recent firmware.

Q: I get "Failed to mount /preload message", what to do?

A: From wipe menu select Advanced Wipe, select preload partition to be wiped and reboot recovery.

Q: Why do i need to format data partition?

A: Because old rom encrypted your data partition and new rom can't decrypt and use that content / root needs access to data partition to place misc files / phone not booting after flashing root until data partition gets formatted.
[Samsung Galaxy S9 & S9+ Cross Device Development] 3arthur6:
First:laugh:

Nice af!
[Samsung Galaxy S9 & S9+ Cross Device Development] Peter KIKI:
support f2fs？
[Samsung Galaxy S9 & S9+ Cross Device Development] edzamber:
Many Thanls bro ?
[Samsung Galaxy S9 & S9+ Cross Device Development] HaohanWendy:
Thanks
[Samsung Galaxy S9 & S9+ Cross Device Development] ModX81:
Congratz Corsi

Thanks for your hard work?
[Samsung Galaxy S9 & S9+ Cross Device Development] jfitie:
Data decryption working?
[Samsung Galaxy S9 & S9+ Cross Device Development] jamaljmys:
thank you bro its working well

but when i go to TWRP i fount the data still encrypted and cannot be mounted although i did full data format and wipe. everytime i need to use TWRP i need to format data.

any solution around?

thanks
[Samsung Galaxy S9 & S9+ Cross Device Development] pauaxe:
Is the issue described here:

https://xdaforums.com/showpost.php?p=81072679&postcount=1832

fixed with this release?
[Samsung Galaxy S9 & S9+ Cross Device Development] kridster:
I think I have a similar problem. These were my steps:

flashed TWRP through Heimdall

booted into TWRP

wiped data

flashed the no verity opt encrypt zip

flashed LineageOS (official nightly from May 1st), gapps and Magisk

After that I booted the system and encryption was forced during boot. When I rebooted into recovery I was prompted to enter the password, which was not successful (decrypt failed because it took too long).

Before all that I was running an official and up-to-date Android 10 Samsung (April security patch).
[Samsung Galaxy S9 & S9+ Cross Device Development] D_Vovan_238:
Hi ?

Will you update the SHRP to latest TWRP Base ?

And will be very good if you will support the Orange Fox Recovery :)

I like those two recoveries because of password protection and they have more features…

Thanks for your work for our devices!
[Samsung Galaxy S9 & S9+ Cross Device Development] NotNotJustin:
Seems the dl link isn't working. I tried connecting to the dl site on my phone and my PC and both returned with a "This site can't be reached" error.

I just tried contacting TeamWin through the contact form on the TWRP website and it seems as though the submit file for the form was deleted.
[Samsung Galaxy S9 & S9+ Cross Device Development] FossaFX:
Could I live WITHOUT disabling encryption via flashing no-verify? I want to have my /data encrypted.
[Samsung Galaxy S9 & S9+ Cross Device Development] Kevin198:
Hi Mate just wondering would this working with a Samsung Galaxy S9 plus

Model SM-G96F

Android version 10

One UI version 2.1

Cheers
[Samsung Galaxy S9 & S9+ Cross Device Development] Physics Joke:
So are you saying that LOS does not support disabling encryption? I tried the whole procedure multiple times and it seems that the patch fails because the fstab entries are not found in LOS.

Could an encrypted data partition cause issues recognizing the sim card? I find this hard to imagine, but I have both issues pretty persistently.

Cheers
[Samsung Galaxy S9 & S9+ Cross Device Development] moocou:
The OP says:

Download TWRP_*.tar

Switch off the phone

Use Bixby Key+Volume Down+Power to enter Download Mode and connect the device to usb

Open Odin and untick autoreboot in "options" tab. Also make sure that your device is detected

Put TWRP_*.tar.md5 file into AP tab

I've downloaded twrp-3.3.1-1-starlte.img.tar (as recommended elsewhere for my S9) but how do I do the last part?

What is TWRP_*.tar.md5 file? How do I get it?
[Samsung Galaxy S9 & S9+ Cross Device Development] sacharja:
Is there anyone who got TWRP 3.4.0 working with encryption on a Samsung Galaxy S9?

My experiences after 1 hard week:

1. On Stock: TWRP always showed an unlock option via PIN, but it was never able to decrypt (neither default_password, nor disabling lockscreen, nor setting another PIN/Password in locksetings helped)

2. On Magisk: TWRP never showed an unlock option & was never able to decrypt

3. Only option was to disabled encryption --> the old encryption disabler from OP doesn't work, updated Disable_Dm-Verity_ForceEncrypt_03.04.2020 has to be used ( https://xdaforums.com/android/softw...rceencrypt-t3817389/post77091359#post77091359 ) --> patter lock & fingerprint cannot be used in the future

A little disappointing considering that the unlock option of TWRP & changelog suggests that decrypting should work.

[MENTION=5111702]moocou[/MENTION]

BTW: Put TWRP_*.tar file into AP tab
[Samsung Galaxy S9 & S9+ Cross Device Development] sacharja:
Found the reason: https://xdaforums.com/showpost.php?p=83780053&postcount=875
[Samsung Galaxy S9 & S9+ Cross Device Development] Philipp_:
How can I change LOS Recovery for TWRP? Thanks
[Samsung Galaxy S9 & S9+ Cross Device Development] MasterMichael84:
@corsicanu

What about SM-960U. It's T-Mobile galaxy S9
[Samsung Galaxy S9 & S9+ Cross Device Development] dbndvia:
How to bypass dm-verity before flashing TWRP?
[Samsung Galaxy S9 & S9+ Cross Device Development] ma_t14:
When I try to install no-verity-opt-encrypt-6.1 through TWRP I get the following errors:

Unable to mount storage

Failed to mount '/data' (invalid argument)

Any idea what might be going one?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
MARS SOM

The first so called SOM

Systemless-On-Memory

Years of porting, Stock ROMs and My Patches came to an end...

Since Magisk has grown to a full root and modding Solution for Android have i switched with My Development to creating Magisk Module Patches. Or in other Words, Systemless ROMs.

Mainly focusing on extending the Android Build Props are there also pure Parts of the latest Pixel Device Firmwares. Get the full Pixel UI Expierence, get extra Pixel Functions and Apps together with a better overall Experience. Better Audio In- and Output, better Display Calibrations, better Performance, more Functions packed into a simple Magisk Module.

Features:

Ported Pixel Apps

Ported Pixel Features

Ported Pixel UI & Colors

Ported Pixel Black Dark Mode

Xperia Sound Enhancements

Xperia Pro-I Content Ported

HTC UI & User Sounds

Xperia Live Wallpapers

Enabled various Android Features

Enabled various Hardware Features

Enhanced Security Support

Enhanced Display Quality

Enhanced Audio Output

Enhanced Audio Input

Enhanced FHD/4K HDR Output

Enhanced Camera Functionalities

Enhanced Graphical Handling & Rendering

Enhanced Network Functionalities

Faster booting and Reboots

Requirements:

Magisk Stable 24+

Android 12 GSI (Pixel Expierence)

[Preferred ARM64 A/B VNDKLITE]

Downloads:

Dev Ice Technologies

WELCOME

sites.google.com

Non GSI related Bugs:

Report them if You found one!

Donations:

paypal.me/miustone
​
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Instructions can be found in the README on GitHub: https://github.com/Miustone/MARS_SOM
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Fixed the main Issue in the Alpha Stage. Beta will come soon :)
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Tabike:
Gcam 6.1. or + could work with this ??
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
The way i do it is to port out the maximum of the Pixel 4 XL Firmwares actually. That could give us the Option to use the native Pixel 4 XL App from the Play Store if all goes right. So no need for a GCam Mod.

But for now should any GCAM Version work (worse or better) if there is any. I wasn't able to get any 6.X or 7.X Cam to work no matter what i did. But well, i never did a GCAM Mod by myself so dunno how hard that would be...
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Tabike:
Oh, that sound amazing, when this project will be in phase beta, I'm installing in my device. Please, when gcam works in your SOM, update the post, you could have a lot of downloads. ☺️
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] jesana1976:
I'm going to follow this project, waiting for more advanced versions to start testing your kitchen
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Tabike:
Hello, how is doing this project? Whats news we have?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Actually i had hard Times caused by a lack of a Windows PC, but i just hacked My Chromebook and installed Ubuntu 18.04 LTS on it. It's all a bit different but it will do the Job now...

Think i will release a first stable Version of My Work next week... Will use the Weekend for Testing and fixing everything :cowboy:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
BETA1 uploading... Reduced to the minimum of my content to solve all bugs. Audio and Performance is improved besides many other optimizations and additions. More to come... Enjoy the Audio Quality <3
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Tabike:
Thanks for this!! Is the audio and performance comparable to the stock software or is there still room for improvement? ?? Can we install gcam now??

Please, describes the audio enhancements.
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
It is what i always did. Adding and optimizing Configuration Entries from all possible android Devices step by step. I'm on around 400 from 1200 Lines currently. I enabled a lot of stuff already but a lot of System Content that is related to some entries is missing actually due to Bugs. I'm taking focus on PHHs AOSP GSI with GApps right now which gives the best Results for Me with the actual SOM Tests of BETA2. The Sound is crazy loud and strong. YouTube plays 4K HDR 60FPS Videos just fine with original YouTube app and the Audio Input and Call Quality should also be better for everyone. There are also Hardware related optimizations and enhancements for the Display, Camera and other Sensors...

You can see all changes on GitHub combined with Googling all the stuff to find out what it does and is for (Mostly). I'm by the way the only Person around the World who has found, combined, documented and tested that many Configs for Android. A lot of little common Tweaks in the last Years are coming from My sharings.

BR

Edit: The Audio Output Quality isn't fully improved yet but i would say it's beyond Stock in terms of quality (even without Dolby). It's with Xperia OS just to generic from SONY without any Love in the Details. Stock was fine compared to a Stock iPhone but there is a lot more possible...
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Looks like i've optimized and improved the Cameras a lot. I have just enabled some CameraAPI2 Functions that are non available on Stock. 4K 60FPS Videos are also no Problem anymore using Open Camera from the best Camera Devolper so far (Open Camera can do anything that Android is able to). Only side effect is actuall that the Devices are getting really hot while playing Media. But think that will be fixed in the Final BETA2...

Edit: Display Color Calibration is also optimized and working on GSIs now including HDR functionality...
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
https://youtu.be/sFTvncOpHDk

Bit quiet ?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
Will be keen to see this progress for the Xperia 1 ii :)
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
BETA2 coming. Fixed all Bugs on Stock. Optimized a lot under the hood. Added Audio functions such as Monitor Rotation (Channels change on base of the actual rotation state), Google Pixel UI with Black Dark Mode, Audio Recorder, Pixel Launcher, Theme Manager and so on. Hope You will enjoy it! A Video Preview is also incoming!

(PS: Please avoid using the Gesture Navigation since it's broken with the Pixel Launcher. QuickSwitch for Magisk may fix that, or you can try to install a third Launcher from the Play Store. Sorry for that!)

[MENTION=1758866]cd993[/MENTION] Thread Comes today. Just need Testers (:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
Can't wait!!

So just to confirm, this is a modded stock rom (with all stock features too) with loads of extra goodies? Or generic gsi made to work for xperia?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
It's what i started on the Nexus 6 and what others started also doing. ROMs without including basic Firmware Parts that are needed to run the System. Or how i call them since i started with the actual Project. SOM (Systemless on Memory). Since all changes can be reverted with the flashing of the same Zip which was used to install it, thanks to the Magisk Module Logic. Reboot and You are on Stock again. Same for Updates. Just go into Magisk, select the new Module and the rest is Magic... Haven't seen such an advanced Zip on the Web anywhere else so i think it's great to be an Xperia User actually :P
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
That's so cool to hear! I currently have a Oneplus 7 Pro, though for many reasons the Xperia 1 ii has enticed me to my first ever Sony device.... and I can't wait. It looks a solid piece of hardware (screen, front speakers, notification light, slim design, cameras, wireless charging etc) and so I am super excited to load a custom rom on it.

So if my understanding is correct, is MARS_SOM essentially a magisk module that is loaded and to revert back to stock, simply disabled?

I love the sound of this, as it keeps all stock features/stability yet adds so much enhancement and tweaks to it!
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
You faced it! And congratulations to Your first and i think the best Xperia ever! Can't wait to get one too since i was amazed by the 4K HDR OLED. The speakers are also brutally good. I really think You will Love it!

I really enjoy Stock too after they did the Beta Firmware Testing in the Past. It's almost really free of Bloat and as Close as possible to Pixels after playing with the Firmwares...

BR! Video will be on My Website under "ABOUT" in some Minutes! Enjoy the Preview ?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
I just saw your video and it looks great!! Loving the stock android feel.

So just to confirm, you haven't lost the stock camera features by unlocking your bootloader? Also given the pixel nature, does gcam work well?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Camera works well. No Noise, no lost functionality so far... I've also added Features to the Sensors. GCam will work well on Your Xperia 1 Mark 2 but isn't on our Xperia 1 and 5s... Hope i can manage to change that soon...
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
Thanks - I'm just seeking reassurance as the last thing I'd wanna do with such an expensive phone is lose such functionality...

So with this website, it says:

What works: Color Gamut profiles, Camera no longer takes green pictures (quality not guaranteed to be the same, but it works at least), White Balance, Camera2API (FULL without RAW for rear camera, LIMITED for front camera)

What doesn’t work: X-Reality Video Enhancement, DSEE HX, ClearAudio+, Widevine L1

So you can confirm that when you unlocked your bootloader, X-Reality Video Enhancement, DSEE HX, ClearAudio+, Widevine L1 all work still? If so, how?

(and thanks again for your help!)
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
That isn't actual anymore. DSEE HX works well just like Dolby Atmos. ClearAudio+ isn't part of the Enhancements anymore (even if it's still in the Firmware) so i can't check that out yet. X-Reality is also no part of the Firmware anymore. Actual Modes are Creator And Standard which do both change the Display Output after unlocking. Widevine L1? No idea... Netflix may not play 4K HDR anymore (Could work again thanks to MARS but i can't test), but YouTube and Prime Video does... So overall, there are no cons anymore like we had on Devices before the Xperia 1 and 5 Series. That was the main Reason for Me to get a Xperia 5 and to keep it as Dev... No DRM Fixes or anything needed. Just as good as before the unlock. I don't even have a TA Backup and don't miss or care about it (:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
This is very reassuring!!

Ohhh maybe I'll just unlock on day 1, or mayyyybeeee I'll just use the device for a few days first and then pull the trigger haha

Thanks mate, I look forward to testing out your releases ?
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Thank You for Your Interest! Enjoy it like it is until You feel the need for more... BETA3 is on the Way and i hope it boots just fine on the Mark 2 too (: Getting more and more excited about the progress i made the last days :mad: Hope it's worth the unlock for You :fingers-crossed:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
Great to know there's already some active rom development being planned ?

I'll be sure to let you know how I get on
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] young79:
:good:amazing rom and i will try it soon
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Glad to hear that! Hope You will Like it...

Mindbreaking. I managed to get Google Play System Updates like on the Pixel or Devices with updateable Apex. Device booted Up fine after applying it... What a Finding... Comes with BETA3
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
Great progress!!
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Looks like i was First again with that. I Wonder how long it tooks til others Copy it without Mentition me Like they did with the Most of My development. Android is a unthankful Open source Project :silly:

But great to know i found somethin Essential again. This could be a big benefit for AOSP ROMs and such which arent getting this Updates from OEMs like Sony (they Patch with Updates instead of the Pixel Method i use). In other words, No more waiting for the OEMs to get Security Updates :good:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] !M4G3:
Hell yeah! Waiting for beta3 . Finally found a reason to unlock this device!
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
So does this mean that we can be on stock roms but still get latest android security updates before sony release them??
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Honored to hear this! BETA3 comes in the next 12 Hours! Just need to adjust some stuff :angel:

In short. Yes. And it's almost crazy that i can say that. Security Patches directly from Google on a SONY Device running Stock :silly:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] TrustAugustus:
This is very impressive. Congrats on all your work. If this were a more popular device you would have your recognized developer status.

I'm gonna unlock my bootloader now
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
I've got mine xperia 1 ii!

I can already see that I'll be unlocking mine soon haha there's a little bit of bloat and I already miss root haha but will wait a short while.. Maybe..... Haha
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
Directly in My Heart! Thanks for this Words!

Hope all goes well for You!

Awesome News! Congrats! :highfive:

Take Your Time! But can't wait to hear MARS booted Up on Your Device. I will keep Up Discord for You so we can stay in contact in Case somethin goes wrong or so:fingers-crossed:
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
[MENTION=4756773]Miustone[/MENTION]

Unfortunately I've not been able to root my new Xperia 1 ii as I can't obtain the UK O2 firmware in order to get the boot img to patch - Xperifirm hasn't got it yet! :(
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] Miustone:
You can use the EU Firmwares which are unbranded. I did the same with My Xperia 5 Device from O2 Germany. Only requirement is that it Matches the Model Numbers of Your Device

Edit: You should also flash the Firmware If You want to use the Kernel / boot Image of it
[Sony Xperia 1 ROMs, Kernels, Recoveries, & Other D] cd993:
Do you know where else/how else I can get the firmware? On Xperifirm, only XQ-AT52 is showing with Hong Kong, Taiwan and Internal firmwares - no UK ones or even EU...

I'm mindful that's for the dual sim, which I only have the single one... I don;t wanna break anything! Though I am unlocked ready at least!