I made some more tests with different configurations and the last results are more satisfying, even though I am not sure of the final reason of such improvement.
Yesterday I shot the following scenery with Miui cam preinstalled on CrDroid8.6 and with Shamim V24 installed, without any XML.
I was negatively impressed by hard interpolation effects and by the amount of artifacts at 5m+ in both. Shamim did better at infinity, but the messy rendering was pretty obvious. I took a shot of the same scene with an older Moto G7 plus just to discover it rendered infinity in a more natural and detailed way.
So today I decided to try installing Moto 2 cam by Nemesis Team on Redmi note 10 pro via TWRP. The attempt failed. The Moto installation eradicated the Miui cam (as it uninstalls the default cam from Android) and then gave an error. I rebooted and found no more Miui cam (no surprise). After that I tried to install LMC 8.4 V9 Gcam mod which failed previously. This time it worked. I took
an XML from this thread and slightly tweaked it.
I made several shots of the same scene and discovered that the basic compression algorithm now works better! With the same file size it gives less squarish and noise artifacts, and infinity shapes improved.
I am not sure if it is because the installation of Moto 2 Cam deleted some Miui library which was replaced by a Moto or a Google lib. Or it is just the better tweaked LMC mod. Anyway, I am now having a camera experience which better corresponds to my expectations of the 1/1.5" sensor.
A side-by-side comparison follows of the mentioned variants (click or download to see details).
What I still find do not quite understand:
1) EXIF data of the shots focused on infinity objects indicates a distance of 13.72m. It does not change if I pass to Pro mode, with a manual setting of the distance. So the default infinity for Note 10 pro is rather 13.72 than say 20m and more? Could this be changed with a XML tweak to check if it affects the image quality?
2) Moto G7 plus, with its smaller 1/2.6" sensor still renders better detail at infinity. How could it be? Might this be a result of physical lens optimisation in Note 10 pro for close rather than for infinity shots?