xaveroprjkt/device_xiaomi_emerald ? reverse-engineered prompt

Reverse engineered prompt

Build me an Android device tree for the Xiaomi POCO M6 Pro 4G, codename emerald, so it can be used to build a custom ROM cleanly.

I want the repo to include everything needed for a working bring up, like the device makefiles, product and vendor property files, overlays, sepolicy, root files, and any device specific parts for features like double tap to wake, Dolby, and under display fingerprint support if needed. It should be set up for LineageOS style builds and make sense for Redmi Note 13 Pro 4G and POCO M6 Pro 4G since they share the same base.

Please make sure the tree is organized like a real device repository, with the proprietary file handling and extraction setup in place, and leave it ready for building and device specific tweaks. If you need current build references or device tree patterns, look them up online and match what this device family normally expects.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab