Download Link:
https://drive.google.com/open?id=11NpfjayIkJTjcu3j_IKdEV4GOPFU9p3v
Open Camera Official Website:
https://opencamera.sourceforge.io/
As some of you might know, the amazing open source camera app known as Open Camera has issues taking advantage of the Mi 5s's camera2 API capabilities. This is because of a few lines in the app source code that disable all camera2 API functionalities if not all the cameras on the device support it. This is the case with the Mi 5s. The back camera has Level 2(Full) API capabilities but the front camera only has Level_0(Legacy) capabilities.
As a result, the app decides that the entire phone should not be able to use the camera2 API in order to improve stability but unfortunately, this means that users like us are not able to take advantage of one of the best camera apps on the market. This is why I went through the source code and changed a few lines of code in order to bring the Open Camera app to all devices that might be able to use it. Just be careful in using the front camera with camera2 API features as it will likely cause your app or your system to crash and restart.
I'll try to keep this "unlocked" version updated at least once a month.
For those interested, here are the few lines of code I changed:
Code:
if (deviceLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY) {
return requiredLevel == deviceLevel;
}
// deviceLevel is not LEGACY, can use numerical sort
return requiredLevel <= deviceLevel;
to
Code:
return true;
in .\opencamera-code\app\src\main\java\net\sourceforge\opencamera\CameraControler\CameraControlerManager2 function isHardwareLevelSupported
and
Code:
this.supports_video_stabilization = camera_features.is_video_stabilization_supported;
to
Code:
this.supports_video_stabilization = true;
in .\opencamera-code\app\src\main\java\net\sourceforge\opencamera\Preview\Preview
Open camera is released under GPL v3 or later. All the original code can be found from the official project website linked above. No changes aside from the one mentioned were made.
Thank you. I have tried it on MIUI 9 (latest Xiaomi.eu stable) and I see the option for turning on camera 2 api, but after I do that I have no options for video stabilisation. Do I have to enable anything else? Does video stabilisation work for you in 1080p and even 4k?
I didn't even realise that the feature was still disabled, thanks for letting me know. I'll release an updated build later tonight.
Thank you dev for this mod. This is exactly what I'm looking for. High FR on normal speed recording.
Any update about video stabilization? I can enable camera 2 and stabilization, but EIS is not working. Is there any way to have EIS like on Redmi Note 5 pro, 6x, Mi max 3 in open camera? They have eis using gyro and video recording is smooth as on pixel phones.
Related
I think I got some problem on ASUS Zenfone 3 (ZE520KL/ZE552KL). I can't select Resolution more than 9.4 MP (rear camera)
But Front camera is working well.
I attached logcat , Camera2Test and Resolution Select Screenshot. @Arnova8G2
That's normal. The camera mod is from pixel devices which don't have 16mo sensors. Therefore 16mp won't work in camera ports too
Best pixel camera port, I use for since version 5. It's a major go!
Working great on my Oreo ZE552KL, just the AR stickers feature it's broken.
Only 9.4 mp max resolution, what can be done to solve this?
The hdr+ doesn't work on the arnova version though works on the BCG version. The app will often crash when a scene is dark or more than two pictures are clicked.
These observations are off the stock and custom roms both on Oreo. @Arnova8G2 I'VE attached the logs
Here is a test version with the possibility to select the Support level override
that will hang the HDR + with your device
https://drive.google.com/open?id=17dSGeDFZFBObrMY_E0Y_cPyc6j_Vx1lh
Arnova8G2 said:
Here is a test version with the possibility to select the Support level override
that will hang the HDR + with your device
https://drive.google.com/open?id=17dSGeDFZFBObrMY_E0Y_cPyc6j_Vx1lh
Click to expand...
Click to collapse
Is there any chance (even for other devices) that gCam can work for MM, sir ?
Arnova8G2 said:
Here is a test version with the possibility to select the Support level override
that will hang the HDR + with your device
https://drive.google.com/open?id=17dSGeDFZFBObrMY_E0Y_cPyc6j_Vx1lh
Click to expand...
Click to collapse
weirdly enough still doesn't work with a few combinations Tried the combinations that used to work on my gemini(mi5).Thanks for your efforts @Arnova8G2. let me know if alog is required.
It would be nice if Google Camera HDR+ would work at full resolution with ze520kl & ze552kl.
Add more features
Any way to add Fingerprint selfie on Gcam mod
[ask]
what the best version for now ? there update ? waiting for night mode
Do you have OIS at Gcam?
ZenFone 3 Android 8 whit GCam
I can not run any of the recommended GCams from version 6. I tested all suggested apks in an attempt to get the latest stable version for ZenFone 3. The version that is steadily running for this model is: "GoogleCamera-Pixel2Mod -Arnova8G2-V7beta-test-9.apk "
Slow motion is not working my zenfone 3 Z017db
And not only 9mp cam resolution
what's the best version for now ?
Having ZS570KL here. Problem with Autofocus. Currently available to be use software Pxiel2Mod V7 Beta 9. Suspecting Gcam not using Laser AF that cause this issue.
This thread has been created to provide Redmi Note 5 Pro CN/Global feedback to @Arnova8G2 regarding his port of the Google Camera app.
Describe your experience (mostly what doesn't work as expected)
Provide logcats: the dev does not have your phone, so logs are needed if you want him to fix stuff (How to take logcats?)
Mention @Arnova8G2 when you post your feedback
ALL FEEDBACK PROVIDED IN OTHER THREADS OR WITHOUT LOGS WILL BE IGNORED​
Known Issue on Redmi note 5 CN/Global (Whyred)
Front camera HDR+enhanced completely black image (When using in good light , lowlight and extreme low light condition ) FIXED WITH CAMERAPATCH
Front camera ZSL HDR+ didn't save the photo (When using in good light , lowlight and extreme low light condition )If hdr+ enhanced work zsl hdr+ will work too FIXED WITH CAMERAPATCH
4K recording crash. FIXED WITH CAMERAPATCH
Working on Redmi Note 5 CN/Global (Whyred)
BackCamera (ZSL HDR+ / HDR+ enhanced)
Front Camera (Full Resolution 13mp)
Motion Photos
Face Retouch
Video Recording 30/60fps FHD
Electronic image stabilization(EIS)
Portrait mode
Slowmotion (1080p/120fps 720p/240fps)
Etc...
Link Stable Google Camera for Redmi note 5 CN/Global :
Recommend Use Nexus 6P Config for Super Sharp Image.
https://www.celsoazevedo.com/files/android/google-camera/f/GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk
Big thank to @nhappymann for fixed front camera & more.
Camera Patch : MOD EDIT: REMOVED - must be legitimate download link, not TG redirect
Logcat Gcam and stock camera lib : https://drive.google.com/drive/folders/1WykZd0Jr8tcReSeSlZjC2QYhte4VIKs4
Logcat camera sensor detail : https://drive.google.com/file/d/1oinwmnXU0RATu-AnD-fdjeXi6MfSsHwV/view
Nom sokheng said:
This thread has been created to provide Redmi Note 5 Pro CN/Global feedback to @Arnova8G2 regarding his port of the Google Camera app.
Describe your experience (mostly what doesn't work as expected)
Provide logcats: the dev does not have your phone, so logs are needed if you want him to fix stuff (How to take logcats?)
Mention @Arnova8G2 when you post your feedback
ALL FEEDBACK PROVIDED IN OTHER THREADS OR WITHOUT LOGS WILL BE IGNORED
Known Issue on Redmi note 5 CN/Global (Whyred)
Front camera HDR+ enahnned completely black image
Front camera ZSL HDR+ didn't save the photo
Link Gcam for Redmi note 5 CN/Global : https://drive.google.com/file/d/18ZgkACL9pkpiS8-v1PfyWfu7nXu5CyQs/view
Click to expand...
Click to collapse
Enhanced*
Thank you. Usefull thread. Hope for a stable Google Camera port :fingers-crossed:
Great.. love to see arnovas mod for Redmi Note 5 Pro
Does 4k working in global version?
tech4rhm said:
Does 4k working in global version?
Click to expand...
Click to collapse
now 4K recording it's not working on Redmi note 5 pro Indian / CN / Global when using gcam but other app can record 4K and stock cam miui but for stock miui cam need to root.
On MIUI 9.2.7.0 GLOBAL STABLE Android 7.1.1
Non rooted & Camera 2Api not enabled
The app crashes before launching.
This is the log:
java.lang.NullPointerException: Attempt to get length of null array
at cok.a(PG)
at ccv.a(PG)
at com.a(PG)
at jxg.a(PG)
at con.run(PG)
at gvc.run(Unknown Source)
at hzy.run(PG)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at avv.run(PG)
What do I need to do apart from enabling camera 2api?
s.mohit said:
On MIUI 9.2.7.0 GLOBAL STABLE Android 7.1.1
Non rooted & Camera 2Api not enabled
The app crashes before launching.
This is the log:
java.lang.NullPointerException: Attempt to get length of null array
at cok.a(PG)
at ccv.a(PG)
at com.a(PG)
at jxg.a(PG)
at con.run(PG)
at gvc.run(Unknown Source)
at hzy.run(PG)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at avv.run(PG)
What do I need to do apart from enabling camera 2api?
Click to expand...
Click to collapse
you have to root.. then enable camera2api.. only after that GCam will work!
I am using RR rom as secondary rom without root and tried to installed your app but it install but doesn't open so there is no way to make it work without rooting the rom because I already rooted miui rom and can't root secondary rom.
Shahitto said:
I am using RR rom as secondary rom without root and tried to installed your app but it install but doesn't open so there is no way to make it work without rooting the rom because I already rooted miui rom and can't root secondary rom.
Click to expand...
Click to collapse
Flash camera api2 zip or enable by maunal in build.prop
how to get my logcat in gcam
how to get my logcat in gcam
Ryan_OY said:
how to get my logcat in gcam
Click to expand...
Click to collapse
Matlog app
java.lang.VerifyError: Verifier rejected class idv: void idv.<init>(int) failed to verify: void idv.<init>(int): [0x0] Constructor returning without calling superclass constructor (declaration of 'idv' appears in /data/app/com.google.android.Pixel2Mod-1/base.apk)
at idd.a(PG)
at iea.a(PG)
at ids.a(PG)
at ido.a(PG)
at ido.a(PG)
at ids.a(PG)
at ido.a(PG)
at ido.a(PG)
at idb.onError(PG)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks$1.run(CameraDeviceImpl.java:1720)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.os.HandlerThread.run(HandlerThread.java:61)
Camera 2 API is enabled but can't use front camera on note 5 pro global. Any solution?
I'm wondering what defines the exposure range of the lens, I can only get 0.53s to the longest in my whyred.
Thanks! However, on my device, video recording will crash.
I'm using RN5 CN with RR OS.
When I open it it doesn't start and open other app
Gcam mod
Everything is working for me except
4k video recording
Front camera(normal)
Strange ... Simple front camera doesn't show anything though portrait works flawlessly
Even Motion photos work
GoogleCamera-Pixel2Mod-Arnova8G2-V7-Final.apk
rockuppl said:
Everything is working for me except
4k video recording
Front camera(normal)
Strange ... Simple front camera doesn't show anything though portrait works flawlessly
Even Motion photos work
GoogleCamera-Pixel2Mod-Arnova8G2-V7-Final.apk
Click to expand...
Click to collapse
Which phone are you using bro?
talk2indrajit said:
Which phone are you using bro?
Click to expand...
Click to collapse
Note 5 pro only
Why everyone need camera 2 API. Miui camera is best, I test on miui 9 Google camera and it is the same. Only advantage of camera api it is possibility to write RAW file, but only some people want it
No, Gcam produces better dynamic range, better color production, less noise. In daylight difference not that big but especially in low light gcam is far better. Only bad thing on gcam you have to wait too long for shoot a photo. Also stock camera on selfies is literally garbage, doesn't use all capabilities of the sensor.
No, Google Camera is absolutely better, especially on the night photos :highfive:
I not tested front camera on camera 2 API.
Back camera is near the same imo
Gcam generally produces better images, the result is worth the added processing time. Portrait selfie is a lot damn sharper and that one is nowhere MIUI camera can touch.
Guys, join the petition on the official MIUI forum. Here's the link, we want our Camera2 API back on our Mi Note 3!!
http://en.miui.com/thread-3737375-1-1.html
Done
Config about Camera from Miui 10 has difference from Miui 9 which Mi 10 has not Level 3 but Mi 9 has config Level 3
you can install app name : camera2 Probe and droid hardware info from play store to check your config
So we are staying with miui 9 until xiaomi unlocks this?
Plz delete this thread
Thank you @unisol107 for your guide.
I still prefer Open Camera on 4k with EIS - it needs to disable Camera2API for bringing this resolution back in Open Camera settings, otherwise you will get all those strange resolutions - including 4000 x 2000 - , but no 3840x2160.
Thorp said:
Thank you @unisol107 for your guide.
I still prefer Open Camera on 4k with EIS - it needs to disable Camera2API for bringing this resolution back in Open Camera settings, otherwise you will get all those strange resolutions - including 4000 x 2000 - , but no 3840x2160.
Click to expand...
Click to collapse
But many users use gcam which needs cam2api enabled. And their isn't EIS in 4k even in open camera, at least not in Indian version i.e note5pro. This guide is useful for very few people who
1- Don't like the 1080p quality.
2- Want 4k like detail as well as EIS.
3- Want a balance between the two.
Thanks for giving time to read this post and share your views.
Use snap camera hdr, it records the best 4k footage with EIS with camera2 api enabled more info here https://forum.xda-developers.com/showpost.php?p=77237155&postcount=9
Saicoth said:
Use snap camera hdr, it records the best 4k footage with EIS with camera2 api enabled more info here https://forum.xda-developers.com/showpost.php?p=77237155&postcount=9
Click to expand...
Click to collapse
I think that's bcoz of different sensors in global and Indian variant. Mine is indian and it doesn't record 4k stabilized. Not in open camera nor snap camera. Snap camera hdr is my favourite app otherwise.
Is the stock (Android 9) ZTE camera app able to be exported and used on a third party ROM (Lineage) ? I've tried multiple third party camera apps and it appears the main rear camera hardware is being reported as only being 12MP.
That's really confusing because the rear camera array is advertised as being a 48MP for standard & wide angle shots, a 8MP for "telephoto" shots (but who seriously 3x optical zoom is telephoto?) , and 20MP for ultrawide shots.
Are they pulling a Bait-n-Switch by software interperlating the main camera up to 48MP?
I'm guessing there are closed source libraries / drivers which allow the OEM camera app to access all of the various cameras? Maybe someone from the Axon 7 group may know?
Has someone already attempted to do this? Does anyone want to take a crack at this before I spend two or seven weeks attempting to do so?
That's 4to1 Pixelbinning. Don't worry about that. 12 MP delivers better results than 48 MP!