yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Dirty Unicorns Semi GSI for Samsung Devices

By CodeFox & OpenSauce9810
​

I'm no longer maintaining this thread, check the note 9 thread here for latest updates

What is this?

This is a Semi Generic System Image. That means it's a generic system image that's been optimized as much as possible for our Samsung Devices.

How the heck do I flash this?

It's slightly different than flashing a zip, so here's what you need to do.

Download the image file

Flash Endurance GSI Kernel in TWRP

Flash BRJ6 Vendor

Flash the System Image to your System Partition

Optional if you want root (but reccomended): Reboot to recovery again then flash your choice of Magisk. I use 17.1 as I can get galaxy wear to work with that version.

Reboot your device and you should be good to go! No need to flash gapps as they're included.

03.12.2018

Initial Release

05.12.2018

Updated sources to 9.0 r21 release. (December Security Patch)

Gapps included, (dialer and messenger also included so you won't start without a phone or sms app)

Bootanimation changed to reduce boot times

Tweaks to ambient play ticker so it clears when you clear media notifications

Further performance tweaks thanks to @malinathani animations transition smoother now.

06.12.2018

PHH Settings Removed.

Dual Speaker permanently integrated, will always persist and no longer needs to be activated.

Enhanced brightness ranges permanently integrated.

Sync latest DU Sources

Potential ratio fix for S9/S9+ Devices.

Screenshots

Video Review Thanks to @vmb265

Click here to view video review

Downloads:

BRJ6 Vendor

System Image GDrive

Endurance Kernel Thread (Use the GSI One)

Support & Feedback

I'm happy to provide as much support as possible. Through XDA here or you can get in touch with me and the rest of OpenSauce9810 + our community at our Telegram group here

If you're happy with the work I've put into this (endless amounts of hours trying to perfect GSI building) then a simple thanks here or clicking the thanks button below is very appreciated! Donations are always welcome too, I've got electricity bills to pay!

Credits and Thanks

Dirty Unicorns (The best ROM ever)

Ivan - Thank you for helping me out every now and then when I'm being stoopid.

Rainbow_Dash - Pointing me in the right direction with regards to fixing the errors.

malinathani- For the UI Jank Fix (Used widely in other GSI's now)

GRaf - best tester

The guys in telegram as a whole, thank you for the feedback and support.

phhusson - thank you for your work on project treble.

XDA:DevDB Information

[sGSI 9.0]Dirty Unicorns[UNOFFICIAL][06.12.2018][S9/S9+/N9], ROM for the Samsung Galaxy S9

Contributors

CodeFox, Rainbow_Dash, malinathani, Ivanmeler, phhusson, Dirty Unicorns

Source Code: https://github.com/DirtyUnicorns/android_manifest

ROM OS Version: 9.x Pie

ROM Kernel: Linux 4.x

ROM Firmware Required: BRJ6 Vendor

Version Information

Status: Stable

Current Stable Version: 1

Stable Release Date: 2018-12-03

Created 2018-12-03

Last Updated 2018-12-29
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
System image link goes to wrong file?
[Samsung Galaxy S9 & S9+ Cross Device Development] GuestK00316:
here https://drive.google.com/file/d/1REhuxpQ16VlDepJJKLH1FYMxZ7bwy0S7/view

ot will be updated when hes back
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
Installs, boots, sim pin ok, but sim menu in settings fc, no network. Kernel, vendor from 1st post
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Download link updated. Sorry.
[Samsung Galaxy S9 & S9+ Cross Device Development] GuestK00338:
Is nightmode present? couldnt find it on the beta
[Samsung Galaxy S9 & S9+ Cross Device Development] Ronam:
I've installed it, boots, but no apps in the launcher, just Files, Settings, SIM Toolkit. WTF?
[Samsung Galaxy S9 & S9+ Cross Device Development] Mihalaki:
You need to install GAPPS 9.0 after rebooting into recovery following install of system image. This should be mentioned in the instructions.

Then you will get the usual install section after boot up and the usual google apps etc. I used GAPPS 9.0 nano.

All working well on my S9+.
[Samsung Galaxy S9 & S9+ Cross Device Development] Ronam:
Thanks, now everything works fine ;).
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
My bad. It's copy pasta from my PE thread. I'll update it tomorrow. It's a bit of a nightmare I've got so many threads to maintain haha.
[Samsung Galaxy S9 & S9+ Cross Device Development] Ronam:
Is there any way to use edge screen notifications?
[Samsung Galaxy S9 & S9+ Cross Device Development] mackeftw1:
Best rom atm! Perfect to set it up just the way you want it without bloat apps.

Just had to change Product.model to pixel xl in build props to get higher quality on Facebook vids.

Anyways, New daily for me. Thank you. ?
[Samsung Galaxy S9 & S9+ Cross Device Development] costinghe:
I can't flash the system image . Why is it ending in .xz ?
[Samsung Galaxy S9 & S9+ Cross Device Development] techenthusiast:
Its a compressed file, I just used 7zip to extract it.
[Samsung Galaxy S9 & S9+ Cross Device Development] Danish2980:
Is Bluetooth working for you?
[Samsung Galaxy S9 & S9+ Cross Device Development] a_swed:
which camera you're using on this ROM?
[Samsung Galaxy S9 & S9+ Cross Device Development] techenthusiast:
Didn't work for me, had two issues:

-Internal Data not being seen

- No network connection

- Says not to flash gapps, but it is needed as nothing is installed.

For me now, this isn't a usable ROM.
[Samsung Galaxy S9 & S9+ Cross Device Development] mackeftw1:
Yes. Using endurance gsi kernel :)
[Samsung Galaxy S9 & S9+ Cross Device Development] EagleSoldier:
nvm :D

I thought its PE thread

On PE BT wont work with GSI kernel
[Samsung Galaxy S9 & S9+ Cross Device Development] Redmanha:
Fingerprint in 3rd-party-apps

Hello [MENTION=9350973]All[/MENTION],

i installed this good rom on my G965F and everything is working - BIG thx [MENTION=507649]devs[/MENTION]...

I have only one question/issue: With my registered fingerprint i can unlock the screen - this works perfect, but in 3rd-party-apps i get an error with fingerprint and i cant use my fingerprint in these apps (e.g. banking app). Anyone know how to use my fingerprint in 3rd-party-apps? This is not working on all Pie-(s)GSI, not only on DU...

Greetz

Christian
[Samsung Galaxy S9 & S9+ Cross Device Development] WalterSilverio:
when I install gapps 9.0 (sdk 28), it says error, and I need to install the gapps of 8.1.0 (SDK 27), why does this happen? Is not it supposed to be Android Pie base?
[Samsung Galaxy S9 & S9+ Cross Device Development] Mihalaki:
I used Open GApps Project version downloaded from their website: ARM64-9.0-nano and it worked fine.

Did you remember to reboot into recovery after the system image installation and then install the GAPPS? If you don't do this firstly you get an error.

Also make sure you are using the latest TWRP.

S9+
[Samsung Galaxy S9 & S9+ Cross Device Development] WalterSilverio:
ok, I'll try and let you know.

---------- Post added at 10:54 PM ---------- Previous post was at 10:48 PM ----------

which are the important options when making a backup in TWRP, is because I see that some partitions weigh a lot and when I select them all they occupy around 20GB, which of them are not important?
[Samsung Galaxy S9 & S9+ Cross Device Development] smerm07:
does this work with microg?
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
New build released. see OP for details.
[Samsung Galaxy S9 & S9+ Cross Device Development] fattymcdirty:
Is Atmos working on this one? Or even Stereo Speakers?

Is saw a new release from phhusson yesterday, Build 1.08 - is your ROM based on this one?

Or is it completely based on your own sources?
[Samsung Galaxy S9 & S9+ Cross Device Development] adeviss2:
Hi. How do I change the nav ? I want the gesture ones from Pixel like in the screenshots

[IMG="home"]https://i.ibb.co/cvr5bwz/Screenshot-20181205-125130.png[/IMG]
[Samsung Galaxy S9 & S9+ Cross Device Development] WalterSilverio:
Settings/System/Gestures/Swipe up on Home button and enable firts option to get pixel gestures, personally I also like to activate full gesture mode, but that depends on you.

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

in the initial version,

*The file transfer does not work for me, (it just does not appear on my computer)

*I notice little volume in the speaker, (I guess it has to do with dual speaker stereo, it does not work for now)

I do not say this in the form of a complaint, this ROM is fantastic, I liked it a lot, I only share my personal experience of the things that do not work for now, I hope you continue working on them, thank you very much!

PD:in the new version are they working? and, just need flash system image to dirty flash?
[Samsung Galaxy S9 & S9+ Cross Device Development] smartphone_lg:
please let me ask this rom whether to use google pixel camera? does it work?
[Samsung Galaxy S9 & S9+ Cross Device Development] costinghe:
Yes IT does . Try IDan gcam
[Samsung Galaxy S9 & S9+ Cross Device Development] fattymcdirty:
Stereo speakers definitely not working on S9 exynos, although it's enabled in treble setting. Did you use phh's latest release? Because it's working on his version..
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
I've posted a new build today.
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Which build? I posted a new build today which removes phh settings.
[Samsung Galaxy S9 & S9+ Cross Device Development] fattymcdirty:
Uh. Why remove phh settings?

So stereo speakers are DEFINITELY not working with the new build? :)
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
Aspect ratio borked too for older apps
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Stereo speakers are working... I've altered the source to be persistent. They're active from first boot and remain active.
[Samsung Galaxy S9 & S9+ Cross Device Development] :
Read the changelog first next time, the developer pretty clearly states what changes were made.
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Bah. I tried. The damn app developers need to update their apps to be honest.
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Nice first post haha. Welcome! :)
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
No, why remove features that's useful?
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
They're not removed they're permanently enabled. So the PHH Settings app is now obsolete. How is that hard to understand? The OP makes sense?
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
Functional on phh aosp but not on this sgsi. So something is not correct then
[Samsung Galaxy S9 & S9+ Cross Device Development] mvalcar:
Working for g9650?
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
It's working for everyone in the telegram group so you're doing something wrong or you're not on the latest build I uploaded yesterday.

It should do as far as I'm aware.
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
No. latest build is the one with the non functional aspect ratio.

Edit: Ok, found an workaround for the affected apps: https://xdaforums.com/showpost.php?p=76010489&postcount=23
[Samsung Galaxy S9 & S9+ Cross Device Development] denis_crossbow2:
How long does it take to boot for the first time? I have installed everything according to the instruction, after first reboot I've seen Google logo and loading line for about 5 mins., after that I've been taken to TWRP automatically. I've made reboot again and now Google logo is loading for about 20 mins., feeling nervous...

---------- Post added at 07:59 PM ---------- Previous post was at 07:50 PM ----------

And "G" logo while loading is located in the right bottom corner of the screen
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
Alright, tried this rom. Well... not really what i was expecting but ok. First when you lock the phone, it does some weird glitch animation. Second dual speakers are not working, huh. Third when you reboot there is a popup that says your device has a problem. Fourth the brightness control is still wonky. I know i may be going too much but those things really annoy me
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Do bear in mind that a) this is a generic system image. It will never be flawless. And b) Dirty Unicorns only put out a release candidate last night and they're still not calling it an official release. It's still very much a work in progress. Custom pie Roms are still in the early days of development.

I don't know how it is on s9/s9+ but for Note 9 everything is pretty much flawless other than the wierd glitching when you lock the phone.
[Samsung Galaxy S9 & S9+ Cross Device Development] fattymcdirty:
How does this dual speaker mod actually work on our s9?

Reason for asking is: I tried the following dolby digital mod.. which actually works and sounds really nice, BUT: it disables the dual speaker setup :(

https://xdaforums.com/android/software/mm-p-dolby-digital-plus-arise-20181115-t3868192
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
Yeah..... I wish someone would make an android pie rom for the galaxy S9 plus specifically (not you... ehh)
[Samsung Galaxy S9 & S9+ Cross Device Development] EagleSoldier:
Make your own rom and stfu.

New member on XDA and no respect to devolopers.

You got reportet, I hope your acc will be closed
[Samsung Galaxy S9 & S9+ Cross Device Development] smartphone_lg:
I agree with you
[Samsung Galaxy S9 & S9+ Cross Device Development] TarekElsakka:
"Flash the System Image to your System Partition" I am stuck in this step. When I try to flash the system image file I downloaded "CodeFoxDU061218.img.xz" TWRP doesn't seem to detect it inside the folder. I tried choosing "Install Image" as well as "Install ZIP" but neither of them detect it. What can I do about this?
[Samsung Galaxy S9 & S9+ Cross Device Development] Redmanha:
the xz-file is compressed, uncompress (with e.g. 7zip or winrar) the img-file and flash this in twrp
[Samsung Galaxy S9 & S9+ Cross Device Development] namezz:
If i want to go back to oreo to install a other rom do i need to flash back to stock first and then install twrp again?

I really dont like the android 9.

Anyone know perhaps?
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
If there was a stable device tree that was able to build device specific ROMs then I would have been happy to do so. We've already been attempting to do so, but they've been too unstable to release. I don't even have an s9 or s9+ but I'm supporting them in my sGSI's for people that do. Some people are so ungrateful.
[Samsung Galaxy S9 & S9+ Cross Device Development] Wogleb12:
[MENTION=6022102]CodeFox[/MENTION] I love this rom everything is working to a high standard a few nit picky bits here and there but easily my next driver until further notice ?
[Samsung Galaxy S9 & S9+ Cross Device Development] gogoffm:
Which camera is built in?
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Thank you, I appreciate the feedback :).

I don't think there's one built in to be honest with you. I didn't want to package opencamera because it's awful. I recommend you use idans Gcam. Don't forget to flash the library for your device too.
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
Chill y'all what's wrong

I thought XDA was a nice place tbh
[Samsung Galaxy S9 & S9+ Cross Device Development] Eamo5:
It mostly is if you don't disrespect another person's work who has been as generous to give up their time to develop for a device they don't even own. If you could provide anything remotely constructive, perhaps it wouldn't be dismissed as hate so quickly.
[Samsung Galaxy S9 & S9+ Cross Device Development] EagleSoldier:
Its a nice place tbh.

But guys like you make it not so nice TBH

EDIT: when u dont know what Im talking about...read your last commits ;)
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
You know what... Because you're a senior member, you have more experience than me. So, because I'm a new member, why not give an advice in a nice way? You really have to be like that?

---------- Post added at 12:59 PM ---------- Previous post was at 12:58 PM ----------

Oh ok
[Samsung Galaxy S9 & S9+ Cross Device Development] shiva_rawlley:
Stuck on samsung boot logo. Please help on what should I do. (Currently on BJR3)

Steps taken:

1. Installed lattest twrp.

2. Installed GSI Kernal

3. Install BRJ6

4. Install the image on System.

Since then i have just been getting boot loop.
[Samsung Galaxy S9 & S9+ Cross Device Development] Wogleb12:
Wipe it
[Samsung Galaxy S9 & S9+ Cross Device Development] Hellrazoraj:
Does volte work in this?
[Samsung Galaxy S9 & S9+ Cross Device Development] denis_crossbow2:
What's the difference between this rom and "pixel experience" one?
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
1. Wipe system, data, cache, dalvik

2. Flash system img into the system partition

3. Reboot into TWRP

4. Flash the GSI kernel normally

5. Flash magisk

6. Reboot

It might reboot two times btw
[Samsung Galaxy S9 & S9+ Cross Device Development] Gilbert_vanguard:
Any comments on the camera performance?
[Samsung Galaxy S9 & S9+ Cross Device Development] Vmb265:
It's great! Gcam has HDR+ and Both Front and back Portrait mode

---------- Post added at 12:27 PM ---------- Previous post was at 12:27 PM ----------

No

---------- Post added at 12:28 PM ---------- Previous post was at 12:27 PM ----------

Pixel Experience has Pixel 3 like software with all wallpapers and Google apps preinstalled and Dirty unicorn has more customization options
[Samsung Galaxy S9 & S9+ Cross Device Development] Alt34:
Help please, how to "install the image on system" ?? I downloaded it, but it doesn't appear...
[Samsung Galaxy S9 & S9+ Cross Device Development] Redmanha:
You must open the *.xz-file with a zip-program and extract the *.img-file - this you can flash with twrp
[Samsung Galaxy S9 & S9+ Cross Device Development] Alt34:
I'm just plain stupid I swear, thanks for helping me anyway !
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
OP updated, I'm no longer updating this thread as it's maximum effort. I've linked to the Note 9 thread which is more up to date.
[Samsung Galaxy S9 & S9+ Cross Device Development] shorty.marten:
Hey there, i need the PHH settings too, cause some apps need the "Compatibility max aspect Ratio" set to "Infinite". Otherwise the apps are having ugly black stripes and 2 corners are round. Please brings them back.
[Samsung Galaxy S9 & S9+ Cross Device Development] gsser:
I have already mentioned it cause i use many custom apps. Dont think its coming back. Pretty sad about it cause du and pe sgsi roms are the best in terms of performance. I dont really rely on antutu but i got 275k with pe which is the top score i got...
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
phh said there was a lineage related commit which prevents this setting from working. So even if I brought back the phh settings to be visible even changing the setting wouldn't change anything. The fix is currently incompatible I'm afraid.
[Samsung Galaxy S9 & S9+ Cross Device Development] shorty.marten:
His settings worked for for KODi, for example. It is only not working in Pixel experience roms, thats right. But in this rom, it was perfect working, like in phh treble vanilla rom. :good: Where could i download older builds of your Dirty Unicorns rom?
[Samsung Galaxy S9 & S9+ Cross Device Development] CodeFox:
Latest builds can always be found in our telegram. Link is in the OP. Just posted a new build there today.
[Samsung Galaxy S9 & S9+ Cross Device Development] KHold01:
I downloaded the latest build from telegram. After the boot animation all I get is a black screen. Device functions only to turn off. I was able to flash back to older build. S9+ with GSI Endurance Kernal.
[Samsung Galaxy S9 & S9+ Cross Device Development] shorty.marten:
+1

Newer GSI builds have stopped working for s9. last working is DU131218

Still no fullscreen mode on all OpenSauce Roms. I'm back on phh's AOSP Rom.
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
And is phh rom better?
[Samsung Galaxy S9 & S9+ Cross Device Development] shorty.marten:
Yes, it is the best rom for me since the pph settings where removed in DU. Kodi ist running in full screen mode with phh treble rom, when the "compatibility max aspect ratio" is set to inifinite under "misc features". The phh treble rom ist running stable with the YEET Kernel from Pixel Experience 9.0 V3 thread by rainbow dash.
[Samsung Galaxy S9 & S9+ Cross Device Development] piticrobert27@gmail.com:
System image file download link pls?
[Samsung Galaxy S9 & S9+ Cross Device Development] LavaSnake54:
Performance good and dual speakers working with the yeet kernel and phh rom?

---------- Post added at 07:24 PM ---------- Previous post was at 07:23 PM ----------

The whole team decided yesterday to delete all their sGSIs for some reason
[Samsung Galaxy S9 & S9+ Cross Device Development] piticrobert27@gmail.com:
how has system image please update and give me a link
[Samsung Galaxy S9 & S9+ Cross Device Development] NisseGurra:
Bit offtopic, but for functional GSI try RR: https://xdaforums.com/project-trebl...pment/gsi-resurrection-remix-o-6-1-0-t3811299

Best i gsi i found for S9 so far.
[Samsung Galaxy S9 & S9+ Cross Device Development] shorty.marten:
Yes, dual speaker is working with YEET kernel, and all other samsung specific things in PHH settings. Performance is the best under Pie.

Link to rom: https://xdaforums.com/project-treble/trebleenabled-device-development/aosp-9-0-phh-treble-t3831915

Link to Kernel: https://xdaforums.com/galaxy-s9/sam...elopment/9-0pie-pixel-experience-9-0-t3853351

It should be a separate thread for PHH AOSP Rom.
[Samsung Galaxy S9 & S9+ Cross Device Development] CrazyBeaver2377:
Truly the best rom i have ever tried, excluding the masterpieces of iqbal sareem of course.

Thank you so much for maintaining this thread like a boss foxy!
[Samsung Galaxy S9 & S9+ Cross Device Development] gsser:
Good rom my dude. Thanks for your efforts...
[Nokia 7 Plus Questions & Answers] Gaber92:
Hi, I purchased this phone only last week, and I wanted to update it straight away, but it dowsn't find any updates, either for the security patch or the pie update. ATM I have security patch february 2018 and Oreo 8.0.0. The icon of the security patch is orange with an exclamation mark in the middle, so I believe I should update it. What do I do?
[Nokia 7 Plus Questions & Answers] Viznu93:
I have heard that the OTA update servers are down at the moment for N 7+ ... Its been a week though.
[Nokia 7 Plus Questions & Answers] ArunPR:
Thanks. For this information
[Nokia 7 Plus Questions & Answers] Stransky:
Strange that the servers for N7+ are down just when owners in UK are still waiting for OTA update to Pie or the Nov security patch for Oreo 8.1. HMD are getting worse on the updates, only got the Oct update mid Nov and it is now only 3 weeks to Christmas. Before we know it, it will be 2019 and still no Pie
[Nokia 7 Plus Questions & Answers] NahuelMS:
Why you just no sideload it??
[Nokia 7 Plus Questions & Answers] trveller72:
https://xdaforums.com/nokia-7-plus/development/ota-nokia-7-plus-ota-links-t3818774

There is still hope.

I am glad that I sideloaded Pie in Sept (or October, can't remember).
[Nokia 7 Plus Questions & Answers] Stransky:
Tried thst, renamed file as per post and started installation but got Installation failure error. Am currently on Oreo 8.1 with Oct security patch so maybe that is the reason the update will not install.
[Android Studio] Mytthie:
Hello some time ago I installed some custom ROM into my phone but when I want to start it it writes "Your device is booting now... and nothing happens few time later it restart and again in Fastboot menu i have red PHONE Unlocked and green FRP Locked. Iam willing to do everything to make it works again. Its Honor 7 lite (NEM-L21_C432B100).

Please help, thanks