[CAMERA MOD(S)] Tadi's libhacks (Pixel's chromatix exposures, new camera resolutions) - Xiaomi Mi 5s Themes, Apps, and Mods

The first:
I really like to thank @shaneel1491 for introducing me to @defcomg and for making some mods by himself :>
At the starting point of this thread, I present you ported autoexposure tables from the Pixel. It won't likely positevely or negatively affect quality of your videos and photos, but it should certainly fix the exposure bugs (inconsistent framerate in Camera 1 API 120 fps mode and exposure flashes on Camera2 API apps, such as Google Camera).
The libs are few, but that's because they are the only chromatix autoexposure libs on Pixel. I plan to release BB KeyOne/Nokia/XZ1 versions likely.
Why the Liteon ones only? If you have such a module as Semco, then inform me here and I may work on it too.
Won't my device go boom? Not likely. I mean, I don't want to help fixing placebo bricks Just reflash your current ROM, that's it.
From what version those libs are? 7.9.7 (xiaomi.eu). If something big gets changed or something will start to work bad, then I likely will fix it one day.
How to even use them? ??? Use your root file manager and replace the current ones with mine in /system/vendor/lib/. Set 0644/rwrr permissions for each file. And better backup the original ones, as I won't download a system dump to send you those ;_;
So it means that they are not flashable? Exactly! I had no time for this currently :>
The current state for capricorn_exposure_7_9_7_pixelised.zip:
- everything works
- Camera2 API apps now go up to ISO 8714 in auto, instead of 6400 (the longest auto exposure time stays the same - 1/17s)
- Snapdragon Camera/MIUI Camera/Snap (LOS default) Camera/Moto Camera - HFR/HSR120 works properly, the framerate does not fluctuate
The current state for caprimods_310817_HFR120prof_all.zip:
- this pack was done for lulz/test
- it forces 1/120s exposure time as the max of every auto mode
- expect very high noise in lowlight
The current state for orig_7_9_7_vendorlibs.zip:
- just the fresh stock libs
- useful, if you are an anti-backup person :~D
The current state for libmmcamera2_mct_4056stall.zip: NEW (15.11.17)
- adds 4056x3040 (full possible res) and 4048x3036 (full possible ideal 4:3) photo resolutions
- wider FOV (field of view) is visible
- does not replace the standard 4000x3000
- Snapdragon Camera and Snap (Lineage-default) may not detect it, needs testing (Qualcomm aimed at their direct resolutions only)
- MIUI camera detects instantly
- some apps may need to be data-cleared to detect
The current state for libmmcamera2_mct_4048and4032img.zip:
- adds 4048x3036 and 4032x2268 photo resolutions
- wider FOV (field of view) is visible
- does not replace the standard 4000x3000 and 3840x2160
- Snapdragon Camera and Snap (Lineage-default) may not detect it, needs testing (Qualcomm aimed at their direct resolutions only)
- MIUI camera detects instantly
- some apps may need to be data-cleared to detect

good job bro !!

@j1505243 Is there a simple way to test if it is working properly? because I have just made a magisk module with your libs but am not sure if it works properly.
Sent from my MI 5s using XDA Labs

jigs4wkiller said:
@j1505243 Is there a simple way to test if it is working properly? because I have just made a magisk module with your libs but am not sure if it works properly.
Sent from my MI 5s using XDA Labs
Click to expand...
Click to collapse
Just as I said, copypaste the files :> I tested them a while after the first post, then I edited everything to clear any doubts. Works properly on my capricorn, xiaomi.eu (based on China Dev) 7.9.7.

j1505243 said:
Just as I said, copypaste the files :> I tested them a while after the first post, then I edited everything to clear any doubts. Works properly on my capricorn, xiaomi.eu (based on China Dev) 7.9.7.
Click to expand...
Click to collapse
Yes I know but I am a big Magisk fan and port for my self every system mod to Magisk so it can be restored after a update or a clean install.
Sent from my MI 5s using XDA Labs

jigs4wkiller said:
Yes I know but I am a big Magisk fan and port for my self every system mod to Magisk so it can be restored after a update or a clean install.
Sent from my MI 5s using XDA Labs
Click to expand...
Click to collapse
Ah, I misunderstood you Test on Google Camera and Snapdragon Camera. Google Camera needs special media profiles, but they are available on LOS Github already.

jigs4wkiller said:
Yes I know but I am a big Magisk fan and port for my self every system mod to Magisk so it can be restored after a update or a clean install.
Click to expand...
Click to collapse
Can you share the module?

Are they flashable zips?
edit: sorry,I didn't see it

Work on lineage?

djixon said:
Work on lineage?
Click to expand...
Click to collapse
Works on everything, but it may be incompatible somehow with some very very old libs, but I think LOS is using some that are not more than month old.

Anyway, I'll realease a max resolution mod. As the default photo input is 4000x3000, video input is 3840x2160, while we can get 4048x3036 and 4032x2268.

Very cool. Could you add stabilization to 4k video?

Work on miui 8 7.7.20?

skytalker09 said:
Very cool. Could you add stabilization to 4k video?
Click to expand...
Click to collapse
I'm doing what defcomg teaches me to do :~D So if he knows, then there's a chance. For now, I'll rather be talking about the things I got to know :>

taylan08 said:
Work on miui 8 7.7.20?
Click to expand...
Click to collapse
Backup and try.

Higher 4:3 and 16:9 photo resolutions added!
4000x3000 -> 4048x3036, 3840x2160 -> 4032x2268
Wider FOV is visible instantly!

j1505243 said:
Higher 4:3 and 16:9 photo resolutions added!
4000x3000 -> 4048x3036, 3840x2160 -> 4032x2268
Wider FOV is visible instantly!
Click to expand...
Click to collapse
Nice! Will this work on Modded GCam?

rhp_engcoy said:
Nice! Will this work on Modded GCam?
Click to expand...
Click to collapse
Yes it works but you have to reapply the resolution in the settings.
Sent from my MI 5s using XDA Labs

Gcam:
Sent from my MI 5s using XDA Labs

jigs4wkiller said:
Yes it works but you have to reapply the resolution in the settings.
Click to expand...
Click to collapse
After applying this mod the front camera rotated upside down?
How to fix this? But the new resolution works. Thanks!
Edit: The problem was just the capricorn_exposure_7_9_7_pixelised. Reverted to stock libs now everything is good.

Related

[HOWTO][WIP] Enable Camera2 and manual camera settings on Moto X Style/Pure

*Generic warning about messing with system stuff*
Summary
Thanks to @defcomg and @troopii, we have a working way to enable manual camera functions and .dng raw file capture on our Moto X Pure. This is still a work in progress as you will see.
Steps
Method 1:
1. Enable camera2 api by adding the line persist.camera.HAL3.enabled=1 to the bottom of your build.prop.
2. Reboot
3. Install the modified version of FreeDCam from this thread.
4. Open FreeDCam. It will probably force close.
5. Open FreeDCam again.
6. Explore to see what you can do. On the left of the capture screen is the option to change from jpeg to raw. This will save .dng files that you can edit in Snapseed or other raw editors (including Adobe Lightroom on the PC).
By changing the exposure mode or focus mode off of auto, you can then click on the gear in the lower left of the capture screen and change your shutter speed, iso, and use manual focus. There are a few other things you can change here too.
Edit: method 2 removed because of incompleteness and unknown errors.
Warnings
1. Using method 1 will disable all other camera applications on your device until you revert the build.prop changes. We don't know why yet, but the symptoms are that the preview of other camera apps never start and always show black.
Future Action
Hopefully we aren't done. It would be great to find out what is limiting the full implementation of camera2 on this device. Who knows what tomorrow will bring.
contributors
@defcomg - He made most of the device specific edits, guided me through making edits to my device and testing, figured out how to correctly encode the dng, and is generally awesome. He also doesn't own this device and is helping out of the goodness of his heart. Also figured out the tasker stuff.
@troopii - Main developer of FreeDCam. He made the app and also made some important edits to get this working.
I just tested and wrote the thread so all of you could benefit from their labors. They get all the credit.
Go, have fun modifying your device. Hopefully some devs will want to get involved and get real camera2 support for this device. It's almost there. For details on our progress so far, read here: http://forum.xda-developers.com/mot...ra-comparison-stock-vs-3rd-party-app-t3215603. We hijacked that thread, so please bring all discussion back here.
*reserved*
Sent from my XT1575 using Tapatalk
Todo :
Metadata Extraction
DNG Orientation flag
Optimize Manual Control Activation
New Color Matrix/ Camera Profile - Will Require a Xplay user with Xrite / MacBeth Color Checker
Source Code : Should you wanna make changes
Code:
My Git : https://github.com/defcomk/FreeDcam
Troop: https://github.com/troop/FreeDcam
---------- Post added at 02:04 AM ---------- Previous post was at 01:52 AM ----------
@Bobby060 Do the logcats for the other camera apps will check them later :good:
Any chance we will ever see a port of L Camera from the Nexus devices?
alex94kumar said:
Any chance we will ever see a port of L Camera from the Nexus devices?
Click to expand...
Click to collapse
yes pretty good chance all camera 2 apps will work after some code adjustments i've fowarded L Camera Dev a link to this thread :good:
Awesome!! Thank you for the work on this, can't wait to see where this goes! cheers!
alex94kumar said:
Awesome!! Thank you for the work on this, can't wait to see where this goes! cheers!
Click to expand...
Click to collapse
also mailed A Better Camera Dev will see what happens
Haha I called it! lol defcomg and other devs cracked it open! Only bugs left to fix. You guys rock!
What about Geeky Dev Studio? Wonder if its possible to port the Google Camera over with the HDR+!
Oh also, does anyone know of any app that can sample the images down to less mp but end up with insanely crisp photos?
Dpat09 said:
Haha I called it! lol defcomg and other devs cracked it open! Only bugs left to fix. You guys rock!
What about Geeky Dev Studio? Wonder if its possible to port the Google Camera over with the HDR+!
Oh also, does anyone know of any app that can sample the images down to less mp but end up with insanely crisp photos?
Click to expand...
Click to collapse
Done also mailed opencam + proshot lets have a dev party lol:silly:
defcomg said:
Done also mailed opencam + proshot lets have a dev party lol:silly:
Click to expand...
Click to collapse
Hi I'm the developer of ProShot and I'm here for the party.
Also, this is awesome! I'll see what I can do
edee1337 said:
Hi I'm the developer of ProShot and I'm here for the party.
Also, this is awesome! I'll see what I can do
Click to expand...
Click to collapse
if you need logs and such @Bobby060 is your guy :good:
defcomg said:
if you need logs and such @Bobby060 is your guy :good:
Click to expand...
Click to collapse
Haha, yeah. Just don't bet on it being quick. I probably won't get to getting those preview logs until tomorrow. Silly college...
Sent from my XT1575 using Tapatalk
defcomg said:
if you need logs and such @Bobby060 is your guy :good:
Click to expand...
Click to collapse
Moto x play camera lib
https://drive.google.com/file/d/0B_jaJyTPSwjma0Y5VzI2LWpCU0E/view?usp=docslist_api
Sent from my XT1562 using XDA Free mobile app
droider007 said:
Moto x play camera lib
https://drive.google.com/file/d/0B_jaJyTPSwjma0Y5VzI2LWpCU0E/view?usp=docslist_api
Sent from my XT1562 using XDA Free mobile app
Click to expand...
Click to collapse
Unfortunately Xplay is using the Older QCOM HAL 2 for camera 2 api you need HAL 3.0.
but you can try freedcam in Camera 1 Mode i added QCOM's Manual Focus and Manual Exosure time. Raw picture is possible without camera 2 but motorola removed it from picture format perhaps they is a workaround to force hal to accept the bayer picture format will try hexxing the hal later and get back to you, but for the moment you can test those manaul functions .
defcomg said:
Unfortunately Xplay is using the Older QCOM HAL 2 for camera 2 api you need HAL 3.0.
but you can try freedcam in Camera 1 Mode i added QCOM's Manual Focus and Manual Exosure time. Raw picture is possible without camera 2 but motorola removed it from picture format perhaps they is a workaround to force hal to accept the bayer picture format will try hexxing the hal later and get back to you, but for the moment you can test those manaul functions .
Click to expand...
Click to collapse
bummer.....lets see if the workaround works.....
thanks btw!
i will later change the manual modes that they are better useable in freedcam. that means that exposuretime iso and mf get a auto value wich enables/disables ae/focus automatical.
camera2 is full based on the sdk description thats why it is not very userfriendly. but it was important to have it this way to see how it works.
great to see its working ;D
edee1337 said:
Hi I'm the developer of ProShot and I'm here for the party.
Also, this is awesome! I'll see what I can do
Click to expand...
Click to collapse
motox has a messed up dngconverter. we did use the one from freedcam for camera1 to workaround that bug.
not sure why the preview is black. maybe it has something todo how the preview gets cropped. freedcam crop it depending on the previewsize and screensize.
had simliar problem when i tryed to get zoom working on nexus5
Awesome guys! Thank you very much!
Its working on my XT1572
Keep up your great work to make it available in all Apps.
Whats the max exposure time you can get on manual mode?
Csetoue said:
Whats the max exposure time you can get on manual mode?
Click to expand...
Click to collapse
I believe the max we have enabled in the app is 1/5 of a second. The theoretical max is more, I think, so it will probably get better.
Sent from my XT1575 using Tapatalk
Csetoue said:
Whats the max exposure time you can get on manual mode?
Click to expand...
Click to collapse
from parameters it tells max-exposure-time=657.770600, the question is wich format it has. sec, millisec, microsec, nanosec...

MI 5s camera mods [Updated: 1st Feb 2018]

Hi all..
This is a fix for the broken implementation of camera 2 API on our device.
This will allow us to finally shoot up to 32 sec raw image in camera 2 API and also enables up to 100k ISO...
Much love and respect to @defcomg for fixing this for us, he is an amazing dev and if you would like to donate to him you can hit this link!
NOTE:
This mod will probably only work on Lineage and 7.1.1+ ROMs. I've tested it on latest RR (16 June) and it works.
Don't flash on MIUI ROMs, I haven't and probably won't test it, but feel free if you are brave :laugh:
Make a backup (TWRP). Or if anything goes wrong just reflash ROM, it'll fix your problem.
I take no responsibility for brick or boot-loop...
LINK:
V1 - Initial [LOS/RR etc..]
V1 - Test (I need someone to tell me if this works) [Miui N ROMs]
V2 - Nightmode profiles [11 December]
V3 - Oreo Libs [1st Feb]
For future versions I would like to try to add longer exposure times as well as fix pixel binning for better low light shots!
Edit:
16 June: There is a delay when shooting long exposure, for example when selecting 32 sec, the shutter button will be pressed for like 32sec x 2 = +-64 secs, don't know why but anyways it only shoots for first 32 seconds, so just be aware of that..
19 June: Fixed Miui N test lib link
11 Aug: Nightmode coming soon, this will allow longer shutter speeds, essentially up to about 5 mins
Also all apps should be able to take advantage of this.
11 Dec:
Added libmm shutter extension and pixel binning.. The respective number (3, 9, max [14]) multiplies the shutter by that amount, meaning if you have an app that normally can only capture up to 1/17 shutter, and use 3x lib it will now use 3/17 shutter (almost 0.2 sec), this affects all video and photo apps, you can restore it by replacing original file..
Oreo has a busted HAL so shutter on manual only hits about 4 sec without breaking, using max libmm mod you can get about 1 min shutter I think, in nougat using fixed cam 2 libs, you can get about 7 min shutter time.
Pixel binning is somewhat working, it has a dark preview, and I don't know why, but when you shoot in raw, you will see the file is much brighter with less noise, but at lower res.
Place the file in /system/vendor/lib then reboot the device
NOTE: The HAL fix from above (V1) will not work on Oreo since it's using a new HAL, so don't use that, if you don't know or are unsure..
1st Feb 2018: Patched Oreo libs to allow long exposure. Added libmm multiplication hacks.
Gonna be away till like mid Jan, so might not be able to answer questions..
Good work ?
Can the default snap camera take advantage of this api2 or another camera app has to be used?
Could he fix the Google camera force close when change to front camera, thanks
ermacwins said:
Can the default snap camera take advantage of this api2 or another camera app has to be used?
Click to expand...
Click to collapse
I use FreeDcam but any camera app making use of cam2 API will benefit from this..
shaneel1491 said:
I use FreeDcam but any camera app making use of cam2 API will benefit from this..
Click to expand...
Click to collapse
Official lineage nightly 0612 opengapps stock, Google camera front camera still FC
Slow motion also does not work
monitoring this tread , for miui roms.
Airborntx said:
monitoring this tread , for miui roms.
Click to expand...
Click to collapse
What MIUI version are you on? If you are on miui N, try this and let me know if it works..
https://drive.google.com/file/d/0B-7popFesfShR3Y0Tm9kTHFDM3M/view?usp=sharing
Nerom said:
Official lineage nightly 0612 opengapps stock, Google camera front camera still FC
Slow motion also does not work
Click to expand...
Click to collapse
I use snap camera for front camera, no problem there, I don't know how to fix Google camera errors..
With regards to slow motion, 120 FPS should be working on FreeDcam
I'm on miui 7.6.15 xiaomi.eu build(android n)....ive flashed your patch via twrp....and really nothing happened....camera still working like before....no new mods in there....like its really for aosp...can confirm that its dont break your camera in miui...but also its doing nothing in miui....in my opinion
You don't happen to have samples of stock camera vs freedcam?
ermacwins said:
You don't happen to have samples of stock camera vs freedcam?
Click to expand...
Click to collapse
I don't use stock camera, I use FreeDcam raw mode, and when I shoot jpeg, I shoot with denoise off. So with stock you will see less noise in images, but freeDcam will have much more details
James Blode said:
I'm on miui 7.6.15 xiaomi.eu build(android n)....ive flashed your patch via twrp....and really nothing happened....camera still working like before....no new mods in there....like its really for aosp...can confirm that its dont break your camera in miui...but also its doing nothing in miui....in my opinion
Click to expand...
Click to collapse
Check the OP, all this mod does is enable 32 sec shutter on Cam2 api and adds ISO 100k. It doesn't add quality/features or mods to the camera..
shaneel1491 said:
What MIUI version are you on? If you are on miui N, try this and let me know if it works..
https://drive.google.com/file/d/0B-7popFesfShR3Y0Tm9kTHFDM3M/view?usp=sharing
Click to expand...
Click to collapse
Whats that lad?
shaneel1491 said:
I use snap camera for front camera, no problem there, I don't know how to fix Google camera errors..
With regards to slow motion, 120 FPS should be working on FreeDcam
Click to expand...
Click to collapse
Can't set 120fps on FreeDcam not with latest alpha right now , and even with a debug version específic to the MI5S/MI5S plus
And EIS is disable :/
Airborntx said:
Whats that lad?
Click to expand...
Click to collapse
Test lib for MIUI M, not sure if it works or not, someone needs to test.
ExCaL1BuR said:
Can't set 120fps on FreeDcam not with latest alpha right now , and even with a debug version específic to the MI5S/MI5S plus
And EIS is disable :/
Click to expand...
Click to collapse
Try this app
https://drive.google.com/file/d/0B-7popFesfShU0RHbC0tOEpQWEE/view?usp=sharing
FreeDcam app specially for Mi 5s
Is it possible to enable iso lower than 100? Or maybe it's pointless because it's achieved by software, and the quality will be worse than 100? So can we conclude that lineage (or some other) roms are better than MIUI? I'm thinking moving to these roms.
By the way, it seems that the link on the first post was incorrect (miui one), the later ones are working though.
---------- Post added at 08:34 PM ---------- Previous post was at 07:54 PM ----------
I'm on miui 7.6.15 xiaomi.eu , got upto 8714 iso with snap camera. Stock remains 3200. Still 16 bit raw Still 1/3 s shutter with 3rd party camera apps, though I heard someone already has shutter longer than 1s with 3rd apps. I don't remember have flashed any other patches especially related to cameras
With los, Lightroom could have shutter 1s, but iso up to 100k, I don't know if it really works, as it's white paper after 10k anyway.
isnt it possible to use Pixel libs?
shaneel1491 said:
Test lib for MIUI M, not sure if it works or not, someone needs to test.
Try this app
https://drive.google.com/file/d/0B-7popFesfShU0RHbC0tOEpQWEE/view?usp=sharing
FreeDcam app specially for Mi 5s
Click to expand...
Click to collapse
That was what I used but still no 60 or 120fps video ... I'm waiting for the OP to explain how can he get that frame rate on video
Installing N version on miui eu 7.6.15, nothing new here, camera menu just like before...no 32 second RAW, no iso 100k
Sent from my MI 5s using XDA-Developers Legacy app
This mod is dedicated to Lineage OS not Miui.

[Magisk][Module][MI A2 Stock Camera][Update-22/9/18]

[Magisk]MIUI stock camera for all Custom roms.
V-3(Stable)(Update,Magisk module)
1-HDR(Auto HDR works)
2-Time Shift
3-HHT
4-Beauty
5-Straighten
6-4k recording
7-Portrait mode (Front+Back)
8-Manual mode.
9- No delay(slow) 5-10 sec after switching one mode to another.
Install through Magisk.
Only one Left Bug-Slow motion video
V-3 Link-https://drive.google.com/file/d/18Qohcw9-hJR3tCZyULWhER45LetQkPuE/view?usp=sharing
V-3.1(Update)
1-Back to miui 10 UI.
2-Portrait switch.
3-HD photo select for 3rd party apps.
4-100% As stock camera.
v-3.1 Download link-https://drive.google.com/file/d/1YDf8gFHxRec8W6GlEcY8v4B0fDHKoagA/view?usp=sharing
V-4 final port
1-Slowmotion fixed ( Thanks Dyneteve)
2-Added Ai Switch.
3- Every thing is working
Download link V-4-https://drive.google.com/file/d/16kmg1pX1n-pvpZGyRvFiziviO0tJCRZz/view?usp=sharing
V-4.1(Update)
1-Removed Group Selfie(As it is not working)
Download v-4.1 -https://drive.google.com/file/d/1E51MjvSf8HBmbNz9CXg2W1mL74_uuPPh/view?usp=sharing
V4.2(Update)
1-Parallel Image processing(High quality image).
2-Removed Finger Print shutter.
3-Added Slowmotion 120 FPS at 1080P.
Download V-4.2 https://drive.google.com/file/d/1N3NJti1hXf9A1yJuEK4nx8kedhate8_k/view?usp=sharing
V.4.3[UPDATE FOR ANDROID PIE 9.0 ONLY ]
-Added Support to Android Pie 9.0 (PR1 tested)
-May be works with other GSI/sGSI
-AI switch removed(As it is not working)
Linkhttps://drive.google.com/file/d/1Rdncjqb022P5Wk2BJcARPRnh2TlGRemU/view?usp=sharing
Bugs-
-After switching Front camera Always flash on(Enable HDR and capture 1 image flash will be turned off then you can capture Normal/Portrait without front flash)
-Test and report me.
V-4.4[UPDATE,ONLY FOR ANDROID PIE 9.0
-Front flash fixed[Thanks to #Nom sokheng]
-Everything working.
Download link-https://drive.google.com/file/d/1GsrVTtKc4sNGQ_iPnIMWCWKtlv7DIWwT/view?usp=sharing
V4.5[Pie 9.0]
-Legacy Beauty mood enabled.
-Finger Print shutter Enabled.
-Fixed Camera Sound Conflict.
Download-https://drive.google.com/file/d/1ibF29D0_TQ4ZeNeyM74VAdi9oX7JiAK5/view?usp=sharing
V5[Oreo 8.1]
-Updated Camera files from latest MIUI Rom.
-Finger Print shutter Enabled.
-Fixed Camera Sound Conflict.
Download-https://drive.google.com/file/d/1MjrZchaAUeQnIPKfWKvAaEVPhPahRHLQ/view?usp=sharing
How to install.
1-Load Magisk module via Magisk Manager
2-Reboot Phone
3-Give all the permissions to the camera
Sourcehttps://github.com/Arnob-Xenon/Mi-A2-Stock-camera-for-Redmi-note-5-Note-5-Pro/blob/master/README.md
Credit-All credit goes to @ARNOB XENON, @carlosggb, @Dyneteve
For Mi A2
https://forum.xda-developers.com/mi-a2/themes/magisk-t3847779
Thank you.
ARNOB XENON said:
MIUI stock camera for all Custom roms.
After collecting all miui camera ports at last able to work dual camera with our whyred.
What is working:
1-Portrait mode (Back only, with dual camera)
2-4k video recording
3-front camera
4-And MIUI default stuffs.
What is not working
1-Slowmotion (May be works with G-cam)
2-May be more you can find.
3-Capturing Normal pictures are headache because of the 2nd camera .( you can avoid this by doing flash always active >then capture>Camera will force close and restart with the primary camera)
Unexpected feature
1-Don't know it will be good or bad for us Our 2nd camera can capture images with 13mp res. As it is ported from Android One that's why may be.
you can avoid this by doing (turn on flash active >then capture>Camera will force close and restart with the primary camera)
For better experience just capture portrait images with the miui Stock camera and use another camera for rest of the work like G-cam or what ever you like.
How to install
Just flash using TWRP
Credit-All credit goes to MI AI devs ,Mi note 3 devs.
Do not ask me wired questions just download and try yourself.
Thank you.
Click to expand...
Click to collapse
Download link -https://drive.google.com/file/d/1J-E0aB9DSxJyxmFrikmOjLo2M3B6wAwA/view?usp=sharing
ARNOB XENON said:
Download link -https://drive.google.com/drive/folders/1A3IKAmidaLnrkblN8M4LCGP2BbMtnQb8
Click to expand...
Click to collapse
why permission is needed for downloading?
Hosssain said:
why permission is needed for downloading?
Click to expand...
Click to collapse
I set it public brother. Don't need any permission.
ARNOB XENON said:
I set it public brother. Don't need any permission.
Click to expand...
Click to collapse
try this https://drive.google.com/file/d/1J-E0aB9DSxJyxmFrikmOjLo2M3B6wAwA/view?usp=sharing
ARNOB XENON said:
try this https://drive.google.com/file/d/1J-E0aB9DSxJyxmFrikmOjLo2M3B6wAwA/view?usp=sharing
Click to expand...
Click to collapse
its working now thanks.
Can anyone post the photos taken from rear camera(both primary and secondary) one?
For uninstal ?
demone83 said:
For uninstal ?
Click to expand...
Click to collapse
working on it
Is it able to perform as good as the stock camera of RN5P? I mean the portrait mode (front n back) works fine or not?
I tried the BSGod of Gcam on RR rom. But i finally came to the conclusion that stock camera is the best for this phone. It takes pictures in super sharp quality, Gcam was not working as good as this one. Also the shutter speed was too low in GCam
ARNOB XENON said:
working on it
Click to expand...
Click to collapse
thankyou
could you port our whyreds camera(miui camera 2.0) for custom roms. this old ui camera aint perform well.
S.faraaz said:
Is it able to perform as good as the stock camera of RN5P? I mean the portrait mode (front n back) works fine or not?
I tried the BSGod of Gcam on RR rom. But i finally came to the conclusion that stock camera is the best for this phone. It takes pictures in super sharp quality, Gcam was not working as good as this one. Also the shutter speed was too low in GCam
Click to expand...
Click to collapse
Let's get something out of the way, MIUI stock camera does not have better image quality than GCam, nor it ever will (at least on this device).
HDR+ on your GCam either didn't work, or you didn't set it up properly, because there are a few settings which have to be changed.
ARNOB XENON said:
MIUI stock camera for all Custom roms.
After collecting all miui camera ports at last able to work dual camera with our whyred.
What is working:
1-Portrait mode (Back only, with dual camera)
2-4k video recording
3-front camera
4-And MIUI default stuffs.
What is not working
1-Slowmotion (May be works with G-cam)
2-May be more you can find.
3-Capturing Normal pictures are headache because of the 2nd camera .( you can avoid this by doing flash always active >then capture>Camera will force close and restart with the primary camera)
Unexpected feature
1-Don't know it will be good or bad for us Our 2nd camera can capture images with 13mp res. As it is ported from Android One that's why may be.
you can avoid this by doing (turn on flash active >then capture>Camera will force close and restart with the primary camera)
For better experience just capture portrait images with the miui Stock camera and use another camera for rest of the work like G-cam or what ever you like.
How to install
Just flash using TWRP
Credit-All credit goes to MI A1 devs ,Mi note 3 devs.
Do not ask me wired questions just download and try yourself.
Thank you.
Download link ??See in first comment
Click to expand...
Click to collapse
How do I uninstall this one if I intend to?
thank you!
Cirra92 said:
Let's get something out of the way, MIUI stock camera does not have better image quality than GCam, nor it ever will (at least on this device).
HDR+ on your GCam either didn't work, or you didn't set it up properly, because there are a few settings which have to be changed.
Click to expand...
Click to collapse
HDR+ worked on my device but it took a lot of time. After clicking the picture took arnd hlf a second at first, and then again a few seconds to process the HDR+.also during videos, there was a lot of issue in exposure and it didn't had time lapse too.Also the selfies taken by miui camera were better as compared to Gcam(i think thats coz it recognises it only as 5mp)
Portrait mode only worked with humans unlike miui camera which worked with anything
That's why i thought miui cam is better. Is there any way to fix it? Note: I tried the BSG mod
Basil Eldhose said:
could you port our whyreds camera(miui camera 2.0) for custom roms. this old ui camera aint perform well.
Click to expand...
Click to collapse
Then you have to wait till the mi A2 release.
S.faraaz said:
HDR+ worked on my device but it took a lot of time. After clicking the picture took arnd hlf a second at first, and then again a few seconds to process the HDR+.also during videos, there was a lot of issue in exposure and it didn't had time lapse too.Also the selfies taken by miui camera were better as compared to Gcam(i think thats coz it recognises it only as 5mp)
Portrait mode only worked with humans unlike miui camera which worked with anything
That's why i thought miui cam is better. Is there any way to fix it? Note: I tried the BSG mod
Click to expand...
Click to collapse
Well first of all, my reply was about picture quality of HDR+ vs MIUI HDR(On/Off/Auto) or HHT you name it. In that regard there is no point comparing the two, as computational photography prowess of Google Camera is just ahead in every way.
And as for the other, I don't remember whose GCam I used that had working portrait mode on objects, but it really did work, try out different versions. Even though it's just 5mp, the processing is better, you must have had a malfunctioning app. Also no issues with video exposure here (just missing the 60fps) and the HDR+ processing was a bit slow only in low light).
I am using BSG mod right now, specifically MGC_5.2.022_FINAL_1.0.apk and here are my settings. You can try out Arnova's v7.9.9 I used that one too.
Basil Eldhose said:
could you port our whyreds camera(miui camera 2.0) for custom roms. this old ui camera aint perform well.
Click to expand...
Click to collapse
working on it....
After flashing in about section device name shows unknown.. please solve that issue
Cirra92 said:
Well first of all, my reply was about picture quality of HDR+ vs MIUI HDR(On/Off/Auto) or HHT you name it. In that regard there is no point comparing the two, as computational photography prowess of Google Camera is just ahead in every way.
And as for the other, I don't remember whose GCam I used that had working portrait mode on objects, but it really did work, try out different versions. Even though it's just 5mp, the processing is better, you must have had a malfunctioning app. Also no issues with video exposure here (just missing the 60fps) and the HDR+ processing was a bit slow only in low light).
I am using BSG mod right now, specifically MGC_5.2.022_FINAL_1.0.apk and here are my settings. You can try out Arnova's v7.9.9 I used that one too.
Click to expand...
Click to collapse
Yeah that app was a litlle diffrnt than the one in ur screenshot. I'll try out this version then.
Thanks for sharing
Hey can u tell me which rom are u using? I like ur navbar. I got animations in RR configurations but didn't got that home button. Just a solid round icon.

Google Camera for Op7 Pro

Hello everyone, I am creating this thread to provide the stable and beta builds of gcam, to avoid confusion and to keep the forums clean.
Thank you @S4turno(Celso) for hosting, mirroring, translating and sharing all a to z Gcam..
Special Thanks to @Arnova8G2 for all his support and hardwork !!!!
FAQ GOOGLE CAM-
I CAN'T INSTALL X VERSION, WHY?
Make sure you uninstall every other GCam Port on your phone. You can't have two 6.1 gcam versions installed.
HOW DO YOU SWITCH BETWEEN CAMERAS?
https://drive.google.com/file/d/127r0_UNKMNY5MN5OrWYZISEleK8cZj4x/view?usp=drivesdk
HOW DO YOU USE NIGHTSIGHT WITH THE DIFFERENT LENS?
Select the lens in main mode, switch to Night Mode, then double tap the Camera Switch Button.
WHY THE FRONT CAMERA IS 4MP AND BACK CAMERA 12MP ?
Selfie camera uses pixel binning, same as for the main sensor. Since camera2api implementation only delivers a 4MP raw stream (16MP/4 = 4MP because of pixel binning)
GCam can only work with what raw stream the API delivers.
Same goes for back cam.
WHICH GCAM IS THE BEST ?
There is no best gcam. There are stable and beta builds which work fine for daily usage, but not the best. There may be some crashes here and there.
WHICH XML IS THE BEST ?
The xmls provided in the folder whose link is given below are the best at the moment.
HOW TO USE XML ?
A link to Celso Azevedo site is given below which clearly explains how to import and export xmls.
Mod Edit: Link removed
WHY COLOURS ARE DULL ??
Sometimes the settings may not be applied by the xmls, and in 6.2 gcam, you need to manually set saturation levels.
Also changing awb can help.
Use the xml.
Use the settings from the given screenshots for 6.2 gcam.
WHY CAMERA CRASHES ?
Changes in libs may cause crashes, in such a case clear app data.
WHY AUX CAMERAS ARE NOT WORKING ?
You need ROOTED DEVICE for now to use aux cameras.
METHODS TO USE AUX CAMERAS- There are 2 methods:-
1) Setting selinux to permissive by-
1a) Using nfs injector magisk module or renovate ice magisk rom.
1b) Using custom kernels like Kirisakura or Smurf
2) Installing gcam as a system app-
2a(Install any of the 6.1 gcam app as a standard user app by installing the apk as you would normally.
2b)Open the camera app and enable the usual set of permissions (local storage, camera, etc.)
3)Use the magisk module given below
https://drive.google.com/file/d/19lwuT8koKQG3dod9nW2xzVHxWGQR-K3W/view?usp=drivesdk
The link below will provide the Gcams working-!!
THERE ARE 1) XCAM BETA 11
2) GCAM 6.2 WITH XML SUPPORT
3) GCAM 7 BETA
IN THE FOLDERS WHICH THE LINK BELOW PROVIDES !!
https://drive.google.com/folderview?id=1-FAjRY4S5PIBnL2vsf0Fm-pVw3QwOi2s
Another link for xmls-
https://www.celsoazevedo.com/files/android/google-camera/f/oneplus-7-pro/
*These are the stable gcam, everything works perfectly except slow motion, stable for daily usage, also they support auxiliary cameras.
If you want to use aux cameras in
night sight and video mode, use xcam.
TO USE XML ON 6.2, LOAD XML TWICE!!
A quick guide on how to use xmls. -
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
Thanks to @S4turno
Urnyx 6.2 (No XML SUPPORT)(STABLE)-
https://f.celsoazevedo.com/file/cfiles/gcm1/GCam-6.2.030_Arnova8G2_Urnyx05-v2.4.apk
Urnyx 7.2 (No XML Support)(STABLE)-
https://f.celsoazevedo.com/file/cfiles/gcm1/GCam_7.2.010_Urnyx05-v1.3.apk
Star Cam based on Gcam 7 (STABLE)-
https://f.celsoazevedo.com/file/cfiles/gcm1/GCam_7.0.009_StarCam_v1.apk
*For gcam 6.2-
Firstly, after installing apk, go to settings, go to about and enable "Enable Advanced Mode"
*For 6.2 Urnyx gcam-
It is a simplistic mod, not much to edit.
Guide:
- How to use manual controls?
- First of all, you must use HDR+ Enhanced. Then, enable the options in settings to show the sliders (only the 1st time). When you are in viewfinder to take a photo, click on "Pro" button to join the pro mode, where you can see all the sliders. Now, you can set any values you want. At the end, tap on the screen to apply changes (otherwise it won't work)
NOTE-
1) Only this version of 6.2 supports xmls-
https://f.celsoazevedo.com/file/cfiles/gcm1/Gcam_6.2.030_Advanced_V2.2.2beta2.190907.0540.apk
2) Slow motion doesn't work for now.
3) Lens distortion in wide lens.
How to have multiple gcams installed-
https://www.celsoazevedo.com/files/android/how-to-duplicate-clone-apps/
Do your versions support 4k video @ 60fps in normal and also in ultra wide mode?
The version of the other thread can switch to 60fps but actually the video is still recorded at 30
I have a stock 7 pro 12Gb, mine chrashes when i use portraitmode in 6.1
rasik80 said:
Do your versions support 4k video @ 60fps in normal and also in ultra wide mode?
The version of the other thread can switch to 60fps but actually the video is still recorded at 30
Click to expand...
Click to collapse
Hey, yes the 4k 60fps works but only with main cam, 4k works with aux cameras but only on 30fps.
CyberQ said:
I have a stock 7 pro 12Gb, mine chrashes when i use portraitmode in 6.1
Click to expand...
Click to collapse
Are you using the xml from the link ?
Long press doesn't work dor me on 6.1 with vivid xml
krogoth said:
Long press doesn't work dor me on 6.1 with vivid xml
Click to expand...
Click to collapse
I corrected the xmls, thank you...
Still nothing
krogoth said:
Still nothing
Click to expand...
Click to collapse
Are you rooted ??
No
krogoth said:
No
Click to expand...
Click to collapse
That's why
Good luck @Sammmtyagi ! And thanks for your hard work!
Guys...
PLEASE READ ALL WHAT IS WRITTEN IN OP'S INITIAL THREAD BEFORE ASKING QUESTIONS. QUESTIONS THAT DON'T HAVE ANSWERS IN THE FIRST POST WILL BE ADDED . ALSO IT'S AN ONGOING SUBJECT WITH POSSIBILITIES TO CHANGE
Thank you...
Thanks! This works great....running intl version rom on tmobile op7pro with elementalX kernel... Used the desaturated xml, looks good. Also turned down saturation for main back camera as it was still a tad high....its weird because in viewfinder(screen) it looks ok, its only when the photo is processed is where saturation gets boosted....those settings are under "advanced" " highlight saturation" 1.3 and for "highlight shadows" 1.1 .....for anyone that wants to know. Also turned up jpeg quality to 100
Maybe this is a stupid question, but where is the apk file located initially?
Sent from my GM1915 using Tapatalk
Sammmtyagi said:
Are you using the xml from the link ?
Click to expand...
Click to collapse
I uninstalled and removed xml, reinstalled and now i works!
Thanks
ledvedder said:
Maybe this is a stupid question, but where is the apk file located initially?
Sent from my GM1915 using Tapatalk
Click to expand...
Click to collapse
Check the second post, it's clearly available..
SAO said:
Good luck @Sammmtyagi ! And thanks for your hard work!
Guys...
PLEASE READ ALL WHAT IS WRITTEN IN OP'S INITIAL THREAD BEFORE ASKING QUESTIONS. QUESTIONS THAT DON'T HAVE ANSWERS IN THE FIRST POST WILL BE ADDED . ALSO IT'S AN ONGOING SUBJECT WITH POSSIBILITIES TO CHANGE
Thank you...
Click to expand...
Click to collapse
Thank you brother, your tests also helped me, making the thread..
????
I've noticed in 6.1 that motion photos don't work and portrait mode crashes in the selfie camera. Aside from that, this is the best gcam I've used so far!
Sammmtyagi said:
Check the second post, it's clearly available..
Click to expand...
Click to collapse
Sorry, I probably should have made my question more clear. I have the app installed. But where can I find it in my phone's directory to move it to /system/priv-app, in order to get aux camera working?
Sent from my GM1915 using Tapatalk

Google Camera 7.2 Astrophotography For Realme X2

I making this thread for Realme X2 Gcam 7+ because the settings and tweaking are a bit different from the the 6.2 and 6.3 Here
This is to avoid confusion as I won't have time to do tweaks on both 6+ and 7+ so, that it.
After trying over 25 different Gcam ports, I finally got a Gcam 7.2 that works for Realme X2 but you have to tweak the settings like I did to get the best.
The full tutorial is on YouTube Here:
I will drop some camera samples and the screenshot of my settings here incase you don't have time to watch the tutorial.
While you are there, you can also watch Adobe photoshot camera for Realme X2 too. I was surprised it worked fine.
It blew away the stock cam in Night sight there is no need to talk about the Astrophotography and I didn't bother uploading the samples comparisons between Night scape and Astrophotography - it's not a fair fight. But you can see it in the video.
Low noise, more details, close to real life color reproduction, and ability to tweak makes this 7.2 a thing of joy.
Still no 4k video but 1080p 30/60fps works fine.
No slow motion and wide angle lens too.
Apart from these, everyother thing works fine.
Great credits to @Urnyx05 who ported the camera for ( several devices) of which realme-x2 isn't one of.
I added a new seperate Youtube video tutorial Mastering Gcam v7.2 Advanced Settings for Realme X2
So you can watch that if you want to get the best images from your Gcam.
I am adding the direct link of the of the Gcam 7.2 by Unryx05 I used to be sure some people don't download the wrong one and have other issues I didn't experience. As I said in the video, I've tested over 25 different Gcam ports so make sure you are using the exact one I am using so as to Easy replicate the issues you are experiencing with my device. And talking about devices mine is Realme X2 EU Version (8/128G) RMX1993.
DOWNLOAD
GCAM 7.2.010...
Hello,Thankyou for such a good video guide!
I have my settings all set as you said.
Bt the Gcam crashes after taking a photo.
Thoughts?
TIA
Vishnuisgod said:
Hello,Thankyou for such a good video guide!
I have my settings all set as you said.
Bt the Gcam crashes after taking a photo.
Thoughts?
TIA
Click to expand...
Click to collapse
Turn off motion pictures and make sure your
Google photos is up to date.
Clearing app data might help.
Also let me know what operation you carry out before it crashes.
Hmmm Curious, when I toggle on, enable 2nd and 3rd lenses, I cant even open the app. I have to reinstall.
Added additional screenshots of my settings and tweaks. When I am less busy I'll write the full details here but until then, you can watch the video tutorial for now.
Interesting......
I grabbed the lastest from celsoazevedo, and I was using the latest Urnyx: Urnyx05: GCam_7.2.010_Urnyx05-v1.5.apk
but yours is v1.4.
v1.4 works.
I wonder what the small change is....(rhetorical)
still cant get the wide angle to work. But i found out by clearing cache I dont have to reinstall it....
Bolumstar said:
I making this thread for Realme X2 Gcam 7+ because the settings and tweaking are a bit different from the the 6.2 and 6.3 Here
This is to avoid confusion as I won't have time to do tweaks on both 6+ and 7+ so, that it.
After trying over 25 different Gcam ports, I finally got a Gcam 7.2 that works for Realme X2 but you have to tweak the settings like I did to get the best.
The full tutorial is on YouTube Here:
I will drop some camera samples and the screenshot of my settings here incase you don't have time to watch the tutorial.
While you are there, you can also watch Adobe photoshot camera for Realme X2 too. I was surprised it worked fine.
It blew away the stock cam in Night sight there is no need to talk about the Astrophotography and I didn't bother uploading the samples comparisons between Night scape and Astrophotography - it's not a fair fight. But you can see it in the video.
Low noise, more details, close to real life color reproduction, and ability to tweak makes this 7.2 a thing of joy.
Still no 4k video but 1080p 30/60fps works fine.
No slow motion and wide angle lens too.
Apart from these, everyother thing works fine.
Great credits to @Urnyx05 who ported the camera for ( several devices) of which realme-x2 isn't one of.
You can download it Here from the thread. Version 7.2. 010 was the one I tested.
Click to expand...
Click to collapse
Hi, thank you so much for the detailed guide and feedback, I'm waiting/looking for a version with slow motion and wide lens working, but still had no success. Please let we know if you find something.:fingers-crossed:
For those who are looking for a working Gcam, I am working on one with the great devs for Gcam including Urnyx05. The problem with Realme and BBK devices are they do not have correct color for gcam to process. Arnova helped greatly to fix it, and Cstark's apk works somewhat now. Also we will never be able to access the ultrawide lens or any other lens as Realme did not grant camera2 ID or access to them. Potentially root could work, but I am rooted but nothing works. We really need a kernel dev for our devices.
xterminater07 said:
For those who are looking for a working Gcam, I am working on one with the great devs for Gcam including Urnyx05. The problem with Realme and BBK devices are they do not have correct color for gcam to process. Arnova helped greatly to fix it, and Cstark's apk works somewhat now. Also we will never be able to access the ultrawide lens or any other lens as Realme did not grant camera2 ID or access to them. Potentially root could work, but I am rooted but nothing works. We really need a kernel dev for our devices.
Click to expand...
Click to collapse
thankyou for your work on this.
Vishnuisgod said:
Hmmm Curious, when I toggle on, enable 2nd and 3rd lenses, I cant even open the app. I have to reinstall.
Click to expand...
Click to collapse
I said earlier that the secondary lenses don't work and will make the camera crash.
Just clear app data to use the camera again - it's quicker than reinstalling but you will lose your settings
Vishnuisgod said:
Interesting......
I grabbed the lastest from celsoazevedo, and I was using the latest Urnyx: Urnyx05: GCam_7.2.010_Urnyx05-v1.5.apk
but yours is v1.4.
v1.4 works.
I wonder what the small change is....(rhetorical)
still cant get the wide angle to work. But i found out by clearing cache I dont have to reinstall it....
Click to expand...
Click to collapse
It took a lot of testing and trying with plenty crashes and issues to come up with the v1. 4 as the best for Realme X2 for now. I am still trying and testing more especially for wide angle...
xterminater07 said:
For those who are looking for a working Gcam, I am working on one with the great devs for Gcam including Urnyx05. The problem with Realme and BBK devices are they do not have correct color for gcam to process. Arnova helped greatly to fix it, and Cstark's apk works somewhat now. Also we will never be able to access the ultrawide lens or any other lens as Realme did not grant camera2 ID or access to them. Potentially root could work, but I am rooted but nothing works. We really need a kernel dev for our devices.
Click to expand...
Click to collapse
I almost gave up on Gcam because of that 'annoying' color processing from realme. But once I learnt to tweak it, I got a higher saturation with Gcam more than the stock cam, I knew that the Realme X2 has a great future with custom Roms. We just have to wait at least for Indian lunch on 17th Dec and maybe the customization will bloom.
Vishnuisgod said:
Hello,Thankyou for such a good video guide!
I have my settings all set as you said.
Bt the Gcam crashes after taking a photo.
Thoughts?
TIA
Click to expand...
Click to collapse
Same for me, even when disable motion picture, i’m using 1.6.
jjfgsyg said:
Same for me, even when disable motion picture, i’m using 1.6.
Click to expand...
Click to collapse
Now everything OK with 1.4 version
Enviado desde mi RMX1993 mediante Tapatalk
I did a full tutorial on how to tweak Gcam 7.2 Mastering Realme X2 Gcam 7.2 advanced Settings
I believe this will help everyone get the best pictures from their Gcam.
Please make sure you download from the link or if you are downloading from Urnyx05 thread download version 1.4 of Gcam 7.2
jjfgsyg said:
Same for me, even when disable motion picture, i’m using 1.6.
Click to expand...
Click to collapse
Use version 1.4
Bolumstar said:
Use version 1.4
Click to expand...
Click to collapse
It's working fine in ver 1.9
vNa5h said:
It's working fine in ver 1.7
Click to expand...
Click to collapse
Thanks mate, I'll try it. Tried 1.6 and 1.8 but they crash often or snap but don't save image
vNa5h said:
It's working fine in ver 1.9
Click to expand...
Click to collapse
for me version 1.9 crash very often, don`t save pictures. Do you have disabled any options?

Categories

Resources