FORUMS
Remove All Ads from XDA

Enabling Camera2 API

18 posts
Thanks Meter: 10
 
By chada77, Junior Member on 22nd July 2016, 01:01 PM
Post Reply Email Thread
16th September 2016, 07:48 PM |#11  
Senior Member
Thanks Meter: 103
 
More
Works fine for me, manual camera test shows everything is supported. Also I don't get any upside down problem. MIUI EU 8.0.10.0. MIUI camera's manual mode is actually enough for most conditions. Long exposure for sure works great though I've only tested max 4s at ISO 100. I really need an object for taking 32s exposure.
The Following User Says Thank You to leledumbo For This Useful Post: [ View ] Gift leledumbo Ad-Free
 
 
24th September 2016, 09:18 AM |#12  
luigi0824's Avatar
Senior Member
Flag Santa Rosa
Thanks Meter: 25
 
More
Quote:
Originally Posted by leledumbo

Works fine for me, manual camera test shows everything is supported. Also I don't get any upside down problem. MIUI EU 8.0.10.0. MIUI camera's manual mode is actually enough for most conditions. Long exposure for sure works great though I've only tested max 4s at ISO 100. I really need an object for taking 32s exposure.

did you check your front cam to see if its upside down? what rom are you using?
24th September 2016, 06:10 PM |#13  
Senior Member
Thanks Meter: 103
 
More
Quote:
Originally Posted by luigi0824

did you check your front cam to see if its upside down? what rom are you using?

I don't just check, I use it, often. I'm on MIUI 8.0.10.0.
25th September 2016, 10:12 AM |#14  
luigi0824's Avatar
Senior Member
Flag Santa Rosa
Thanks Meter: 25
 
More
Quote:
Originally Posted by leledumbo

I don't just check, I use it, often. I'm on MIUI 8.0.10.0.

is it china rom or global rom?
26th September 2016, 01:16 PM |#15  
Senior Member
Thanks Meter: 103
 
More
Quote:
Originally Posted by luigi0824

is it china rom or global rom?

EU (therefore China)
26th September 2016, 02:28 PM |#16  
luigi0824's Avatar
Senior Member
Flag Santa Rosa
Thanks Meter: 25
 
More
Quote:
Originally Posted by leledumbo

EU (therefore China)

where did you downloaded it?
27th September 2016, 03:00 PM |#17  
Senior Member
Thanks Meter: 103
 
More
Quote:
Originally Posted by luigi0824

where did you downloaded it?

https://xiaomi.eu/community/forums/m...-releases.103/
The Following User Says Thank You to leledumbo For This Useful Post: [ View ] Gift leledumbo Ad-Free
28th September 2016, 02:17 AM |#18  
IgorEisberg's Avatar
Senior Member
Thanks Meter: 3,615
 
Donate to Me
More
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. Don't touch any entries for CameraId 0!
Save and reboot your device.
EDIT: Attached a flashable ZIP for Mi 5 (Pro) devices.
Attached Thumbnails
Click image for larger version

Name:	Camera2Fix.png
Views:	6824
Size:	45.1 KB
ID:	3888283  
Attached Files
File Type: zip Mi5_Camera2Fix.zip - [Click for QR Code] (177.2 KB, 6530 views)
The Following 32 Users Say Thank You to IgorEisberg For This Useful Post: [ View ] Gift IgorEisberg Ad-Free
28th September 2016, 03:07 AM |#19  
Senior Member
Thanks Meter: 60
 
More
Quote:
Originally Posted by IgorEisberg

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. Don't touch any entries for CameraId 0!
Save and reboot your device.
EDIT: Attached a flashable ZIP for Mi 5 (Pro) devices.

Flashed, can confirm it works on my device. Latest weekly CM13 build.
The Following User Says Thank You to kylemd For This Useful Post: [ View ] Gift kylemd Ad-Free
28th September 2016, 07:57 AM |#20  
Junior Member
Flag Madrid
Thanks Meter: 1
 
More
Flashed and I also can confirm it works with latest Resurrection Rom
The Following User Says Thank You to gevaudan For This Useful Post: [ View ] Gift gevaudan Ad-Free
29th September 2016, 10:33 AM |#21  
luigi0824's Avatar
Senior Member
Flag Santa Rosa
Thanks Meter: 25
 
More
Quote:
Originally Posted by leledumbo

https://xiaomi.eu/community/forums/m...-releases.103/

I can only see are 6.x.x roms? where is it specifically?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes