Hi !
I recently installed the community build for my Mi Mix 3 (e-3.1.1-a14), and it is just wonderful ! It works like a charm. Thank you very much to the maintainers for the hard work !
The only thing I found that did not work was the auxiliary cameras. While digging into it, I found that the “LineageOS/android_device_xiaomi_perseus” repository has a specific patch for the Aperture app in overlay-lineage that seems specifically meant to enable aux camera. But as e-os camera app is a fork of Aperture, renamed as “foundation.e.camera”, I suppose that the patch cannot apply. Am I missing something ?
I do not know anything of the Android build framework, but would you know any way to test/apply this patch to foundation.e.camera config.xml, to see if aux camera magically starts working ? Is it possible to apply such a change of config/manifest at runtime, for example in storage Android/data/foundation.e.camera, or anything equivalent ?
I should have tested if aux camera was working in LineageOS in the first place, but I admit that now that e-os works so well as a daily driver, I am hesitating to wipe the phone just to temporary test Lineage…
To the maintainers : big THANKS again for all your work and help.
The standard camera for /e/ is an OpenCamera fork (not ex Lineage Aperture) would be confirmed in Camera Settings > Online help or Camera Settings > About.
A small number of devices have a secondary camera, but I do not remember seeing it mentioned for your phone.
perseus counts as a supported device with ANXCamera.
Hi,
Thanks for this very fast answer, and sorry for my misunderstanding between Aperture and OpenCamera.
The Mi Mix 3 has indeed 2 rear cameras and 2 front cameras as specified on the device info page or the manufacturer specs.
I will continue digging to find if it is possible to force opencamera multi-camera settings and/or detect other camera IDs as the LineageOS patch suggests.
Thanks for the suggestion of ANXCamera. I had also found this solution, but it seems to require Magisk, which I do not want to install on this phone : it is one of the reason I switched to e-os, to have a working microg installation without having to root the phone and install magisk .
As a follow-up, I did try to compile Aperture myself with the perseus config.xml overlay applied, and it did detect my second camera. It is probably due to the fact Aperture uses the new CameraW API instead of Camera2 API as OpenCamera. Aperture seems still in development and OpenCamera still has much more features, though. This thread might be an example on how to hack on OpenCamera to enable AUX Camera, but it is probably beyond my skills to test it for the Mi Mix 3.
It seems that this issue affects multiple Xiaomi users, regardless of the specific model. It might even be present on all Xiaomi devices.
In my opinion, if the OpenCamera app can handle auxiliary cameras on other devices, because as far as I know it can, and since alternative solutions also allow all cameras to work on Xiaomi phones, then it would only be logical for the built-in OpenCamera app in /e/OS to be capable of this as well.
I have opened a separate topic here on the forum, and I also submitted a bug report on GitLab. I hope the developers will kindly address this problem in one of the next updates.