Challenge for genius developers :D camera lib mod for Mate series (raw access) - Huawei Mate 10 Themes, Apps, and Mods

Hello everybody, so I have a big challenge, too hard for me, I'm still looking at it everyday but if someone can help me, I would love it
So, my phone is :
- Huawei Mate 10 OS : 8.0.0.141(C636) unlocked and rooted :good:.
Challenge : find the lib to modify and be able to shoot RAW with the monochrome sensor (no issue with the color sensor).
I know someone from Freedcam github with a P20 on 9.1.0.138 can do it, so it's not impossible.
The closest is with Freedcam version 4.3.3, I can shoot jpeg, and it doesn't freeze when I switch to raw dng with the monochrome camera, but the dng results to a black image (on all others versions of Freedcam, it freezes when I click on raw mono or when I shoot with the native resolution in jpg)
I have been exploring many files :
android.hardware.camera.common
android.hardware.camera.device
camera.device
camera.kirin970
camerafactoryservice
cameraserver
libcamera_algo
libcamera_client
libcameraservice
libcamera_capture
libdualcamera_calibration
vendor.huawei.hardware.camera.camRessource
I can't find where is the "lock" for this function.
I saw mention of functions for raw in libcameraservice and libcamera_capture "handleRawPicture" and "recordRawData2File".
Thank you for your help !

Related

[GUIDE] [ROOT] Enable RAW capture in the stock EMUI camera app

If this is common knowledge, I apologize for the redundancy of this post, however I doubt it, since I searched for a way to do this for quite a bit of time, until I finally found a way.
As you probably know, if you're into photography, the P9 Lite supports Camera 2 API which allows for the capture of RAW pictures in .dng format.
This is especially useful for editing, as RAW images contain lots more information, especially in the shadows and highlights.
While there are several 3rd party camera apps that allow RAW capture, having tried most of them, none even comes close to the stock camera app. They're either clunky to use, or they're ugly as sin (I'm looking at you Open Camera, which is both).
To enable this feature on the P9 Lite is actually very simple, but it DOES require ROOT.
This is how to do it:
1. Ensure your device is rooted
2. Use a root file explorer and navigate to /system/emui/lite/prop/local.prop and open the file as text.
3. Change the value of ro.build.hw_emui_lite.enable from true to false
4. Save the file
5. Reboot the device
6. Open the stock Camera app
7. Enable Pro Photo mode
8. Go to settings and enable RAW.
Happy shooting, happy editing.
Already had that line disabled for other reasons. Didn't know it also makes shooting in RAW possible. Thanks!
I had it disabled for the transparent notification panel, bit yeah...I needed this so much!
Thanks!
ZeusftW97 said:
I had it disabled for the transparent notification panel, bit yeah...I needed this so much!
Thanks!
Click to expand...
Click to collapse
Haha, to each his own.
Personally, I dislike the transparent notification panel. I would like to keep it solid black and still have RAW, but hey... I'll take what I can get, and RAW capture is more important.
Cool, https://www.xda-developers.com/guide-enables-raw-capture-in-the-stock-huawei-p9-lite-camera/
Nice, also seems to work for the (Huawei) Honor 6X. Thanks.
My joy at this discovery was short-lived, but then again, isn't that the very nature of joy?
Poetry aside, here's what's wrong.
Shooting RAW, the camera takes one compressed .jpeg and one RAW .dng. However, no matter the shooting conditions, the RAW .dng always comes out blurry and very soft.
I used a tripod, very very fast shutter speeds, in broad daylight and the .dngs ALWAYS come out unfocused.
Anyone able to chime in an maybe offer some insight?
zgomot said:
My joy at this discovery was short-lived, but then again, isn't that the very nature of joy?
Poetry aside, here's what's wrong.
Shooting RAW, the camera takes one compressed .jpeg and one RAW .dng. However, no matter the shooting conditions, the RAW .dng always comes out blurry and very soft.
I used a tripod, very very fast shutter speeds, in broad daylight and the .dngs ALWAYS come out unfocused.
Anyone able to chime in an maybe offer some insight?
Click to expand...
Click to collapse
It seems like the default gallery app doesn't render the RAW files properly. View them in another gallery app with RAW support or import them to your prefered photoeditor and they look fine
Mara-X said:
It seems like the default gallery app doesn't render the RAW files properly. View them in another gallery app with RAW support or import them to your prefered photoeditor and they look fine
Click to expand...
Click to collapse
You're right.
Imported into Lightroom, the .dng is actually quite a bit sharper than the .jpeg.
Thanks muchly!
Thanks, im wating for this a long time
hello
gallery app of p9 can read .dng picture
it works well in our p9 lite
simo255 said:
hello
gallery app of p9 can read .dng picture
it works well in our p9 lite
Click to expand...
Click to collapse
It can read them, but not properly. It shows them really blurry, like they're not focused.
Can you recommend me good raw viewer if you use one?
ZeusftW97 said:
Can you recommend me good raw viewer if you use one?
Click to expand...
Click to collapse
I don't use any. I open the files in either Snapseed on my phone, or Lightroom on my PC and edit.
zgomot said:
I don't use any. I open the files in either Snapseed on my phone, or Lightroom on my PC and edit.
Click to expand...
Click to collapse
Ok, thanks!
Last time when I tried to open raw photos in snapseed it didnt work, and yeah...that was after they added the support for editing raw photos, but I tried now and it works!?
ZeusftW97 said:
Ok, thanks!
Last time when I tried to open raw photos in snapseed it didnt work, and yeah...that was after they added the support for editing raw photos, but I tried now and it works!
Click to expand...
Click to collapse
probably user error
Thanks, is there anyway to disable jpeg format?, It's very annoying both Jpeg and raw Messing in gallery.
Heuxhog said:
Thanks, is there anyway to disable jpeg format?, It's very annoying both Jpeg and raw Messing in gallery.
Click to expand...
Click to collapse
Sadly, I'm afraid not. At least not to my knowledge.
raw without pro mode
Just wanted to ask if it captures raw in all the modes like light painting and night and even in just normal photo mode. does it works only with pro mode ?
Please reply.
Thanks in advance.
roxy2j said:
Just wanted to ask if it captures raw in all the modes like light painting and night and even in just normal photo mode. does it works only with pro mode ?
Please reply.
Thanks in advance.
Click to expand...
Click to collapse
No. Only in Pro Photo mode.
But you can do light painting in Pro Photo mode with longer exposures and get the best of both worlds. RAW and light painting.

Huawei P9 DNG files quality

I have a very bad experience with the raw files produced by P9 camera. I am able to import the files to Adobe Lightroom 6.0 and develop it but when I compare it with the jpg from the phone the DNG is very bad - colours and overall quality. I also tried some online converter with smilar results. Any ideas what the problem might be?
Goldak said:
I have a very bad experience with the raw files produced by P9 camera. I am able to import the files to Adobe Lightroom 6.0 and develop it but when I compare it with the jpg from the phone the DNG is very bad - colours and overall quality. I also tried some online converter with smilar results. Any ideas what the problem might be?
Click to expand...
Click to collapse
DNG raw files usually have more noise, bad exposure and slightly altered colours as no post processing has been done on it. I use Snapseed for editing these.
I have a Fuji aps-c camera and I shoot to raw sometimes so I know what to expect from raw files. This is different... I'll provide some example when I have a chance...
Regarding the Snapseed, does it provide noise reduction functionality? I tried to develop a DNG file in Snapseed but did not find this....
Goldak said:
Regarding the Snapseed, does it provide noise reduction functionality? I tried to develop a DNG file in Snapseed but did not find this....
Click to expand...
Click to collapse
DNG edit via snapseep auto wwhen you open

Camera modding breakthrough needs help

Apparently devs managed to enable an experimental feature of the imx 586 on the Asus ZenFone 6. It's called quad hdr and it enables variable pixel exposure on third party apps and also on video, allowing for better highlights exposure, but not a fake hdr feature, a real even exposure across all image even on Instagram, chat apps etc. This is achieved through a vendor hack and is being discussed on the k20/k20 pro photography group. Unfortunately there seems to be little help for the devs there so I was hoping if someone knowledgeable could help get this feature to our device.

Raw capture with stock camera app

Hi
Been using a V50, that is identical to the V40 camera wise, for a couple of days comig from a V30.
Regarding RAW capture with the stock camera the output seems much worse than the V30 - the DNG files have vignetting and are very desaturated, noting like the output on the V30 and previous LG phones that had this corrected.
Using a 3rd party camera app, the DNG files don't have vignetting but are still very desaturated.
I'm on android 10. Does the V40 also has these issues, having the same camera hardware?
Thanks
Hi!
The V40 does actually have the same problems. Well, DNG files as RAW files by nature contain the unprocessed information what the camera saw when it took the picture, including all optical imperfections and sensor noise. I have a SONY a6000 mirrorless camera at home, and it also has these "problems". It is how it is... Instead of the camera software doing the hard work, it leaves it to you to decide what do you wanna do with the image. Using Lightroom Mobile, you can fix both vignetting and barrel distortion by enabling Lens Profile Corrections. There is also an Auto setting for the colours too. (and a built in capture mode with DNG support which automatically applies lens prifile corrections if I remember correctly) But if you do not want to go through all these to get a decent picture, why all the fuss, just use JPEG. The stock cam app can do awesome images with its built in post processing algorithm, I barely use RAW mode, unless I wanna do something really specific and go hard on editing.

General GCam Raw file editing...

Hi, I've made a few posts comparing the Wichaya GCam to the stock Asus camera. So far I've always preferred the look of the Asus shots compared both to the Wichaya GCam + config xml. However the Asus shots over-sharpen areas of fine detail and over-smooths some highlight areas which looses fine detail.
Unfortunately there is no way to alter the sharpening and processing of the Asus camera. Wichaya's Gcam, however, can be customised using Ram Patcher settings, and I have been playing about with these to try to alter the look of the GCam shots to my taste.
Both the Asus camera and the GCam can save RAW files that can be edited afterwards. It can take a lot of effort to produce a good result, but for an occasional special picture it can be worth the trouble. I did a quick test today to compare an edited Gcam RAW with the normal GCam Jpeg and Asus camera's Jpeg. I've attached the results as screenshots of the editing software I use.
I was pleased with the edited RAW file (it's actually the Adobe DNG version of RAW) and felt that it gives a more accurate impression of the scene than either the Asus or GCam Jegs. So I saved the settings and in the future be able to apply them automatically. Some additional tweaking will always be necessary to Raw files, but the saved settings will make a good start.
Of course it's possible to also edit the Jpegs of both cameras but the results can become grainy - RAW files have a lot more potential to be edited successfully.

Categories

Resources