[Xiaomi Mi Pad 4 Questions & Answers] Ralfioni:
The device ships with Android 8.1 (= Treble enabled) and Xiaomi usually lets users unlock the bootloader. Does that mean we can simply flash a generic system image (GSI) and enjoy a fully working tablet from day 1?

EDIT: Summary of findings as of November 25, 2018

After unlocking the device and flashing TWRP a GSI can be installed. However, Universal DM-Verity (and ForceEncrypt) Disable is needed to be able to boot (might have to flash twice and/or reformat data to lose encryption). See Installation guide by GBouerat.

The device works fine and can be used as a daily driver. However, there are a few things not working, buggy or needed to be set up. Specifically you need to adjust the DPI settings in /vendor/build.prop:

ro.sf.lcd_density=320
ro.build.characteristics=tablet

Other tweaks:

enable lockscreen rotation (if not already working) => in build.prop set:

lockscreen.rot_override=true

display correct device name => in /system/build.prop set:

ro.product.manufacturer=Xiaomi
ro.product.model=MI PAD 4
ro.product.brand=Xiaomi
ro.product.name=clover
ro.product.device=clover

smoother rounded edges => use overlay app (post #92)

pass SafetyNet

Not working:

clock resets at boot (TWRP not affected though) until you enable WiFi => use ClockSync if time server is not reachable or set another server (see post #221)

WiFi is not automatically turned on after boot => works for some on AOSP phh v23/v25; works for me only for a short moment when setting up as new device (no backup from cloud!) or once when clearing Dalvik/ART cache in TWRP; might have something to do with signing into Play Services (tbc)

exFAT

"pick up to wake"

sleep/wake on magnetic cover

Should be working now:

notification LED ==> works (for me) on AOSP phh v25 as far as I can tell

"double tap to wake" (DT2W) => see fix in post #191 and following

brightness control => fixed (for me) in AOSP by phh v25; can be enabled on any older ROM by copying /system/overlay/treble-overlay-xiaomi-mipad4.apk from phh v25 (see post #221); alternatively set in build.prop: persist.sys.qcom-brightness 4095

device encryption ==> works by flashing Disable_Dm-Verity-09.02.2018.zip (this ZIP leaves force encryption untouched) (see post #221 for details)

Bluetooth audio => fixed (for me) in AOSP by phh v25

MTP doesn't always work on first try => fixed in AOSP by phh v23 according to change log (I have not tested it yet)

List of selected available GSIs

AOSP by phh: https://xdaforums.com/project-trebl...-development/experimental-phh-treble-t3709659

AICP-mordiford: https://treble.andro.plus/ (includes MiPad4 specific tweaks)

Pixel Experience Official: https://xdaforums.com/project-trebl...e-development/8-1-0-pixel-experience-t3796011

LineageOS by phh: https://xdaforums.com/project-treble/trebleenabled-device-development/lineage-phh-treble-t3767690

Ressurection Remix Official: https://xdaforums.com/project-trebl...pment/gsi-resurrection-remix-o-6-1-0-t3811299

Ressurection Remix by phh (use official instead!): https://xdaforums.com/project-trebl...opment/resurrection-remix-phh-treble-t3767688

Kernel sources have been released in November 2018

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/clover-o-oss