Google HDR+ Working but Stock Camera Not Working Anymore - Xiaomi Mi A1 Questions & Answers

In stock camera, getting:
Camera error
Can't connect to camera
Is it possible to have both working together?

heredago said:
In stock camera, getting:
Camera error
Can't connect to camera
Is it possible to have both working together?
Click to expand...
Click to collapse
What did you change to get Google camera working ?

NITRO_100 said:
What did you change to get Google camera working ?
Click to expand...
Click to collapse
Purchased phone running Sept security
Updated to Oct security via OTA
Unlocked bootloader using Mi tool
Rooted with CF auto root
Added 1 line to buildprop
Installed Google camera apk

me too
heredago said:
In stock camera, getting:
Camera error
Can't connect to camera
Is it possible to have both working together?
Click to expand...
Click to collapse
stock camera potret mode working HDR mode not working
google camera uninstall and delete line build pro
still an error

apandi02 said:
stock camera potret mode working HDR mode not working
google camera uninstall and delete line build pro
still an error
Click to expand...
Click to collapse
Flash october update using miflash
Root again using CF-ROOT
Done
It seems since the October update we don't need that line in prop, it works by default even without root, at least on my device

sooti said:
Flash october update using miflash
Root again using CF-ROOT
Done
It seems since the October update we don't need that line in prop, it works by default even without root, at least on my device
Click to expand...
Click to collapse
So you're saying it works without root?
Which port are you using? Is it this one? v.1.4_v3: MGCB_7.0H_C2API_Full_PXL2_v.1.4_60FPS_noburst_v3 (ivanich, 2017-08-27) (stable, no config needed)

heredago said:
So you're saying it works without root?
Which port are you using? Is it this one? v.1.4_v3: MGCB_7.0H_C2API_Full_PXL2_v.1.4_60FPS_noburst_v3 (ivanich, 2017-08-27) (stable, no config needed)
Click to expand...
Click to collapse
No ,latest 5.1014

@sooti Are you sure about that ? What are you results with the camera2 api probe app ?

sooti said:
No ,latest 5.1014
Click to expand...
Click to collapse
How is that even possible?? You require to be on oreo to use that version!! Are u on oreo??

not working
sooti said:
Flash october update using miflash
Root again using CF-ROOT
Done
It seems since the October update we don't need that line in prop, it works by default even without root, at least on my device
Click to expand...
Click to collapse
i am try this step and install gcammod , not working with me..
stock rom working normal
can give me the download link gcam HDR?

zazzy24 said:
How is that even possible?? You require to be on oreo to use that version!! Are u on oreo??
Click to expand...
Click to collapse
Not from appmirror, from gcam mod, here
https://forum.xda-developers.com/on...oogle-camera-hdr-60fps-video-t3658552/page114

heredago said:
Purchased phone running Sept security
Updated to Oct security via OTA
Unlocked bootloader using Mi tool
Rooted with CF auto root
Added 1 line to buildprop
Installed Google camera apk
Click to expand...
Click to collapse
have to note this down... thanks a bunch..

Go to manual mode..u can shoot pic from there. But can't use HDR...

Rakibboss said:
Go to manual mode..u can shoot pic from there. But can't use HDR...
Click to expand...
Click to collapse
For me, stock camera doesn't work consistently anymore even with HDR off. It seems to work in normal lighting situation but not in low light situation where I get the error explained in initial post (very strange).

Same here.
HDR mode is not working on Mi Camera app , says "Camera error - can't connect to camera" everything else works.

heredago said:
For me, stock camera doesn't work consistently anymore even with HDR off. It seems to work in normal lighting situation but not in low light situation where I get the error explained in initial post (very strange).
Click to expand...
Click to collapse
Go to manual mode of stock camera app.. It will work then..

Rakibboss said:
Go to manual mode of stock camera app.. It will work then..
Click to expand...
Click to collapse
Thanks, it works!
And Manual mode with everything auto = auto mode in the end right? (Any difference?)

heredago said:
Thanks, it works!
And Manual mode with everything auto = auto mode in the end right? (Any difference?)
Click to expand...
Click to collapse
Yeah..

Related

[ZIP]OOS 2.2.0 Camera patch for low light recording

Hello
I got tired waiting for an official fix, so I came up with this workaround.
twrp-flashable_OPX2.2.0_camera_patch.zip - This zip with apply the OPX front camera configuration.
twrp-flashable_OPX_camera_patch_imx214.zip - This zip will apply the OPO rear camera configuration
You'll be able to record 1080p at night without worrying about the fps drop issue.
I am not responsible for any damage on your device when applying this patch.
EDIT: Added a revert flashable zip.
EDIT2: Added zip file with imx214 libchromatix_default_video.so
Sweet. Thanks
Swapped my Recent and Back buttons.
Edit:
A couple reboots might've fixed this, but I also messed with Gravity Box a bit as well. There's two options to fixing that problem, potentially.
RJMacReady said:
Swapped my Recent and Back buttons.
Edit:
A couple reboots might've fixed this, but I also messed with Gravity Box a bit as well. There's two options to fixing that problem, potentially.
Click to expand...
Click to collapse
This patch shouldn't mess with buttons layout. You might had a pending operation that took effect on reboot when you flashed this zip.
try hydrogen os.
does your phone need to be rooted or will it work fine with stock?
Does this patch works also with custom roms like cm13?
Sorry. This patch is for default camera only? Or its for any camera apps running on oss 2.20?
It works perfect now, thank you so much for this mod. Where did this libs came from?
Shame on One Plus btw.
#E1005
Loureiro said:
This patch shouldn't mess with buttons layout. You might had a pending operation that took effect on reboot when you flashed this zip.
Click to expand...
Click to collapse
Maybe, maybe not. Just letting people know a few reboots might help.
Thank you for the patch!
Great work mate, Oneplus have to work really hard about software
Loureiro said:
This patch will replace the binary file libchromatix_s5k3m2_default_video.so
Click to expand...
Click to collapse
did you take it from s4 or hydrogenos?
do you think any more improvements are possible by replacing the blobs?
Can anybody upload a sample on YT? Please I wan't to see what is this beauty capable of in low light video. Maybe I'll pop the cherry of my OPX and root it tomorrow OP thanks for the fix!
Loureiro said:
Hello
I got tired waiting for an official fix, so I came up with this workaround.
This patch will replace the binary file libchromatix_s5k3m2_default_video.so
You'll be able to record 1080p at night without worrying about the fps drop issue.
This has been tested on my device only.
I am not responsible for any damage on your device when applying this patch.
Do a system backup if you're worried.
EDIT: I've added a revert flashable zip.
Click to expand...
Click to collapse
Great job! What did you need to change in that file to get it done?
5star02707 said:
does your phone need to be rooted or will it work fine with stock?
Click to expand...
Click to collapse
No. You just need a recovery to flash the zip file
logan99 said:
Does this patch works also with custom roms like cm13?
Click to expand...
Click to collapse
I should work if the custom rom uses the same BLObs as Oxygen OS.
It means that, for now, it works on cm12.1 and cm13
Tiongkia said:
Sorry. This patch is for default camera only? Or its for any camera apps running on oss 2.20?
Click to expand...
Click to collapse
This patch is system wide. Any camera app will work with this.
ChavitoArg said:
It works perfect now, thank you so much for this mod. Where did this libs came from?
Shame on One Plus btw.
#E1005
Click to expand...
Click to collapse
ckret said:
did you take it from s4 or hydrogenos?
do you think any more improvements are possible by replacing the blobs?
Click to expand...
Click to collapse
I've tested other s5k3m2 binaries from other devices but they all miss some needed instructions.
This is the front camera binary
tested the imx214 file but it pushes iso way too high.
Awesome. Thank you OP
Loureiro said:
No. You just need a recovery to flash the zip file
I should work if the custom rom uses the same BLObs as Oxygen OS.
It means that, for now, it works on cm12.1 and cm13
This patch is system wide. Any camera app will work with this.
I've tested other s5k3m2 binaries from other devices but they all miss some needed instructions.
This is the front camera binary
tested the imx214 file but it pushes iso way too high.
Click to expand...
Click to collapse
Wait it does not require root and a custom recovery?
alabama20 said:
Wait it does not require root and a custom recovery?
Click to expand...
Click to collapse
root =! custom recovery
You need custom recovery to flash this.
ChavitoArg said:
root =! custom recovery
You need custom recovery to flash this.
Click to expand...
Click to collapse
I know what is what, I was just asking -.-"
alabama20 said:
I know what is what, I was just asking -.-"
Click to expand...
Click to collapse
Sorry, I forgot to say that custom recovery is needed

Working Google camera HDR+and portrait mode on stock zui 2.5

Google camera is working on my stock zui 2.5 indian version but beware after following these steps the stock camera app won't work .
Here are the steps I did follow
1 you should have latest twrp.
2.flash open source camera 2 hal from here
https://forum.xda-developers.com/attachment.php?attachmentid=4412288&d=1518010186
3. install Google camera from here
https://drive.google.com/file/d/1wqkqZ7-IcoJiq4krpR2cb8jHewysdbUC/view
4. For working HDR+ and portrait mode on front camera although its for OnePlus 3 it works on our devices as well. Flash this file
https://www.celsoazevedo.com/files/android/google-camera/f/hdrfix/twrp-front-fix-nougat-op3-3t.zip
Do you think this would work on zui 3.5?
bordi21 said:
Do you think this would work on zui 3.5?
Click to expand...
Click to collapse
I think it should I haven't tried yet but it should be working and google photos app should be installed for motion photos feature
so this would enable camera2api on stock zui 2.5?
arun356y said:
so this would enable camera2api on stock zui 2.5?
Click to expand...
Click to collapse
Yeah it does but stock camera won't work
rk2shashank said:
Yeah it does but stock camera won't work
Click to expand...
Click to collapse
means flashing oss zip will completely break the stock camera?
arun356y said:
means flashing oss zip will completely break the stock camera?
Click to expand...
Click to collapse
Yes it would break stock camera app
rk2shashank said:
Yes it would break stock camera app
Click to expand...
Click to collapse
Someone please try forcing cam hal 1 for zui camera package through build.prop and then test
rk2shashank said:
Google camera is working on my stock zui 2.5 indian version but beware after following these steps the stock camera app won't work .
Here are the steps I did follow
1 you should have latest twrp.
2.flash open source camera 2 hal from here
https://forum.xda-developers.com/attachment.php?attachmentid=4412288&d=1518010186
3. install Google camera from here
https://drive.google.com/file/d/1wqkqZ7-IcoJiq4krpR2cb8jHewysdbUC/view
4. For working HDR+ and portrait mode on front camera although its for OnePlus 3 it works on our devices as well. Flash this file
https://www.celsoazevedo.com/files/android/google-camera/f/hdrfix/twrp-front-fix-nougat-op3-3t.zip
Click to expand...
Click to collapse
Thnx for ur help ,but Iam not able to download the Google camera app???Can u pls help???
pkn267 said:
Thnx for ur help ,but Iam not able to download the Google camera app???Can u pls help???
Click to expand...
Click to collapse
try this
https://drive.google.com/file/d/1wqkqZ7-IcoJiq4krpR2cb8jHewysdbUC/view
rk2shashank said:
try this
https://drive.google.com/file/d/1wqkqZ7-IcoJiq4krpR2cb8jHewysdbUC/view
Click to expand...
Click to collapse
And one thing ,how can I fix the slow motion recording ???.Thank you.
pkn267 said:
And one thing ,how can I fix the slow motion recording ???.Thank you.
Click to expand...
Click to collapse
That can't be fixed on this version of Google camera maybe next release version 6 by aranova at fix it
on oreo AEX, i need the hole steps or just install the google camera apk ?
rk2shashank said:
I think it should I haven't tried yet but it should be working and google photos app should be installed for motion photos feature
Click to expand...
Click to collapse
I can confirm that don't work in zui Oreo
mpena said:
I can confirm that don't work in zui Oreo
Click to expand...
Click to collapse
In Indian nougat version it worked
front camera is taking green photos even after flashing the zip provided for front camera. (btw i am on zui 2.5 indian)

HDR , slow motion and other option disappeared from MotoCam on stock 7.0

Hi everyone , today while using camera i noticed hdr option is missing along with slow motion and iso & shutter speed option from the pro mode in Moto camera . Even front camera is not opening. However in 3rd party camera apps front camera open but hdr is still missing. I am using modified stock 7.0 with camera2api enabled , defcomg chromatix mod and 32 bit gcam by savitar. How to fix moto cam as i use it regularly ? Thanks all in advance
This is happen bcuz of enable cam2api idk why maybe the Moto cam app dosen't compatible with camera 2 so if you want these options back you have to disable cam2api. Same of you I tried so many times to find out what happened with camera and discover that enable cam2api make this bug happened.
The stock camera app relies on the phone's default camera api. Enabling camera2 api breaks it.
thegoko said:
This is happen bcuz of enable cam2api idk why maybe the Moto cam app dosen't compatible with camera 2 so if you want these options back you have to disable cam2api. Same of you I tried so many times to find out what happened with camera and discover that enable cam2api make this bug happened.
Click to expand...
Click to collapse
Thanks for answer sir , but i will not disable cam2api bcoz i am using gcam and happy with hdr+ , i will search for better 3rd party app than stockcam which use cam2api ?
bazinga137 said:
The stock camera app relies on the phone's default camera api. Enabling camera2 api breaks it.
Click to expand...
Click to collapse
I tried disabling cam2api by changing value to 0 in build.prop app but it didnot work . I removed persist code but cam2api is still enabled . Donot know why moto software sucks brain that much.
shibbu18111997 said:
I tried disabling cam2api by changing value to 0 in build.prop app but it didnot work . I removed persist code but cam2api is still enabled . Donot know why moto software sucks brain that much.
Click to expand...
Click to collapse
Did you reboot after removing the line from build.prop?
bazinga137 said:
Did you reboot after removing the line from build.prop?
Click to expand...
Click to collapse
Yes sir , i reeboted my device every time i made changes in the build.prop app
shibbu18111997 said:
Yes sir , i reeboted my device every time i made changes in the build.prop app
Click to expand...
Click to collapse
There is a quirk on stock nougat where permissions get messed up after editing a system file. Install root browser, navigate to system, find the build.prop file and in properties set the permission to -rw-r--r-- (644) like in the attached screenshot. Then reboot.
Theres a modded Motocam in the g5+ camera dev group. Also, Motocam with [email protected] enabled works flawlessly on stock oreo.
rjherms said:
Theres a modded Motocam in the g5+ camera dev group. Also, Motocam with [email protected] enabled works flawlessly on stock oreo.
Click to expand...
Click to collapse
Plz share the link of modded motocam bro
shibbu18111997 said:
Plz share the link of modded motocam bro
Click to expand...
Click to collapse
It's in the telegram channel. Nonlinks
rjherms said:
It's in the telegram channel. Nonlinks
Click to expand...
Click to collapse
What is the channel name ?
Moto G5+ Camera Development
rjherms said:
Moto G5+ Camera Development
Click to expand...
Click to collapse
Thanks for the help bro , one more help plzzz. I downloaded the motocam2 app , but i am not able to install it due to "Camera " named app i.e stock moto cam already installed. I installed xml magisk module but still not able to install motocam2
shibbu18111997 said:
Thanks for the help bro , one more help plzzz. I downloaded the motocam2 app , but i am not able to install it due to "Camera " named app i.e stock moto cam already installed. I installed xml magisk module but still not able to install motocam2
Click to expand...
Click to collapse
You need the xml patch as well

Latest P update & Gcam

Heyya ^^
Anybody got a working Gcam version with latest P update? Almost every version is broken ( Focus issues, green tint etc.. )
If you have a working version please share the link from Celsoz's page please ?
ali-k95 said:
Heyya ^^
Anybody got a working Gcam version with latest P update? Almost every version is broken ( Focus issues, green tint etc.. )
If you have a working version please share the link from Celsoz's page please ?
Click to expand...
Click to collapse
I do, Arnova8G2 v.8.3, though eis seemed to be removed.
WhatzIt2Ya said:
I do, Arnova8G2 v.8.3, though eis seemed to be removed.
Click to expand...
Click to collapse
Link? Android Version? 8.3 or 8.3b1 (Latest?)
WhatzIt2Ya said:
I do, Arnova8G2 v.8.3, though eis seemed to be removed.
Click to expand...
Click to collapse
Not working man. Same focus hunting issue.
AnmolGoyal said:
Not working man. Same focus hunting issue.
Click to expand...
Click to collapse
I installed it since Oreo, but it works fine, at least for me.
---------- Post added at 12:35 AM ---------- Previous post was at 12:34 AM ----------
ali-k95 said:
Link? Android Version? 8.3 or 8.3b1 (Latest?)
Click to expand...
Click to collapse
8.3b1
AnmolGoyal said:
Not working man. Same focus hunting issue.
Click to expand...
Click to collapse
Yeah. But there is a simple workaround. Switch to video mode and then switch back to camera mode. For now that seems to be working for me.
HPRG said:
Yeah. But there is a simple workaround. Switch to video mode and then switch back to camera mode. For now that seems to be working for me.
Click to expand...
Click to collapse
Even this is not working. What version of gcam are you using? And can you link it please?
Did you guys perform a reset from the settings after updating? Because I did and after that the method that uses setprop to enable camera 2 API doesn't work anymore. Do you know a solution? Thanks a lot.
Set camera resolution to 9mp. Works for me on gcam version 6. As for front cam green tint need to use gcam version 5.
^^ Second that.
x-flyer said:
Did you guys perform a reset from the settings after updating? Because I did and after that the method that uses setprop to enable camera 2 API doesn't work anymore. Do you know a solution? Thanks a lot.
Click to expand...
Click to collapse
You just need to add camera2api line via terminal and save it that's all No need for tools or installing anything.
At the mean time almoat everything is giving green tint or Focus Issue, so I'll wait
ali-k95 said:
You just need to add camera2api line via terminal and save it that's all No need for tools or installing anything.
At the mean time almoat everything is giving green tint or Focus Issue, so I'll wait
Click to expand...
Click to collapse
I have tried these two lines using an adb shell from twrp without being rooted and they didn't work.
Code:
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enable 1
To confirm can you tell me which lines you used?
EDIT:
I think i solved it. I went into recovery. Using adb pull and push commands i edited the persistent_properties found in /data/property. I copied and pasted a random line and changed it into the actual line to enable camera2api. Also i changed the permission of the file after pushing it using "chmod 600 [file]". Now Manual Camera Compatibility shows all green marks.
x-flyer said:
I have tried these two lines using an adb shell from twrp without being rooted and they didn't work.
Code:
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enable 1
To confirm can you tell me which lines you used?
EDIT:
I think i solved it. I went into recovery. Using adb pull and push commands i edited the persistent_properties found in /data/property. I copied and pasted a random line and changed it into the actual line to enable camera2api. Also i changed the permission of the file after pushing it using "chmod 600 [file]". Now Manual Camera Compatibility shows all green marks.
Click to expand...
Click to collapse
I used a terminal app from the store and just added the lines there with SU permissions, worked just fine, although i do have root
AnmolGoyal said:
Even this is not working. What version of gcam are you using? And can you link it please?
Click to expand...
Click to collapse
V8.3 - https://www.celsoazevedo.com/files/...f/GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk
Switch to video mode. Wait till it sets in at the perfect focus point. Then switch to camera.
---------- Post added at 05:17 PM ---------- Previous post was at 04:32 PM ----------
apecx92 said:
Set camera resolution to 9mp. Works for me on gcam version 6. As for front cam green tint need to use gcam version 5.
Click to expand...
Click to collapse
Yes this works. But compared to Arnova's V8.3b, none of the newer mods (Including Arnova's latest version - 6.xx) seems to produce crispier images as it used to do before. I agree that the older app took too long to process the images. But the reduction in quality is pretty evident. I'd still stick with the older version.

Any good Gcam for stock Rom?

Currently im in stock ROM rooted but i can't find any gcam that works good with my phone. The version i have is the fu24 one which works but not as it should for the focus side.
Suggest me a version down below for the stock ROM.
Thanks
I don't think the focus on any GCam works on the stock ROM after a update. There's a kind of fix where you need to set the image aspect ratio to 16:9 for it to work. You lose a few pixels but hey, at least the camera finally works.
@Zentom In customs roms 9.0, will it work normally?
AdrianDR94 said:
@Zentom In customs roms 9.0, will it work normally?
Click to expand...
Click to collapse
I've heard that yes, they work perfectly on custom pie ROMs.
Zentom said:
I don't think the focus on any GCam works on the stock ROM after a update. There's a kind of fix where you need to set the image aspect ratio to 16:9 for it to work. You lose a few pixels but hey, at least the camera finally works.
Click to expand...
Click to collapse
so switching to 16:9 ratio, Gcam wont have Autofocus issues in stock pie Roms?
Also is trick is for gcam v5 or v6 or both?
zoneofSAM said:
so switching to 16:9 ratio, Gcam wont have Autofocus issues in stock pie Roms?
Also is trick is for gcam v5 or v6 or both?
Click to expand...
Click to collapse
Correct. I'm using my GCam on 16:9 on my Stock, no modification Pie ROM for a while now and have absolutely no issues. And yes, this fix works for all the GCam versions. I have both v5 and v6 and autofocus works on both.
Zentom said:
Correct. I'm using my GCam on 16:9 on my Stock, no modification Pie ROM for a while now and have absolutely no issues. And yes, this fix works for all the GCam versions. I have both v5 and v6 and autofocus works on both.
Click to expand...
Click to collapse
Can you send the version of gcam you have? Or a link to download?
emiljano539 said:
Can you send the version of gcam you have? Or a link to download?
Click to expand...
Click to collapse
Sure! I can't upload over here because of the file size I think but I'll give links.
I use this one for Night Sight and for RAW (the front camera doesn't work in it): https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_V1.apk
I rarely use this one for HDR+ with a longer shutter, and the front camera works too: https://f.celsoazevedo.com/file/gcamera/GoogleCamera-Pixel2Mod-Arnova8G2-V1.apk
This is the best one I have used so far. If you drop back cam to 9MP the autofocus issue goes away. I'm using stock androidone pie on MiA1 GCam_6.2.024_N7P_test1.apk
Sent from my Mi A1 using Tapatalk
https://f.celsoazevedo.com/file/gcamera/GCam_6.2.024_N7P_test1.apk
Try this one
guys, where is problem on stock rom in AF? i have root so maybe if I change kernel this solve this issue, what do you think?
minerek said:
guys, where is problem on stock rom in AF? i have root so maybe if I change kernel this solve this issue, what do you think?
Click to expand...
Click to collapse
I gave up... Installed PE with A10 everything is working way better than the stock ROM also found a overwhelmer gcam that doesn't crashes at all.
emiljano539 said:
I gave up... Installed PE with A10 everything is working way better than the stock ROM also found a overwhelmer gcam that doesn't crashes at all.
Click to expand...
Click to collapse
Hmm so I need to clean all my data right? Ok I will think about it.. I can install this rom like update to stock? I using recovery twrp to update - I have root and unlocked.
minerek said:
Hmm so I need to clean all my data right? Ok I will think about it.. I can install this rom like update to stock? I using recovery twrp to update - I have root and unlocked.
Click to expand...
Click to collapse
It's a bit more complicated than that but its not hard to be honest . This is the guide i followed to flash my mi a1 https://telegra.ph/Installation-Guide-For-Mi-A1-Pixel-Experience-03-26 . Take a backup of everything before flashing the ROM if something goes wrong also watch a couple videos before trying it . Good Luck

Categories

Resources