yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xlcashlx:
I think this was because of markakesh's latest changes on the kernel and device tree. https://github.com/markakash/device_xiaomi_cepheus/commit/0238fff2280db104c46cc65297cd14883cdafcfe

I updated the lineage and aex tree based on these changes, so you can run repo sync and try again.

There's no guarantee that I'll maintain those forks in the future, so it might be better for you to fork markakesh tree and apply https://github.com/cjekel/device_xiaomi_cepheus/commit/8c80586d06a7af45bc1d64728bce71ff6feeec26 to port it for lineage
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] _MartyMan_:
I'm not skilled enough in these things.... I'll try it anyways, thank you again. :good:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] ZoiraP:
IPlease, if you wish to build ROMS you need to read errors an understand it , cuz almost everytime errors are pretty clear and easy to solve. If you need more hlpe PM me.

---------- Post added at 06:32 PM ---------- Previous post was at 06:29 PM ----------

Whats the reason about having two same repos with the same commits? i dont get it.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] MoonMaker:
I was only waiting for a useable LOS release in order to switch to the new phone. All these other ROMs are not satisfying my needs. Thanks!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] fagyi:
Im using my built as daily, of course without fp for now Other than for me its fine and running well.

Will look the fp later
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] MWPau:
Lol now getting segfaults during kernel build.... this is fun :eek: :crying:

[ 6% 6991/106450] Building Kernel
FAILED: TARGET_KERNEL_BINARIES
/bin/bash -c "(PATH=/android-dev/android/lineage/prebuilts/clang/host/linux-x86//bin:\$PATH LD_LIBRARY_PATH=/android-dev/android/lineage/prebuilts/clang/host/linux-
.....
Kernel Modules\";	PATH=/android-dev/android/lineage/prebuilts/clang/host/linux-x86//bin:\$PATH LD_LIBRARY_PATH=/android-dev/android/lineage/prebuilts/clang/host/linux-x86//lib64:\$LD_LIBRARY_PATH make -j1 -C kernel/xiaomi/sm8150 O=/android-dev/android/lineage/out/target/product/cepheus/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"arm-linux-androideabi-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\" clang\" modules;	fi )"
make: Entering directory '/android-dev/android/lineage/kernel/xiaomi/sm8150'
make[1]: Entering directory '/android-dev/android/lineage/out/target/product/cepheus/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Segmentation fault (core dumped)
arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
CHK include/config/kernel.release
UPD include/config/kernel.release
Using /android-dev/android/lineage/kernel/xiaomi/sm8150 as source for kernel
/android-dev/android/lineage/kernel/xiaomi/sm8150 is not clean, please run 'make mrproper'
in the '/android-dev/android/lineage/kernel/xiaomi/sm8150' directory.
/android-dev/android/lineage/kernel/xiaomi/sm8150/Makefile:1160: recipe for target 'prepare3' failed
make[1]: *** [prepare3] Error 1
make[1]: Leaving directory '/android-dev/android/lineage/out/target/product/cepheus/obj/KERNEL_OBJ'
Makefile:146: recipe for target 'sub-make' failed
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Face unlock working?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] ZoiraP:
export ARCH=arm64

export export CROSS_COMPILE=aarch64-linux-android-

run mk mrproper

and restart build without touching kernel root
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zydalili:
Can I use this without installing gapps?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] fagyi:
Yes. Los its bootable without gapps.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Camera and flashlight not working for me
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Potato997:
Hi, would you mind sharing your sources? Thank you
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zydalili:
I installed it without gapps and rooted it

the bugs that I noticed is the notch cutout shape is not fit and the notification sound is like cracky but the media sounds are fine

I also can't make the Gcam work

but other than that it is working as intended

Thank you for your hardwork man :D
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] WhiteCloud24:
have you pushed your source, in the end?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zls8635878:
This ROM battery is very power-intensive. I don't know what happened.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Still waiting for it :crying:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] arellewen:
Just use Cosmin version https://t.me/mi9aospupdates
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Topogigi:
I second that. Installed yesterday and working fine since then.

Fingerprint works, NFC and Google Pay working without problems with magisk hide and patch.

Google camera is good (urnyx latest version), and I istalled ANX camera too via magisk module.

Until now, the best aosp-based rom I ever tried. Will let you know about battery life.....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Are gapps included or must you flash separately? Also, which vendor /firmware are you using?

Cheers
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] KaiseRRUby:
Yeah,

Could someone give me the steps how to flash?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] stoffelsen86:
I guess this will work, i did this with beastrom

Flashing instructions:

1.	Delete everything in TWRP except vendor. I'm on latest vendor 9.7.11.

2.	Format data (confirm with typing 'yes')

3.	Restart recovery

4.	Install rom

5.	Wipe cache / dalvik

6.	Restart system

7.	When system started turn back to recovery for installing gapps

8.	In TWRP resize system partition to install micro gapps.

a.	In TWRP tap wipe

b.	Advanced wipe

c.	In the list of partitions tick system

d.	Tap repair or change file system

e.	Tap resize file system

9.	Install micro gapps, now you don't get an error because you changed the system partition size.

10.	Wipe cache / dalvik

11.	Restart system and configure it as you wish

* you can also try other gapps if you wish.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] KaiseRRUby:
Gonna try that. One more question, how do i know which vendor i'm on and how do i update the vendor?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Topogigi:
Gapps have to be flashed separately (I used the opengapps super with a personalized gapps-config made to load only what I need)

Vendor and firmware are the latest from xiaomi.eu
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Vendor same version of your global rom
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Cheers, one more thing... Is face/smart unlock working ok?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Face unlock no smart yes
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Face unlock is working, just flashed this rom. Only thing I can't see an option for is to skip the lock screen once unlocked with face unlock. Damn.

OTG USB not working either, forces phone to reboot.

Other than that it's a really sweet rom - love the wallpaper and look too. Good job [MENTION=5994357]Cozzmy13[/MENTION]!

---------- Post added at 07:17 PM ---------- Previous post was at 07:07 PM ----------

[MENTION=5994357]Cozzmy13[/MENTION], when do you plan on releasing the rom on xda and providing a thread about it? Is there any way to go directly from faceunlock to home screen, skipping the swipe up from the lock screen? Cheers very much for this rom!!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] bernd_the_show:
Is there a thread, buglist and/or changelog for cozzmys los?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Where is face unlock????
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] PriPhaze:
Why is everyone always recommending to format data every single time you flash a new ROM?

There's no need for that when almost all ROMs out there support encryption.

You do it Like this:

2. Don't format data just wipe dalvik cache, system, data.

3. Don't restart recovery or else you won't be able to decrypt ur files since there no system anymore, just flash your Rom right away after wiping the above mentioned partitions.

4 You flash gapps right away after ROM , NOT after first boot since that create problems.

5. No need to resize anything
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] badaas:
Which gpay magisk patch please? Country UK?

Many thanks!

/Hugs
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Under smart lock,, but once face recognition is in place you must still swipe up to unlock from lockscreen
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] PriPhaze:
Loving this rom, the FP works much better than with PE and also there's pretty much no bugs whatsoever so far.

Although I don't use NFC so I don't know if gpay works or not.

But camera is working good , and it feels snappy.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
I agree, it's great. Face unlock works quickly, just wish there was the option to skip lockscreen after face unlock
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Topogigi:
This is the patch required for Gpay:

1. Open Magisk Hide and select Google Pay and Google Play Services.

2. Through RootExplorer or similar, change the permissions of the dg.db file in the /data/data/com.google.android.gms/databases directory to 0440.

Anyway, you need to verify at first if your device passes the safetynet check (if not, you can achieve that by installing the MagiskHide Props Config module and configuring it properly)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] badaas:
See my post here for full fix it needed: https://xdaforums.com/Mi-9/how-to/beastrom-t3949325/post79927408
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
I am don't have it(
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
You need to use nano gapps or micro gapps and above when you first set rom up. Sorry I forget which one is the minimum. Perhaps you used pico or other..

I used bitgapps from xda and all works well
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Thank you i will try
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Thanks working
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Cool, good to hear :svetius:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] stoffelsen86:
:good:

I do not recommend anything, I just told how I did it. Everybody is free to do it his own way. I like it to completely wipe my phone before I install a new that's why I format. Also with gapps I noticed a problem when I flash it right away so that's why this worked for me.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
If you use bitgapps from xda then there's no need to resize partitions. Maybe the same for smaller versions of gapps
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] stoffelsen86:
Yes, that's right. Thanks for the bitgapps tip didn't know about that. I use micro gapps for face unlock and pixel launcher and other apps. With micro gapps it's necessary to resize system partition.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] crazybill:
Which ROM are you referring to? Cosmy's LOS build?

How is the battery standby, sot, etc?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] PriPhaze:
Yes that one

Battery is OK but it isn't that great. I still get some around 10% standby drain during night.

SoT was around 5hrs

But the good thing of thus is that the FP works Like 95% of the time no problem which in PE is just really bad.

I don't mind about that battery drain considering it gets me through the day no problem.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Sicily98IT:
Hi guys,

Why I've all this wakelock?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] crazybill:
Hi.

I'm still on the fence about leaving ROS MIUI. There are some stuff MIUI has which I really like:

1. built-in phone call recording - using a custom rom removes the integral implementation, and I'm not sure 2-side recordings are even possible under android 9 ROMs in general (thanks Google!) unless you use the speaker (in many cases this isn't an option)

2. video screen recorder - there are alternative apps in the play store

3. scrolling screenshot capture - there are alternative apps in the play store

4. stock MIUI camera for better video, time lapse and panorama mode - I think ANX should be the same

5. built-in simple video editing - I think ANX + installing mi video will solve this

6. Battery life! Yes, the mi9 isn't the best but it's quite OK using MIUI ROMS with some debloating and TB freezing. This is probably worse in all custom ROMS.

How would you address my above remarks?

I guess the answer to 1 is a resounding 'too bad' and to 6 is 'worse, but not too bad'.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Chrisgia:
I also wanna know if ANX Camera on AOSP Roms is the same as the stock camera ? And are there no bugs / missing features ?

EDIT: Nevermind, I just saw there's an official website with the bugs stated. Link for those interested : https://camera.aeonax.com/#bugs
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Slow mo not working

On miui photos little better than anx
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Chrisgia:
Thanks for the information !

That's what bothers me with AOSP Roms right now, I don't wanna lose the camera quality / features which I find really good out of the box.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
I am thinking this will be fixed soon

If you want normal all features working i am recomending ros
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Chrisgia:
Yes, it's what I'm currently on haha thanks :good:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] ibeppo993:
when is the latest version released?

will a stable version come out?

thanks
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xerves78:
developing stopped ?

no new release since may
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Read a few pages back, there's a link to telegram latest rom from 14/07

---------- Post added at 11:36 PM ---------- Previous post was at 11:36 PM ----------

See above comment
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xerves78:
thx, but only a channel ?

no group for mi9 aosp ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Only for lineage os
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] fagyi:
If someone want test my latest upstreamed kernel here you go. ( Im used on los, but should be working on any pie roms )

This flashable zip only replace the kernel image on your boot.img so nothing other changes!

Upstreamed to caf 4.14.134

Also few eas patches from upstream, Klapse, dynamic ShedTune, scheduler improved, wireguard, maple, zen, fiops, sio io scheduler, unlocked some tcp algorith, other some optimizations.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] M1LL3R:
Just tried it on PE and after flashing it goes straight to fastboot.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] miguecabra:
Is it useful for miui too? Or only in aosp?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] fagyi:
Based on miui kernel source, i think its compatible with that, but havnt tried with that, only with los.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] CrazyBeaver2377:
Why are you not creating your own thread linking to your sources so we can see what this actually is and who all of the authors are?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
What ? Do you mean that's he is kanger ? Be cool honi
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] morganland:
For whom that are trying Lineage,

can it be used without significant bugs in daily usage?

Thanks!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] gianton:
Give it a try and find if it's good for your needs.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] fagyi:
https://github.com/Fagyi/kernel_xiaomi_sm8150/commits/lineage-16.0

I havnt kanged anything, lol xD

I just make it bootable the latest for you.

I have no bugs for now yet

Do you think im a noob? XD

Maybe an later time focus to cepheus instead of my htc 10.

---------- Post added at 06:56 PM ---------- Previous post was at 06:47 PM ----------

In my option yes. I have no bugs with that.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] unrated87:
With latest cosmin los i have No WiFi
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Install correct vendor
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] morganland:
Which is best way to install LINEAGE OS starting from latest MIUI GLOBAL?

Thanks!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedbg:
Kernel works great on aosp pie rom, thanks
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Format data

Install vendor from telegram

Install lineage

Install gaaps

Install all you need

Wipe cache and davlik

Reboot
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] brifal13:
goes to fastboot
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xerves78:
very good, the link ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
https://t.me/mi9aospupdates
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xerves78:
this is only a channel, not a group

channel = only reading

group = talking about the rom, bug reporting, ...

---------- Post added at 09:53 PM ---------- Previous post was at 09:51 PM ----------

link to the vendor file ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] reg66:
Try [MENTION=8870653]mi9[/MENTION]aosp
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xerves78:
thx
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Thanks, it works on MiUi EU 9.8.1 after flashing your kernel.

Kris
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Well, I flashed in MiUi EU 9.8.1 and everything works great just only WiFi cannnot be turned ON...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xerves78:
i must flash MiUi EU 9.8.1 before flashing los 16 ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Even I flash LOS 16 and flash ICEMAN.ZIP New Kernel ... Wifi still cannnot be turned on ... It seems that wifi driver's issue ? Or ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Krullendhaar:
So when is one supposed to format data?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] supergonzo74:
Hello everybody,

I'm an absolute newbie regarding the mi9. Flashing latest build from cosmins telegram channel to me it seems the os is unable to decrypt /data because after booting the fresh install each and every app failed starting. After formatting /data in twrp everything works fine - but now with an unencrypted /data.

So can anyone confirm or dement on wheter encryption is possible with this build or not?

Best regards

supergonzo
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] PriPhaze:
You guys need to format data once and that's it.

As long as you don't flash stock miui again then u should be able to jump through different roms that support encryption.

Anyways, i sold my Mi 9 Transparent and went with One Plus 7 due to the lack of developing here so i can't help you any further.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] supergonzo74:
Really sad to hear that you sold your phone and cannot help us here in the future - but two final questions:

By formatting /data from recovery you will be loosing encryption for this partition? And if this assumption is correct, how can you get encryption back in case you want it again -> flash original MIUI?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Chrisgia:
I just thought about doing this because I saw the OP7 at a good price. I initially bought the Mi 9 because it was cheaper than the OP7, but now I could maybe sell the Mi 9 and get the OP7 for the sold price or just a little bit more.

Anyways I saw that the developing thread of the One Plus 7 (not pro) is even emptier than Mi 9's, and I think things are looking good for Mi 9 development now. I guess you could say that with OP you get fully working OxygenOS out of the box which is a wayyy better OS than MIUI, but I think I'll stick with the Mi 9 for now.

---------- Post added at 13:18 ---------- Previous post was at 12:52 ----------

No, the formatting was only needed at the beginning of Mi 9's development because our TWRPs didn't support decryption at the time. So you needed to format /data to remove encryption and get access to the partition in order to flash Roms.

So no, you won't lose encryption. As long as you have a password or unlock pattern set up, TWRP will ask you for it to decrypt the /data partition.
[Samsung Galaxy S9  Questions & Answers] dedq:
I have my phone rooted but I managed to fake its status to official to get updates.

I manage to get it downloaded but it gets stuck when in recovery which is expected.

Is there a way to install the updates with custom recovery?

Thank you in advance!
[Samsung Galaxy S9  Questions & Answers] *Detection*:
If the OTA update had been successful it would have replaced TWRP with stock recovery anyway most likely
[Samsung Galaxy S9  Questions & Answers] dcoolArne:
You can try to do a Backup with twrp, then update with odin, flash twrp again and then reload you old data from the Backup. Make sure to Backup ur internal Storage, since twrp doesn't do that!!
[Samsung Galaxy S9  Questions & Answers] *Detection*:
Should be fine updating with Odin and still have all data as long as HOME_CSC is used, would have to flash TWRP and root again though, used to do this with my S5 each update
[Samsung Galaxy S9  Questions & Answers] dcoolArne:
No, on the s9 it will encrypt the data partition again, so you have to delet it afterwards if you want to root again.
[Samsung Galaxy S9  Questions & Answers] dedq:
Thank you guys!