Shooting in RAW - Xiaomi Mi 6 Questions & Answers

Is it possible to take photos in RAW on the Mi6?
I've just updated to miui 9 global dev, and RAW is nowhere to be seen.
Is it doable?

1. enable camera2 api
2. install OpenCamera
3. set JPEG+DNG in OpenCamera settings

Awesome, how do I enable the camera2 API?

trionix said:
Awesome, how do I enable the camera2 API?
Click to expand...
Click to collapse
You need to be rooted, to do that.
Here is a module for Magisk, which should enable camera 2 api.
https://www.reddit.com/r/Android/com...i_to_use_with/
It's also possible to modify with by editing your build.prop
marinespl said:
1. enable camera2 api
2. install OpenCamera
3. set JPEG+DNG in OpenCamera settings
Click to expand...
Click to collapse
Very nice, have you tried this yourself with Mi6?
But you need to be rooted, no matter which way you choose.

Related

camera2 api, and RAW image format

can i9082 support camera2 API??
Also is there anyway to take images in RAW image format
souravsasidharan said:
can i9082 support camera2 API??
Also is there anyway to take images in RAW image format
Click to expand...
Click to collapse
I think Camera 2 API works as I have selected that in Open Camera and it didn't give an error.
Raw format isn't supported on our hardware
RichyE said:
I think Camera 2 API works as I have selected that in Open Camera and it didn't give an error.
Raw format isn't supported on our hardware
Click to expand...
Click to collapse
i tried opena camera.
where in open camera settings...u enabled camera2 API..
didnt see it
souravsasidharan said:
i tried opena camera.
where in open camera settings...u enabled camera2 API..
didnt see it
Click to expand...
Click to collapse
To enable in Open Camera, go to Settings, and select "Use Camera2 API" (if it's not there, it isn't supported on your rom).
I had this option on my blisspop V 1.9 or V 2.0 rom as open camera was the default camera.
don't know now as I'm testing RR V 5.4.5 .
You can also look at this
RichyE said:
To enable in Open Camera, go to Settings, and select "Use Camera2 API" (if it's not there, it isn't supported on your rom).
I had this option on my blisspop V 1.9 or V 2.0 rom as open camera was the default camera.
don't know now as I'm testing RR V 5.4.5 .
You can also look at this
Click to expand...
Click to collapse
i am currently on cm12.1-0517 version....i dn thnk it supporrts then.
Have u tried the new lollipop camera??
i am getting a force close
RichyE said:
To enable in Open Camera, go to Settings, and select "Use Camera2 API" (if it's not there, it isn't supported on your rom).
I had this option on my blisspop V 1.9 or V 2.0 rom as open camera was the default camera.
don't know now as I'm testing RR V 5.4.5 .
You can also look at this
Click to expand...
Click to collapse
bro can u check whether the camera2 API working in the latest RR rom
souravsasidharan said:
bro can u check whether the camera2 API working in the latest RR rom
Click to expand...
Click to collapse
lollipop camera gives FC on RR
And a better camera can't activate camera2 API
RichyE said:
lollipop camera gives FC on RR
And a better camera can't activate camera2 API
Click to expand...
Click to collapse
yea..same case here..
didnt see camera2 API in better camera
RichyE said:
lollipop camera gives FC on RR
And a better camera can't activate camera2 API
Click to expand...
Click to collapse
can u give the link to that blisspop version??
Just went to the directory, but it looks blisspop deleted today all the older versions

Google Camera Port with HDR+ (arm64)

Due to the new arm64 Roms i decided to find the best gcam port that would work for the g5s, so i found it.
GCam Port v1 [8.0-9.0] - [Download]
GCam Port v2 [Better Low Light & Stability] [New] - [Download]
It needs camera2api enabled. Add this to /system/build.prop:
Code:
persist.camera.HAL3.enabled=1
(Optional) To prevent certain applications from using camera2api, add this line to /system/build.prop:
Code:
camera.hal1.packagelist=org.lineageos.snap,com.motorola.cameraone,com.whatsapp,com.instagram.android
For GCam Port v1 you need some application settings to prevent camera crashes:
Go to Gcam Settings > Advanced Settings > Model and select "Nexus 6P"
Go to Gcam Settings > Advanced Settings > Config camera HDR+ and select "Pixel 2017 Zsl Hdr+(new)"
V1 issues:
Some modes do not work
Crash when processing photos taken in sequence with hdr+ enabled
Random Bugs
V2 issues:
Some modes do not work
Video recording broken
HDR+ on portrait mode not work
Random Bugs
Credits to:
@Arnova8G2
How to configure if the app keeps crashing?
Edit: I had to install Pix3lify to get it working even after enabling camera2api.
JarlPenguin said:
How to configure if the app keeps crashing?
Edit: I had to install Pix3lify to get it working even after enabling camera2api.
Click to expand...
Click to collapse
The camera has to be opened only after putting the "persist.camera.HAL3.enabled" in the build.prop and restart the device, because it will crash for not detecting the camera2api
samuelrafo said:
The camera has to be opened only after putting the "persist.camera.HAL3.enabled" in the build.prop and restart the device, because it will crash for not detecting the camera2api
Click to expand...
Click to collapse
I did put it and restart, but I don't think the file saved properly. So I installed Pix3lify and it works now. Also if you install Pix3lify instead of editing the build.prop
---------- Post added at 02:34 PM ---------- Previous post was at 02:33 PM ----------
samuelrafo said:
The camera has to be opened only after putting the "persist.camera.HAL3.enabled" in the build.prop and restart the device, because it will crash for not detecting the camera2api
Click to expand...
Click to collapse
I did put it and restart, but I don't think the file saved properly. So I installed Pix3lify and it works now. Also if you install Pix3lify instead of editing the build.prop you will have to install a GCam mod with the same package name as the original Google camera app.
Update: New Experimental GCam
I have download this apk on Android 9 : https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_MI8_V2e.apk
Night mode , portrait mode , superres zoom ans HDR + work perfectly?. But selfie camera and video recording not working?. Can you create a version for moto g5s ??
Arn'oh said:
I have download this apk on Android 9 : https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_MI8_V2e.apk
Night mode , portrait mode , superres zoom ans HDR + work perfectly?. But selfie camera and video recording not working?. Can you create a version for moto g5s ??
Click to expand...
Click to collapse
Above version in post one is working at g5s with selfie camera too
zahidm said:
Above version in post one is working at g5s with selfie camera too
Click to expand...
Click to collapse
Those are 5.1 ports though. He was talking about a 6.1 port.
JarlPenguin said:
Those are 5.1 ports though. He was talking about a 6.1 port.
Click to expand...
Click to collapse
Yes 6.1 port won't work at selfie Videos and also rear videos in moto g5s, You are right
It's not possible tout create apk of gcam for Android 9 with selfie and vidéo recording ?
Arn'oh said:
It's not possible tout create apk of gcam for Android 9 with selfie and vidéo recording ?
Click to expand...
Click to collapse
To*
Front flash works?
miguegallardo13 said:
Front flash works?
Click to expand...
Click to collapse
No
CamerA2api not enabled after adding this line
persist.camera.HAL3.enabled=1
deepanshu45 said:
CamerA2api not enabled after adding this line
persist.camera.HAL3.enabled=1
Click to expand...
Click to collapse
Which ROM ?
deepanshu45 said:
CamerA2api not enabled after adding this line
persist.camera.HAL3.enabled=1
Click to expand...
Click to collapse
Install cemera api 2 enabler in play store ?
Stock oreo 8.1
deepanshu45 said:
Stock oreo 8.1
Click to expand...
Click to collapse
Edit' comments deleted
zahidm said:
Yes your Bootloader is Locked and now there is only one way, to restore via 9008 mode
Click to expand...
Click to collapse
How
deepanshu45 said:
How
Click to expand...
Click to collapse
It's a wrong Tread comments ignore it, Thanks

Camera2api module not compatible with GSI ROMs

Hello everyone, I have perhaps the biggest doubt. Why can i easily install the Gcam in the Stock version of the firmware by enabling the module; but if I install a GSI Rom and try to enable the module, does the default camera stop working? And even the possible Gcam to install does not work. Someone could tell me why? Truly I would be infinitely grateful!:fingers-crossed::fingers-crossed:
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
celrau said:
There are a couple of apps on google store that you can use to check if camera2 API is available/enabled on your phone, testing with gcam is questionable. I use ArrowOS and camera2 API is fully implemented. Try for example OpenCamera which definitely does camera2. Or FreeDcam on github.
Click to expand...
Click to collapse
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
YouKnowAirborne said:
Thanks for your reply celrau, after installing the module, i checked if it was enabled with for example "manual camera compatibily test", and each string was enabled. but as i said, stock cam not work more, and neither any gcam. So i don't understand why. Have u ArrowOS in mi a2 lite mate?
Click to expand...
Click to collapse
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
celrau said:
Yeah, MiA2 lite with ArrowOS. Most likely gcam not running has nothing to do with camera2, maybe it needs some libraries specific to stock or something. See if you can find some magisk module with gcam, maybe it helps.
Click to expand...
Click to collapse
compatible modules unfortunately I have not found, maybe there will be something that does not go with the libraries as you say. But unfortunately about this, I understand little and nothing. unless someone tells me directly what I have to implement
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
boe323 said:
Try searching miui 10 camera 2api, it has a full set of libs , but also has media files for ringtone ,user interface, maybe download and remove the media folder or replace the .oggs with your stock ones then magisk flash it
Click to expand...
Click to collapse
Thanks mate, i'll try it!
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:
camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE
ie.:
camera.hal1.packagelist=com.android.camera
I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.
EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):
ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider
Hope that helps!
BJumperBR said:
You can try editing your build.prop and add this line with the name of the app that you want to use the old API:
camera.hal1.packagelist=INSERT_YOUR_APP_PACKAGE_NAME HERE
ie.:
camera.hal1.packagelist=com.android.camera
I'm using the stock ROM now but I've used that method before on my old REDMI 4 PRIME Ressurection Remix ROM for some apps that wouldn't work with CAMERA2API.
EDITED TO ADD: You can also use the same ADB method to change the properties (root needed):
ie.:
adb shell
su
setprop camera.hal1.packagelist com.google.camera,com.skype.raider
Hope that helps!
Click to expand...
Click to collapse
Thanks a lot mate, i'll try this solution too!!

Fix GCAM Crashing in MIUI 10.2.2.0?

Can someone help me fix GCAM crashes in MIUI?
I have installed the RN5 Camera Patch Module V2.034 by nhappymann through Magisk, Also I have Arnova8G2V3B1 as my GCAM.
Avatrient said:
Can someone help me fix GCAM crashes in MIUI?
I have installed the RN5 Camera Patch Module V2.034 by nhappymann through Magisk, Also I have Arnova8G2V3B1 as my GCAM.
Click to expand...
Click to collapse
How about enabling camera2 api first?
Plekst said:
How about enabling camera2 api first?
Click to expand...
Click to collapse
The patch already enables Camera2API
Avatrient said:
The patch already enables Camera2API
Click to expand...
Click to collapse
And yet it works fine for me with camera2 api enabled in build.prop, and it doesnt for you.
Gcam crash
Plekst said:
And yet it works fine for me with camera2 api enabled in build.prop, and it doesnt for you.
Click to expand...
Click to collapse
Yes I have this problem too!!!
And, even if my cam2api is enabled, evry gcam version I tried, the ones with night sight specially, v6, are giving me force crash on front cam!
Could be lack of rooting? I enabled cam2api by unlocking the bootloader only, without rooting my phone.
V5s of gcam are working, not fully, still problems with front cam not capturing anything, but no night sight.

[HOW TO] Enable Camera2API and install GCam

Hello everyone
UPDATE!!!
Now you can skip all the tutorial, and just install the magisk module:
"GCam enable for XiaomiMi8Lite", then you install the GCam.
Thanks to @ncandroid84
But if you want to do all the process manually:
I'm doing this post because no one knows how to do this and I have the solution so I want to share it with you.
First of all, I assume you are an advanced user and have rooted your device with the guides of xda forums, so don't ask about it, please.
Also I've seen that many people done magisk modules, scripts and blabla, but also many people said that those methods don't work, so this is the manual method.
So let's do this.
1. Install a build prop editor (search in play store) and add the following lines in "persist" part:
For Oreo:
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
persist.vendor.camera.HAL3.enabled=1
For Pie:
Batpope said:
For Pie you need the following settings in order to enable Camera2API correctly:
persist.vendor.camera.HAL3.enabled=1
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
Click to expand...
Click to collapse
Now save and restart your device. Check with the app "Camera2 probe". You should see at hardware support level "LEVEL_3" checked and with green text.
If you see this, now you have Camera2 API enabled.
But... Front camera doesn't work anymore, with any app, so you have to replace a file.
2. Install a file manager with root that let you modify file permissions and access your root folder.
You should download the next file:
Oreo:
https://drive.google.com/file/d/1w2Qw34Pmy0dLmlXRYRSm8JyKgEb2mZ6u/view
Pie:
https://drive.google.com/file/d/1u7AREkr6_QKKdSZw2s_5itYk0xkKYTm2/view
-Copy the file.
-Now, go to to /vendor/lib and paste it. Replace the existing file.
-Now set the following permissions in the new file you pasted:
Owner: Read and write.
Group: Read.
Other: Read.
Or rw- r-- r-- for advanced users
Save and restart.
Now you see that front camera works fine with many apps except stock camera. This is when you install the gcam.
I'm using now the Arnova's Advanced 1.4 version downloadable at Celso Acevedo's page. (Google it).
Also, 4k recording doesn't work but you can use stock camera for this.
That's all and I hope I've helped you.
Hi! I did these steps into the build.prop but Camera API shows me the support level "LEVEL_3" in red
I have downloaded the apk from this link: https://www.celsoazevedo.com/files/android/google-camera/f/changelog380/ and not work.
pls help
hi dear pls help
the front camera doesn't work.
camera2 open
please take a video.how do I do it?
ugurmutlu21 said:
hi dear pls help
the front camera doesn't work.
camera2 open
please take a video.how do I do it?
Click to expand...
Click to collapse
Read this:
https://forum.xda-developers.com/showpost.php?p=79237524&postcount=2
Import config:
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
kennethstarr said:
Read this:
https://forum.xda-developers.com/showpost.php?p=79237524&postcount=2
Import config:
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
Click to expand...
Click to collapse
I've uploaded the files.
he front camera doesn't work.
For Pie you need the following settings in order to enable Camera2API correctly:
persist.vendor.camera.HAL3.enabled=1
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
The front camera fix works like a charm, thanks!
front camera does not work
no work
ugurmutlu21 said:
no work
Click to expand...
Click to collapse
You need to download the libmmcamera_platina_imx576_sunny.so file posted above. Once you overwrite it, change the permissions and it should work.
Remember, after this fix the front camera won't work with the stock camera app, but it will work on all other apps, including gcam
Batpope said:
You need to download the libmmcamera_platina_imx576_sunny.so file posted above. Once you overwrite it, change the permissions and it should work.
Remember, after this fix the front camera won't work with the stock camera app, but it will work on all other apps, including gcam
Click to expand...
Click to collapse
yeah, I did, but no, it's not working.
vagoybostero said:
Hi! I did these steps into the build.prop but Camera API shows me the support level "LEVEL_3" in red
Click to expand...
Click to collapse
Make sure you have edited the build.prop correctly.
I thought the API would be enable in the latest update to Pie. Or they will enable it in the next miui update?
Thank alot..
It worked for MI8 Lite Havoc-OS-v2.4..:good:
Hoping for getting a official update ?
Hello I have enable camera2api and installed gcam but my front camera doesn't work
my file explorer doesn't let me to paste and replace the fix file into root /vendor/lib i try to do it with other file explorer but i have the same problem.
Replacing the libs broke the instragam front cam.... Any solution?
Sometimes Gcam stops taking photos and i need to reboot the phone. It is normal? Any fix? I use latest Pixel Experience rom.
Do you have the same problem using Gcam in Miui?
GuGor said:
Sometimes Gcam stops taking photos and i need to reboot the phone. It is normal? Any fix? I use latest Pixel Experience rom.
Do you have the same problem using Gcam in Miui?
Click to expand...
Click to collapse
I am on pixel experience too. I have noticed that the camera doesnt take pictures not only on gcam, but on every app that uses the camera. I have tried both caf and aosp versions of PE and i had this issue
How much better is quality of the photos from GCam over stock MIUI camera on this phone? Is it worth doing and loosing front camera in stock app (and have it just as 6 Mpx in other apps) over using just stock camera?
lapist said:
How much better is quality of the photos from GCam over stock MIUI camera on this phone? Is it worth doing and loosing front camera in stock app (and have it just as 6 Mpx in other apps) over using just stock camera?
Click to expand...
Click to collapse
Honestly, I did not see that difference, so, no, definitely not worth it.

Categories

Resources