Thank you for your effort in developing this overlay and posting it here I will update it in the post with your credit.I've created an overlay for this device, which fixes the status bar not covering the entirety of the cutout and the brightness of the AOD being low (you still need to enable the alternate brightness scale on settings).
I've opened a PR on the phh's overlays repo, but it still hasn't been merged.
Meanwhile, you can use this overlay by flashing the attached Magisk module, or building it yourself from the PR.
In case someone is interested (even if it's not for this device), I'll leave here the build instructions (these are not required, you can just use the attached zip file).
Keep in mind I'm using Linux, so build instructions might be a bit different for Windows/Mac.
Start by cloning my repository in themi11tpro
branch:
Bash:git clone https://github.com/diogotcorreia/vendor_hardware_overlay.git -b mi11tpro
Then build the overlay for this device (alternatively you can build all of them by omitting the folder):
Bash:./build/build.sh Xiaomi/Mi11TPro
This will generate an APK that'll be written tobuild/treble-overlay-xiaomi-mi11tpro.apk
.
You can now put this in the attached Magisk module (unzip it first), by replacing the APK there with the built APK.
Then, zip it again, and make sure the root of the zip file is not a folder but the actual files of the module.