[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
Awesome! photo quality is much more better than before, I've tried and works pretty fine, with latest changes in dt it's working like a charm, and finally GCAM is rock solid! Thanks for your great work, I've added it on my GitHub and changed the OP so everyone can download it :)

1, 3 and 4 are fixed on my latest internal build, unfortunately jemalloc randomly break things, in particular cases with high CPU load (camera is the most affected by this bug, but other things may crash when executing CPU intensive operations, may happen to GPS or media service when using software codecs for example)

Regarding 2 we have them since the initial releases, it's just a matter of luck if happens or not, but are really sporadic and does not affect at all device functionality. Unfortunately 4.4/4.9 kernels has been deprecated, and basically are dead, there's no more official support, security updates or bug fixes from AOSP and Linux kernel developers. Some parts of code has been backported from mainline or from 4.9/4.14/4.19, but does not receive updates, for example this commit i pushed some days ago fixes a potential panic in bpf: bpf: fix truncated jump targets on heavy expansions. I must also say that the kernel is using some potential unsafe option (for stability) because there are great performance improvements using them, if I can still use this old Gemini with 3gb of RAM as primary device I can live with a panic every 2 months (but i will try to fix them) :)

Hi! Could you please try my latest build and see if idle battery drain it's fixed even without the SIM switch? I moved to QCRIL so unless there are some modem incompatibilities now we are in line with latest CAF code for msm8996 devices

Hi, plus version have some additional features and customisation (battery icon style, clock position, network monitor indicator, etc), while the normal version tries to be as much as possible similar to Pixel official devices

@Choutouketsu : could you please try the latest build and see if you get the same behaviour or you see some changes/improvements? Unfortunately i cannot test by myself because my carrier break Volte on my device some years ago because they are providing it in B20, which is unsupported by Gemini modem, and they turned off 3G network so there's no chance for me to phisically test some functions (but QCRIL and the related blobs are used by other msm8996/msm8998 devices and works fine, I was also using them in my old PE 12 ROM without any issue)

Please note that this ROM is compiled with all the fixes and changes that I will include for sure in next public release (jemalloc revert, ZSTD compression as standard for ZRAM, camera debugging disabled, several debug packages removal and some misc kernel fixes/improvements) but will include also some changes that i'm still testing, most important are:

Kernel:

- Some misc kgsl fixes/improvements (not pushed yet in my Github, but one of them fixes a potential kernel panic caused by a null pointer deference)

Device Tree:

- QCRIL migration (it's marked as WIP because I had no time yet to update proprietary files list, but there are no functional changes to do) --> Please report me regressions or issues

- Unused library removal is not over yet, but it's safe to use and spare a little bit of space and memory

Here's the download link (only plus version)