Thanks so much for this! I downloaded it and installed it straight away. I've only taken a couple of test photos in my office, but interestingly, even the jpgs in your modified app seem to look better than Open Camera. HEre are my very quick test results: https://imgur.com/a/COZaNi6 (blown up to 300%)
OpenCamera uses MediaTek's kernel driver and Android libraries to encode JPEGs, and they look dreadful. Scroll up through my previous posts for some comparisons. Stock camera app or OpenCamera, they will both look bad especially at a 100% crop. Google Camera, on the other hand, uses its own library to read the sensor directly, which is why the photos look so much better. MediaTek
really fumbled here.
Looking at your sample crops, notice how the sun rays and clouds on the watch face are smudged away in the OpenCamera crop. Highlights are completely exaggerated, wood detail is smudged away then oversharpened. This is not OpenCamera's fault, it's MediaTek's.
The RAW image is the sharpest in terms of detail and fine texture, which is to be expected. Google Camera's JPEG is a drop down from there, losing some detail as noise reduction is applied (not much is needed on this sensor, by the way), and sometimes the HDR makes scenes look unrealistic due to overamplified dynamic range. But if RAW is a 10/10, GCam's JPEG is a 7/10, and OpenCamera/stock app is a 2/10... in my opinion.