[Xiaomi Mi MIX  ROMs, Kernels, Recoveries, & Other ] gavin19:
[MENTION=455439]bgcngm[/MENTION]

Tried building an update to save anyone else the trouble but the display blanks out after a second as soon as it gets to the setup wizard and I touch the screen. Powering it on works, but again it turns off almost immediately. Logcat loops through

10-11 15:20:39.641 510 767 E SDM : CompManager::Prepare: Composition strategies exhausted for display = 0
10-11 15:20:39.641 510 767 E SDM : HWCDisplay::PrepareLayerStack: Prepare failed. Error = 2
10-11 15:20:39.641 542 542 E HWComposer: prepare: presentOrValidate failed for display 0: BadDisplay (2)
10-11 15:20:39.641 542 542 E SurfaceFlinger: prepareFrame for display 0 failed: -2147483648 (Unknown error -2147483648)

After a few minutes it just boots back into TWRP. There are a bunch of other errors that crop up like

10-11 15:35:39.618 1966 1966 E AndroidRuntime: FATAL EXCEPTION: main
10-11 15:35:39.618 1966 1966 E AndroidRuntime: Process: com.android.phone, PID: 1966
10-11 15:35:39.618 1966 1966 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/ims/feature/MMTelFeature;

and

08-06 21:54:52.835 692 921 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
10-11 15:35:36.383 469 469 E vold : Failed to read field SystemLocale: No such file or directory
10-11 15:35:36.387 966 1627 E StorageManagerService: Failed to read field SystemLocale
10-11 15:35:36.387 966 1627 E StorageManagerService: android.os.ServiceSpecificException: Failed to read field SystemLocale (code 2)

but at least if the display wouldn't keep shutting off then I could get past the setup and see what else is broken.

It isn't recognising the SIM cards either, at least from what I saw from as far as I could get into the setup.

I'm using the latest sources, and also repopicked all these - https://review.lineageos.org/#/q/project:LineageOS/android_device_xiaomi_msm8996-common+status:open - except for the bottom four. The 'Treble sucks' one I had to manually run the patchelf command (then rebuild) or else I was getting a linker error for GNSS.

Is there anything else I need to do (or any of those picks that I shouldn't be using)? Cheers.

EDIT - Got the display working via - https://review.lineageos.org/#/c/LineageOS/android_hardware_qcom_display/+/228628/ but SIM cards still broken. Everything else i tried so far seems to be fine.

EDIT2 - Disabling IMS fixed the SIM card issue and dialer FCs - https://review.lineageos.org/#/c/LineageOS/android_device_xiaomi_msm8996-common/+/223956/

EDIT3 - Sharing my custom build since I got past the issues eventually - https://mega.nz/#!GxpWzaia!EsFFejMUI63Vjzg_GL87TNvviUOSRyxrJ6pq8ldnF_4

- What was broken/not implemented yet is still the same except..

- October security patch

- Added expanded desktop (and quick settings tile)

- Network meter works but it appears centered, so it will clash with centered clock

- Theme accents can be changed but not light/dark style (not sure if this worked before)

- Overclocked CPU (big cores from 2342MHz to 2419) and GPU (652MHz to 681)

- Using Marlin thermal engine/config

I'd highly recommend waiting for the next officially unofficial build from OP, but thought I'd share anyway. Flash Magisk 17.1 if you want root.