Problem with OIS - Xiaomi Mi 5 Questions & Answers

On the LineageOS 14.1 or AospExtended ROM V4.2 firmware, the stabilizer does not work in 4 directions, but only in 2. I understood this because of the activated 2 api. If you disable it, then patch calibration will help https://github.com/dobragab/Mi5Calibrate
However, then the front camera will be upside down! I do not know how to solve this problem. I found a possible solution on the Internet, but it does not work!
Code:
Enable it yourself from the build.prop, set persist.camera.HAL3.enabled to 1. Note that front camera will be vertically flipped after this, so modify /system/etc/camera/msm8996_camera.xml as well. Change MountAngle for CameraId 2 (there are two of them, change both) from 360 to 270.
Https://www.tapatalk.com/topic/73822/35626
How do I calibrate the camera? Who does it work in 4 directions at all?

Related

[MOD]Camera NX V7.4, Google Camera with Pixel features for Nexus2015

Hello N6P users, I succeed in getting the ZSL HDR+ works on Nexus 5X, as Nexus 6P has the same camera hardware and better SoC, I'd like to ask someone test my mod, to see if the function works.
What's ZSL HDR+?
ZSL = zero shooting lag, means you won't get camera freeze after taking a HDR+ auto shoot. it is build-in the Google Camera 4.2 and only works on Pixel phones, now I force the app using Pixel configuration, it should perform the same ZSL HDR+ shooting on Nexus 6P.
Details about the ZSL HDR+.
ZSL-enhanced For 8.0+ only, ZSL HDR+ For 7.1.1+ only, Android 7.0 users please use NoZSL version.
APK was signed by ZipSign using my own signature, it won't replace your default camera app, it will install as a normal app, with a different camera icon.
Last Update
03/24/2018 V7.4
Base on Google Camera 5.2
1. Bring back HDR+ on Nexus 5X/6P.
2. Add Lens Blur mode.
3. EIS should be back to normal on Pixel 1, as EIS will be disabled with 4K quality with official version.
4. Active Google photos combination to view results again on enhanced version.
Details and download link for V7.4
01/02/2018 V7.3.1
Bug fix version
1. Fix abort HDR+ process FC problem.
2. Fix viewfinder flickering issue.
3. Add ZSL version for Android 7.1+, the previous one should be ZSL-enhanced version.
Bugs:
1. smart-burst always mark the first photo (ZSL-enhanced version).
2. Autofocus won't work after manually focus, need lock then unlock the AF/AE lock.
12/31/2017 V7.3
Current the new version is only for Android 8.0+, will release the updated version for Android 7.0.
1. Add the most wanted feature, Portrait mode (use Pixel 2's front lens software method, it needs a human face shows up to work.).
2. Remove silence feedback service, crash report service, and the broken Help menu, for faster app launch.
3. Remove Google photos combination, motion photo still works but you need to view it through Google photos manually.
I have named it wrong and this one should be the ZSL-enhanced version, sorry for the wrong package errors on Android 7.1.2
Details and download link for V7.3.1
11/06/2017 V7.2.0
This is bug fix version, not only for Pixel 2016, everyone who is using enhanced version should grab this update.
1. Fix crash issue on Pixel 2016.
2. Fix provider author name mistake leads to a thumbnail generation issue.
3. Motion pictures should be saved with a file name "MVIMG-####-##" right now, it became "IMG-####-##" in V7.1 version, which was wrong, this might mess the G photos when index media files.
Enhanced version users should get the experimental2017 library now.
Sorry, after some more test it seems experimental2017 is not necessary, just install the new version it will be ok.
About the Lens photo editor, it will be available after the picture upload to Google cloud.
10/19/2017 V7.1.0
1. Based on the last Google Camera 5.1.014, add Pixel 2016 phones support (need test).
2. Video 60FPS mode with EIS FC bug Fixed.
3. Motion photos for Pixel 2016 phones.
4. Micro video (Motion photos) EIS use gyro sensor enabled for Pixel (it was only activated on Pixel XL), need feedback.
5. Update icon support adapted icon and regular icon.
6. Disable Motion photos and G-photo integration for Android 7.1.
-- Now there is a new ZSL-enhanced version for Motion photos, G-photos combine, diet smart-burst on Android 8.x.
-- NOZSL and ZSL version will perform the old way while added new face retouching.
-- Bugs: after shooting photos, review it and you will see a black screen, need to wait for HDR+ process, I don't know it is normal or just hardware limited.
Details and download link for V7.2 / V7.1 (All version)
Useful links
Custom Rom Black Screen Issue Fix:
Please use the http://opengapps.org/ Open Gapps "Stock" Option or above. Or you can find the fix in N5X thread(See below).
* 60FPS video recording succeed with @defcomg 's mod.
Unlock 60FPS with this mod: https://forum.xda-developers.com/showpost.php?p=70748865&postcount=161
More Details of this mod, please go to the Nexus 5X thread
http://forum.xda-developers.com/nexus-5x/themes-apps/mod-google-camera-4-2-nexus-5x-android-t3477980
Donation support
If you like my work, feel free to buy me a coffee, https://www.paypal.me/chromloop . :highfive:
Donation list::highfive:
Jeffrey Dubinsky
Jorge Ciprian
Peter P Pizzimenti
So we're SOL if we are on 7.1?
cc101 said:
So we're SOL if we are on 7.1?
Click to expand...
Click to collapse
uuhhh (For 7.1.1 only, ZSL broken on 7.0)
opz187 said:
uuhhh (For 7.1.1 only, ZSL broken on 7.0)
Click to expand...
Click to collapse
Uuhhh, big difference between 7.0 and 7.1
Argh already using v3.1 but can't test v4 cos I'm under 7.0 ...
Works great. The zero lag is true for sure. Not a big camera user but it seems to do what is advertised.
I'm on the developers preview
Sent from my Pixel XL using Tapatalk
I am using it too. Awesome stuff. Thank you. Using it on 7.1.1.
Sent from my Pixel XL using XDA-Developers mobile app
Get black screen only on nitrogen rom. But have custom kernel installed
Works great on 7.1.1 even with ElementalX 3.08!! There is some lag when its moving around, the regular camera doesnt have this, but its probably what makes the ZSL possible! There is still some lag with HDR+ on, but none with HDR Auto
btw this is working mint dude. good job. plan to keep it updated? id def choose this over the stock dp'7.1 camera
inthedark22 said:
Get black screen only on nitrogen rom. But have custom kernel installed
Click to expand...
Click to collapse
He said loud and clear this is for dev preview 7.1.1, there is an older version for 7.0, and nitrogen falls in neither of those, because its 7.1.0 !!!
And @op great job, this is fantastic. Now if only 1080p 60fps worked, it would be a dream
inthedark22 said:
Get black screen only on nitrogen rom. But have custom kernel installed
Click to expand...
Click to collapse
probably because that's AOSP based. working on stock 7.1.1
7.1 7.1.1 7.1.0 ? too bad
Works great thanks
Sent from my Pixel XL using Tapatalk
Great work. Camera is really quick.
inthedark22 said:
Get black screen only on nitrogen rom. But have custom kernel installed
Click to expand...
Click to collapse
Can you try using ex kernel to see if it works? I think its the kernel thing, when we have the 7.1 kernel source we might get it work on 7.0.
vladniko said:
Works great on 7.1.1 even with ElementalX 3.08!! There is some lag when its moving around, the regular camera doesnt have this, but its probably what makes the ZSL possible! There is still some lag with HDR+ on, but none with HDR Auto
Click to expand...
Click to collapse
Did the lag happen when using the stock camera?
Good to see custom 7.0 kernel on 7.1.1 did not break the camera, I would like to see some one on 7.0 using ex 3.08 kernel can get camera usable.
Charles_l said:
Did the lag happen when using the stock camera?
Good to see custom 7.0 kernel on 7.1.1 did not break the camera, I would like to see some one on 7.0 using ex 3.08 kernel can get camera usable.
Click to expand...
Click to collapse
By lag I meant shutter lag with hdr+ on. With hdr auto, it works like a charm with zero shutter lag. This is all in the NZ Camera
vladniko said:
By lag I meant shutter lag with hdr+ on. With hdr auto, it works like a charm with zero shutter lag. This is all in the NZ Camera
Click to expand...
Click to collapse
Ah I see. I would like to ask if the zsl also works if you turn off the HDR+ ? As no zsl switch inside the app for N6P, only one for N5X and it is disabled by default...
I force it enable for N5X, but for N6P I dont know if it is enabled or not.
I suppose it is enabled as the bursts mode needs it.
Charles_l said:
Ah I see. I would like to ask if the zsl also works if you turn off the HDR+ ? As no zsl switch inside the app for N6P, only one for N5X and it is disabled by default...
I force it enable for N5X, but for N6P I dont know if it is enabled or not.
I suppose it is enabled as the bursts mode needs it.
Click to expand...
Click to collapse
Yea with hdr off there is Zero shutter lag

Modded Google Cam on Mix 2

Created this thread to share working settings for our Mix 2 + IMX 386 on the latest Modded Google Cam. Feel free to share your working setups for Google Cam
Version Google Cam V4.0
ROM: Xiaomi.eu 9.22
Settings: See picture attachments below
What doesnt work:
HDR+ with Flash On
Autofocus
Tap to focus
Manual Focus Fix:
Swipe left to go into video mode and tap to focus before going back into picture mode
It have the same main camera sensor as Mi 6 which also do not have autofocus and touch to focus to work.
It's quite annoying when it doesn't have HDR+ and autofocus together, hope it can be fixed in future version
Sent from my MIX 2 using Tapatalk
jaco168 said:
It's quite annoying when it doesn't have HDR+ and autofocus together, hope it can be fixed in future version
Sent from my MIX 2 using Tapatalk
Click to expand...
Click to collapse
You can manual focus using this workaround: Swipe left to go into video mode and tap to focus before going back into picture mode
Does the new version of Google GCam mod support Autofocus yet?
Has anyone tried the Google Camera v5.1 yet?
Link: https://www.androidcentral.com/pixe...motion-photos-and-other-features-working-some
I tried to install google camera,installed successfully,but stop working. keep give me error. so I can not run it.
If you want to test the latest versions for Modded Google Cam, check the MIi6 thread related to this, there are regular updates as soon as they are released by the original modders:
https://forum.xda-developers.com/mi-6/themes/google-camera-hdr-t3655762
What I found out: The Oneplus Camera also works on Mi Mix 2.
Also I think this is the original thread for the modded Google Camera: https://forum.xda-developers.com/oneplus-3/how-to/modded-google-camera-hdr-60fps-video-t3658552/ and it works for the Mi Mix 2 too.
kurtextrem said:
What I found out: The Oneplus Camera also works on Mi Mix 2.
Also I think this is the original thread for the modded Google Camera: https://forum.xda-developers.com/oneplus-3/how-to/modded-google-camera-hdr-60fps-video-t3658552/ and it works for the Mi Mix 2 too.
Click to expand...
Click to collapse
Does not work for me. Are you on miui or custom rom? Which version of gcam worked for you?
MIUI EU ROM and Magisk + Camera2 API Enabler Magisk Module
how is the mix2 with this, any samples? im considering this because ive had enough of the s8 and want pure android with the performance to boot, where as the s8 just doesn't cut it but the camera is amazing
Autofocus doesnt work with HDR/HDR+ enabled. The camera works fine with auto focus without HDR features. I HDR+ is the reason why you want this mod then we are out of luck, its no better than the default MIUI cam.. may be a tad better NR processing on low light images.
subashchandran said:
Autofocus doesnt work with HDR/HDR+ enabled. The camera works fine with auto focus without HDR features. I HDR+ is the reason why you want this mod then we are out of luck, its no better than the default MIUI cam.. may be a tad better NR processing on low light images.
Click to expand...
Click to collapse
Try this:
loooller said:
You can manual focus using this workaround: Swipe left to go into video mode and tap to focus before going back into picture mode
Click to expand...
Click to collapse
Are you sure auto focus works for the default cam app when having HDR enabled? It doesn't at least for me. Thus I see no difference between GCam mod, Oneplus camera and default camera. Also, manually focusing seems to work without the left swipe.
kurtextrem said:
Are you sure auto focus works for the default cam app when having HDR enabled? It doesn't at least for me. Thus I see no difference between GCam mod, Oneplus camera and default camera. Also, manually focusing seems to work without the left swipe.
Click to expand...
Click to collapse
So, I am writing this based on my experience on my Mi6 (Mi Mix 2 still has a locked bootloader for now), when you activate the HDR+ the autofocus will die, at that point you focus in Video mode, go back to Photo and take the picture.
In that way the HDR+ is working properly and as expected. You just need to keep your hands steady.
Also, on Mi6 has been reported that the Autofocus is working now with the latest version (with some bugs and messing around with the OmniVision module):
Kisakuku said:
B-S-G's Modded Google Camera 5.1.016 with HDR+ for Android 7.0 / ARM64 v1.1 All-in-One Full Manual
Download
Changelog:
Added more camera configs
Fixed circular auto-focus indicator
Fixed auto-focus debug info display
Turn on camera.af.debug.show in developer settings
New settings take effect after application is restarted
Must clear data / cache after installation and if the app force closes
Click to expand...
Click to collapse
Lexmazter said:
So, I am writing this based on my experience on my Mi6 (Mi Mix 2 still has a locked bootloader for now), when you activate the HDR+ the autofocus will die, at that point you focus in Video mode, go back to Photo and take the picture.
In that way the HDR+ is working properly and as expected. You just need to keep your hands steady.
Also, on Mi6 has been reported that the Autofocus is working now with the latest version (with some bugs and messing around with the OmniVision module):
Click to expand...
Click to collapse
My Autofocus works with HDR+ on, I got the APK from the mi 6 thread (b-s-g camera).
https://forum.xda-developers.com/showpost.php?p=74513338&postcount=184
Any improvement in low light? What about portrait mode with the mix2? Is it working?
any sample images?
gb155 said:
any sample images?
Click to expand...
Click to collapse
Check the samples from Mi 6 thread below:
tupacsoul said:
Ok, I've been testing the kenzo build, but same error, autofocus stop working with HDR+ on.
By the way, I think anyone must work on this for our device... the differences betweet photos taken with MIUI camera and Google Camera are very big...
This is with Google Camera on HDR+
This is with MIUI Camera on HDR
This is with Google Camera on HDR+
This is with MIUI Camera on HDR
(Click on the image to see bigger the detail)
As can be seen, the HDR+ post processing is very much better than MIUI original.
Click to expand...
Click to collapse

Google Camera mod 5.1.018

Working Gcam mod 5.1.018 avaiable from the below thread
https://www.celsoazevedo.com/files/android/google-camera/
Please find below the apk link
https://www.celsoazevedo.com/files/android/google-camera/f/MGC_5.1.018.177470874.41362666__A7.0-8.1_MI5S_v2e.apk
Haven't tried portrait mod, although option is there.
Updated app 11/03/2018: https://www.celsoazevedo.com/files/android/google-camera/f/MGC_5.1.018_v2e_tolyan009_v1.3.5.apk
Notes:
Features are same as stock Camera + google camera features available in older versions.
Portrait mode and hdr+ requires proper camera2api implemented.
farisnanosoft said:
Haven't tried portrait mod, although option is there.
Click to expand...
Click to collapse
This app has old style portrait mode that requires moving phone upwards after shot, it's nothing fancy since this was avielable since like 2.5
iks8 said:
This app has old style portrait mode that requires moving phone upwards after shot, it's nothing fancy since this was avielable since like 2.5
Click to expand...
Click to collapse
enable the new portrait mode from b-s-g mod settings. It will switch lens blur
Portrait mode does not work. Only displays the icon on the screen.
How do you get this APP worked?
I'm on LineageOS 14.1, already added "persist.camera.HAL3.enabled=1" with a magisk module, and 'getprop | grep camera' shows it's enabled, but the APP you provided still keeps force stopping. neither can Camera2 Probe from playstore detects any information about Camera2 API.
Could you please give some advice on my issue? Thank.
BTW, I see GCAM 5.1 is for 8.0+, so are you on LineageOS 15.1?
Update: Seems something's wrong with my ROM... It works now, but can you use HDR+? Which profile did you select?
Update 2: Camera is broken if I add "persist.camera.HAL3.enabled=1", even AIDA64 can't detect the camera, so forget about Camera2 API...
I see no HDR option, does that mean HDR is just automatically on or that it hasnt' been added in yet?
Keep up the good work!
edison0354 said:
How do you get this APP worked?
I'm on LineageOS 14.1, already added "persist.camera.HAL3.enabled=1" with a magisk module, and 'getprop | grep camera' shows it's enabled, but the APP you provided still keeps force stopping. neither can Camera2 Probe from playstore detects any information about Camera2 API.
Could you please give some advice on my issue? Thank.
BTW, I see GCAM 5.1 is for 8.0+, so are you on LineageOS 15.1?
Update: Seems something's wrong with my ROM... It works now, but can you use HDR+? Which profile did you select?
Update 2: Camera is broken if I add "persist.camera.HAL3.enabled=1", even AIDA64 can't detect the camera, so forget about Camera2 API...
Click to expand...
Click to collapse
Portrait mod requires camera2api enabled. Almost of the moto doesn't have it enabled by default except those with OS 7.1+.
Try with latest custom rom.
Check this thread as well. https://forum.xda-developers.com/moto-z-play/themes/gcam-moto-z-play-t3711826/amp/
Its showing app doesn't compatible with your device ..I am using AOSP ext 7.1.2
Works on stock 7.0 for photos. Had to lower to 720p for video. Would be nice to get 1080p working for video.
As mentioned by others; can't find HDR(+).
Installed the latest APK on my Moto X that is running stock 7.0.0. I can get portrait mode to work by switching the camera from back to front to back.
I read a few threads about the modded camera app and dont see how to enable Camera2API. Any suggestions?
EDIT: Is there an option to have Pics saved directly to the SD card? I dont see it under "settings"
EDIT2: Looks like I need to edit build.prop and enable "persist.camera.HAL3.enabled=1".
EDIT3: After editing the build.prop, the Camera app stopped working. It just showed a black screen.
Non of them support HDR.. I'm sticking with Moto Camera.
Not work on Moto X Play
Not work on Moto X Play why??????

Pixel Camera Ported with HDR+ , portrait mode (with both front and back camera now).

I found a fix on a youtube channel for portrait mode for front camera after a lot of googling. The key is to set a manual iso (idk why) while using front camera. The link to that is here
https://drive.google.com/file/d/16BT6C02pgvO3usJxCe8C0u_sVi9CbMOI/view?usp=sharing
Instruction -
Enable camera2api.
Download app, instalL.
Open settings and then do the settings u like.(i use pixel 2 and pixel 2017 zsl+ ) and other obvious settings( like turning on portrait mode etc.)
After that set the MANUAL FIXED BLACK LEVEL ONSET to 63.50 and enable.
Now everytime you use the front camera you have to turn that left slider (which i think is of iso) to 100 or any other value from auto, then hdr+ and portrait mode in front camera will also work.
This is not my work , i am only sharing it.
Credits to people who made this (arnovag2 ,TCHNO VKKI youtube channel guy etc.)
This is my first post and i dont really know what to add in your posts ,(also not liking typing this much) but i thought everyone should know this fix.
Hit thanks if this helped you.(actually idk what thanks is for LOL)
Cheers!
Front camera with HDR+ is working but video recording is not working
csknaim2 said:
Front camera with HDR+ is working but video recording is not working
Click to expand...
Click to collapse
Try using nexus 6p model. But you will lose face retouch.
Quote
I checked it ... it doesn't work in miui globle stable rom 9.2.5 in redmi4....i also tried many apks but no one is running correctly if front cam works back cam doesn't even some of didn't even opening and keeps closing all the time...(my phone is rooted and camera2 api is enabled)
the app on works in custom roms like rr rom,pixel experience rom...
It works, thanks! Tested on redmi 4x with MIUI9.2. Just don't go with the ISO too high. ISO3200 and above force crash camera app.
Front & Back portrait working nicely. But video recording getting some continues sound.

Front camera upside down, any fix?

Hi, I have cpMiui, and since I want Google Cam I've installed from Magisk "Pixel2Experience" containing camera2api. Everything works but front camera is inverted. How can I fix it?
Solved
Found a fix for the front camera being flipped: You need to edit "/system/etc/camera/msm8996_camera.xml".
There are 4 entries: 2 for the back camera (CameraId 0) and 2 for the front camera (CameraId 2).
We'll edit only the 2 for the front camera: We'll change the "MountAngle" from 360 (which means "Defined by kernel") to 270.

Categories

Resources