yashsingh1/xdaforums huggingface dataset:
[OnePlus 9 Pro] bkraptor:
Thank you so much for this. As I've just upgraded to LineageOS 19.1 (on top of OOS12), I have not found a good alternative to GCam mods. Coming from a different GCam mod that I picked many months ago, this GCam mod & XML combination blows it out of the water.

I've only been testing this for a few hours today, but so far my experience matches what another user posted previously: switching between lenses is quite confusing and time consuming, with all the app restarting and Camera/Video mode switching.

The restart delay is not ideal but I can probably get used to it. What seems to get me every time when using the Video mode is that the restart following a lense change puts me back into the default Camera mode. The 2 modes look so similar and the mode change feels to me unnatural and unexpected. I've missed a few interesting scenes today thinking I was recording, when in fact I only took a single photo as I tapped on what I thought was the "record" button.

Opening the camera with the phone locked and changing the lense also results in no camera. Having kids I use the power button double press shortcut quite a lot in order to record them as they play, so I don't always have time to unlock my phone before starting the camera app. I'd love to know what's the reason for the forced restart, if it's possible to disable it and what compromise I'd be making in doing so. I noticed the option is available to skip the restart for the front camera, so at least there's a precedent in this GCam mod.

I realize the wishlist below is probably not feasible, with all the potential tech limitations and free dev time required to implement, but I feel it's worth listing anyway in case there are simple answers that I'm not aware of.

1. Option to disable the restart behavior described above

2. Ability to switch lenses while recording, without interrupting the active recording

As a finishthing thought, I can't express how happy I am to have found this GCam mod and your XML. Thank you both to you and the mod author!
[OnePlus 9 Pro] Arcide:
This is either the phone's or the rom's fault. On stock OOS there is no option to launch gcam instead of stock camera when the phone is locked. On other phones this issue doesn't exist. Maybe you can try giving the app certain special permissions or something like that.

Restart when switching the lens is necessary because each lens has it's own separate settings which are applied after the restart. It would be possible to disable the restart of course, but then you're using only one combination of settings which is far from ideal.

When it comes to switching the lens WHILE recording video it will (probably) never be possible on this phone because it doesn't have a working logical lens ID. Arnova has done some test versions and I've seen this work, but it may only be a Pixel thing.

Yes that's an option, however as mentioned above - it won't use the settings from the front lens lib patcher, but from the back lens that was active at the time instead.

While this doesn't bother me, and I think I actually prefer to always have it on photo mode (since the video mode on gcam is not that good anyway, and you're best to use a separate app for video recording), I'll pass this idea to the dev and see if he's willing to make this work.
[OnePlus 9 Pro] gianni500:
With open camera all lenses and 4k60fps works with api2 but there's a green tint on videos recorded.
[OnePlus 9 Pro] Arcide:
Yeah obviously something wrong, but nice to point that out.
[OnePlus 9 Pro] gianni500:
couldn't you mod the open camera, like the Google camera, since it is also open and everything works? you can also take pictures with the black and white lens.
[OnePlus 9 Pro] Arcide:
You can use the b&w lens on gcam, but there's no point as it's a crappy 2MP lens. As far as the video goes, even if it was somehow possible to port, it's kind of meaningless since it doesn't work properly even in open camera
[OnePlus 9 Pro] redondo_se:
Thanks for all you work on this Arcide. I've tried multiple versions of LMC with your associated XML. I can't get night sight to work on any of them. The pictures come out the same as if not using night sight. The stock camera night mode and BSG Gcam night sight work. Is there something I need to do to make it work?

I'm on OOS 12 C.62

Thanks
[OnePlus 9 Pro] Arcide:
Hey, the night sight works but the phone detects motion and may limit the exposure time which is probably what you're seeing. That's the new thing with 8.4 gcams. With perfectly steady hands you can get up to 1s exposure time. However you can always choose the fixed shutter speed by long pressing the gallery icon.
[OnePlus 9 Pro] redondo_se:
Ah, thanks. My hands are probably too shaky. The long press and setting the exposure time does work. Not the most convenient though because that setting sticks. Too bad you can't just set it as a default for night sight.
[OnePlus 9 Pro] Arcide:
There is another workaround which I used at some point. You can select the astro mode as default and choose the shutter speed which is specific to astro mode. That's perfect if you don't use the very long exposures
[OnePlus 9 Pro] Sigray:
is the tele cam still has the dots? Im thinking to switch back from P6P.
[OnePlus 9 Pro] Arcide:
Yes it does
[OnePlus 9 Pro] isoladisegnata:
Is there a xml for motion photo on oneplus9pro?
[OnePlus 9 Pro] Wolrage:
Thank you
[OnePlus 9 Pro] Arcide:
Arcide OP9P v5.2 XML for LMC 8.4 R13 (Fix2) GCam (Thanks HASLI!)

Google Lens available directly from the camera app by long pressing on the viewfinder (only with GoogleCameraEng package name, need to have Lens app installed)

INSTRUCTIONS:

- Download and install the APK

- Download the XML and place it in Internal Storage\LMC8.4 (load it by double-tapping the black area around the shutter button)

CHANGELOG:

- Many small changes for denoise optimization

- Reduced saturation on tele and increased temperature; tweaked CCT on all lenses

- Other optimization...

MODES:

LEICA - Vignette effect

LDR - Low dynamic range

PRO - Secondary configuration (Merge 3)

Non-PRO mode - Merge 1:

- Better fine details

- Recommended for landscapes

- Less sabre motion artifacts

PRO mode - Merge 3:

- Better shadow denoise in dynamic lighting

- Better Moire effect removal (more chroma denoise)

- Recommended for human portraits and close-ups

NOTES:

- No 4K video on OOS 12

- 60fps works ONLY on the ultrawide lens (although some people report it works on main lens on the latest firmware?)
[OnePlus 9 Pro] tk_xda:
What variant (and where to get it) of GCAM should I use with OOS12 C63 (rooted)? What configuration steps do I need to do after I sideload whatever APK I am supposed to use?
[OnePlus 9 Pro] Arcide:
Everything is in the post my dude, just need to read it
[OnePlus 9 Pro] elchmartin:
thank you for this.

i tried to load the config but the app says "Configs not found", although I did put the file in 'Internal Storage\LMC8.4' ... what did I miss? :-\

nevermind, I just seem to have put the file in the wrong folder somehow. copied the file in an adb shell now it was found.

thanks again!
[OnePlus 9 Pro] Skyrider:
Aw, shame that 4K doesn't work on OOS 12 :(.
[OnePlus 9 Pro] Sigray:
Is the dot fix can remove the dots on tele photos?
[OnePlus 9 Pro] Arcide:
LOL how many times did you ask this already?

Actually, there's a way to remove the dots, or better yet, there are two ways.

A lot of mods have the dot fix or dot remove option, but what that does is just basically apply a lot of noise reduction on the whole photo, and what you get is pretty much garbage (unless you were going for an overprocessed look, in which case you won't notice much degradation anyway).

The second and better option is using a PC software called Capture One. It has a setting that works really well at removing the dots while keeping most of the photo details. Maybe the only negative here for some people would be that this doesn't work on JPEGs, only RAW files for some reason. Check the photos attached, specifically photo number 3 where I've circled the setting (Single Pixel). It may not be perfect, you can still see some dots in some scenarios if you use just a tiny amount of noise reduction, but it's the best thing I've seen.
[OnePlus 9 Pro] Janez33:
Hello, I'm sorry if this question was asked already but I am wondering which one of the GCam port is the best? from which developer? For OnePlus 9 Pro Stock ROM, unrooted

Thank you in advance. Regards
[OnePlus 9 Pro] Arcide:
WARNING: Do this at your own risk

This is a Magisk module that unlocks Face Detection on OnePlus 9 and 9 Pro, works on OOS 11 to OOS 13. Install the file with Magisk and then follow the instructions on the screen (select your OS version with volume up and down keys), then reboot the phone.

Issue: In some GCam mods the telephoto lens will be black. The solution is to choose SDK28 in the telephoto lens stream configuration.

Credits to JeusChrit, shadowstepxda
[OnePlus 9 Pro] Arcide:
Arcide OP9P v6 XML for LMC 8.4 R14 GCam

Hasli: LMC8.4_R14

Download LMC8.4_R14 by Hasli.

www.celsoazevedo.com

INSTRUCTIONS:

- Download and install the APK from the link above (GoogleCameraEng / GLens package name is recommended)

- Download the XML from this post and place it in Internal Storage/LMC8.4 (load it by double-tapping the black area around the shutter button)

CHANGES:

- Changed tele lens stream config to support Magisk Camera Mod for face detection (https://xdaforums.com/t/gcam-for-oneplus-9-pro.4258451/post-87562257)

- Focused on Merge 1 (non-PRO) config, which is selected by default

- Increased Lut noise fix value from 4 to 6 for non-PRO mode (cleaner shadows in dynamic lighting, maybe more motion artifacts)

- Increased HDR Enh frames from 15 to 27 (ZSL still used by default)

- Tuned sharpness and denoise for all lenses

- Tuned colors for all lenses

- Reduced dynamic range for all lenses, tuned lighting for more contrast, which should result in cleaner photos in dynamic conditions

- Other changes

NOTES:

- No 4K video on OOS 12/13
[OnePlus 9 Pro] Arcide:
Arcide OP9P v6.1 XML for LMC 8.4 R14 GCam

CHANGELOG:

- Reverted to the default stream configuration for the main lens night mode, since some users experienced crashes.

Instructions and all other info in the quoted post.
[OnePlus 9 Pro] Fishawy:
This caused the whole System UI to freeze on my 9 Pro on OOS13 open beta. Removing it resolved the issue.
[OnePlus 9 Pro] LuckyTheCoder:
How do I modify the suffix of the name of photos?
[OnePlus 9 Pro] Arcide:
Can you confirm that while installing the mod you chose the suitable OS? Getting that issue means that the wrong file may be patched
[OnePlus 9 Pro] Fishawy:
Yep, OOS13 was selected.

Curious to know if other OOS13 users have successfully installed it.
[OnePlus 9 Pro] Arcide:
In settings - config settings, you can disable the configuration name in the filenames
[OnePlus 9 Pro] Arcide:
I'm using OOS13 and it works fine. Can you please try again and show a screenshot of the patching log? Which magisk version you used?

If it doesn't work again then try just this mod specific for OOS13
[OnePlus 9 Pro] Fishawy:
Well, that's weird.

I just reinstalled the original module and it works fine now, no freezes.

Thanks for that - I'll keep the deidcated OOS13 as a backup, just in case.
[OnePlus 9 Pro] LuckyTheCoder:
Thanks a lot!
[OnePlus 9 Pro] Psk.It:
Trying to access apk repo i am always redirected to this error page, where to get latest version?

Thanks
[OnePlus 9 Pro] LuckyTheCoder:
Another question! Is it fine that I leave "Hexagon DSP" enabled? I have a Snapdragon SoC and it works fine for me. Not sure if this would degrade image quality using Gcam.
[OnePlus 9 Pro] Arcide:
That's related to processing speed and power consumption, it won't affect the photo quality. The effects od each (CPU or Hexagon) is still not fully clear to me. Hexagon SHOULD use less power, but can't confirm.
[OnePlus 9 Pro] Arcide:
Arcide OP9P v6.2 XML for LMC 8.4 R14 GCam

Hasli: LMC8.4_R14

Download LMC8.4_R14 by Hasli.

www.celsoazevedo.com

INSTRUCTIONS:

- Download and install the APK from the link above (GoogleCameraEng / GLens recommended)

- Download the XML from this post and place it in Internal Storage\LMC8.4 (load it by double-tapping the black area around the shutter button)

CHANGELOG:

- Changed HW LVL for wide and tele lenses back to FULL (LVL3 caused some random freezes and black screens)

- Tuned light settings for all lenses to reduce black crush

- Reduced red tint on tele

TOGGLES (left to right):

- Focus tracking

- HDR frames

- AWB

- Exposure compensation

- ISO and exp time sliders

- Focus slider

MODES:

LEICA - Vignette effect

LDR - Low dynamic range

PRO - 2nd configuration (Merge 3)

Non-PRO mode - Merge 1:

- Better fine details

- Less sabre motion artifacts

PRO mode - Merge 3:

- Better shadow denoise in dynamic lighting

- Better Moire effect removal (more chroma denoise)

NOTES:

- No 4K video on OOS 12/13
[OnePlus 9 Pro] sev7en:
Thank you, I should get my OnePlus within days
[OnePlus 9 Pro] bejoyalex:
Sorry if this question has been asked but can i get 30x zoom? Most of the mods i installed gives only Max 10x zoom
[OnePlus 9 Pro] Arcide:
You were preoccupied thinking whether you could, you didn't stop to think if you should 😂

If using LMC it's in settings - LMC tweaks
[OnePlus 9 Pro] sameerkhanrock:
What about OnePlus 9r
[OnePlus 9 Pro] GuyInDogSuit:
Is this the OnePlus 9R forums?
[OnePlus 9 Pro] galaxys:
OnePlus 9R

The OnePlus 9R is a 6.55" phone with a 1080x2400p resolution display. The Qualcomm SM8250-AC Snapdragon 870 5G chipset is paired with 8/12GB of RAM and 128/256GB of storage. The main camera is 48+16+5+2MP and the selfie camera is 16MP. The battery has a 4500mAh capacity.

xdaforums.com
[OnePlus 9 Pro] Atul Menon:
Arnova bought a 9 pro. He has started working on fully functional gcam for this device
[OnePlus 9 Pro] jeudecon:
guys, sorry to be a noob with may be stupid questions, but I begin and have to learn. Something I don't understand is that for each gcam download links supposed to be ok for one+ 9 pro, there are always several possibilities like

MGC_8.1.101_A9_GVw_snap.apk (org.codeaurora.snapcam) #

MGC_8.1.101_A9_GVw_MGC.apk (com.google.android.GoogleCameraEng) #

MGC_8.1.101_A9_GVw_ENG.apk (com.android.mgc) #

MGC_8.1.101_A9_GVw_ruler.apk (com.samsung.android.ruler) #

MGC_8.1.101_A9_GVw_scan3d.apk (com.samsung.android.scan3d) #

I don't understand in that case if they are the same or not, and if not which one to choose.

thanks for your attention and to answer in easy and clear English, nobody is perfect, I am French....
[OnePlus 9 Pro] stazz83:
Get the codeaurora one - it's been explained in this thread already.
[OnePlus 9 Pro] jeudecon:
thx and sorry I did not saw it before.
[OnePlus 9 Pro] Hypnoz69:
Small test carried out today in 11.2.6.6 in broad daylight with stormy weather (auto mode).

First image with the Hasselbald OP application and second image with the latest Gcam available (MGC_8.1.101_A9_GV1a) and its XML adapted for the OP9 Pro.
[OnePlus 9 Pro] djsubterrain:
Only you can tell which was more true to life though?
[OnePlus 9 Pro] DashDashCZ:
The pole on GCam pic looks really cartoonist. I prefer the photo from stock camera app.
[OnePlus 9 Pro] Hypnoz69:
The second definitely.

It's true, but I really struggle with the sharp side of Hasselblad and much less realistic colors.

The shadows and the different shades of black (in other photos because this one doesn't have any) are much better defined with Gcam. But that's just a personal taste.

I am not a great photographer, has anyone done more efficient testing ?
[OnePlus 9 Pro] netgar:
Could please post a link where I can download MGC_8.1.101_A9_GV1a and its XML.

Thx
[OnePlus 9 Pro] Hypnoz69:
You can find it here :

BSG GCam APKs - Google Camera Port

Modified Google Camera app by BSG.

www.celsoazevedo.com
[OnePlus 9 Pro] watermelon_sugar:
been searching everywhere for a working Gcam Link. Hope this works well
[OnePlus 9 Pro] dkcats3:
Here's the site where they collect them

Google Camera Ports Download

Modified Google Camera ports (Pixel Camera) by BSG, Arnova8G2, BigKaka, Shamim, and others. Download hub for GCam ports.

www.celsoazevedo.com

I've been using the BSG ports of GCam and just installing the snapcam variant. Runs great, and gets updated every few days.
[OnePlus 9 Pro] cranberry_vanilla:
but i feel Gcam reduces camera quality on OP 9 PRO.
[OnePlus 9 Pro] hallo dare:
I can't get the gcam to take a zoom or wide angle shot successfully. I take the picture on either setting but it's just a main camera picture that's taken. Am i missing something simple?

Edit: turns out it's the pinch to zoom that makes it not register and you have to use the zoom slide bar
[OnePlus 9 Pro] ivigneshwaran:
I feel the camera quality differs a bit from the stock camera.
[OnePlus 9 Pro] gokuhs:
Has anyone tried any of these cameras mod in LineageOS?

With the last vesion of the MOD and LineageOS when i load the config file and I go to record video the camera closes (without load the configuration works fine)
[OnePlus 9 Pro] thats_the_guy:
This seems to be the case when 4k60 gets turned on on the main sensor. Once you turn it on in the config and select it, it seems to break the app until a clean install for me. On crDroid, there's a modded version preinstalled that let's you get the wide angle in 4k 60 successfully, and will black screen instead of crash for the others to fix it.
[OnePlus 9 Pro] bejoyalex:
I tried that but the photos at 30x is much worse than my stock camera.

So the reason why I am asking is recently i came across the Pixel 6 Pro and the photo it captured at 30x was much much better than my stock camera.
[OnePlus 9 Pro] Arcide:
30x on the Pixel is basically 7.5x digital zoom on the 4x telephoto lens (which is MUCH better than the tele on OP9P). For near 30x zoom you can switch to tele (which is 3.3x optical) and use the 8x digital zoom, but you should definitely lower your expectations.

As to why it's better on the stock camera it will come down to the specific situation. Stock is using a lot more denoise so depending on what you take a photo of it may look nicer on stock or look like absolute garbage. But that zoom level is not very usable anyway.
[OnePlus 9 Pro] bejoyalex:
Ok got it. Does LMC use Google photos image processing or OnePlus image processing? I have both are different and the Google image processing bit is much better.
[OnePlus 9 Pro] Arcide:
Google processing, what else would it use? Of course google processing is miles above, but only when it's configured. Stock gcam and stock oneplus camera are all the same crap.
[OnePlus 9 Pro] bejoyalex:
Ok then that answers my queries. Thanks for helping out a newbie here. Cheers
[OnePlus 9 Pro] Chrisch_91:
Last lmc crashing when i want to switch to ultrawide lens. What's the problem?
[OnePlus 9 Pro] Arcide:
Which package name? You should use snapcam or GoogleCameraEng
[OnePlus 9 Pro] Chrisch_91:
I'm using googlecameraeng (8.4.300.414775575.18).
[OnePlus 9 Pro] paclaco:
aux lens on agc 8.4 was working pefect, but suddenly they missed.....any body with this problem???
[OnePlus 9 Pro] kjslabber:
Tried your great xml on LMCA8.4_R14_GLENS. apk but aux lens crash the apk. I'm trying to use on Ancient rom. Anybody able to get to work?
[OnePlus 9 Pro] Arcide:
Do aux lenses work in any GCam? That may be a rom issue
[OnePlus 9 Pro] Chrisch_91:
Same here in nameless rom.
[OnePlus 9 Pro] LuckyTheCoder:
Getting some weird artifacting when using the 3x telephoto lens (clouds display this most prominentely). What's up with that?
[OnePlus 9 Pro] Arcide:
It's called "omnidots" and it's an issue present on some omnivision sensors when taking photos in gcam. It's most prominent on bright and plain colored surfaces. There's no way to fully remove them yet, only try to hide them.

Check this post

https://xdaforums.com/t/gcam-for-oneplus-9-pro.4258451/post-87548329
[OnePlus 9 Pro] scarcry:
Thanks so much for your dedicated XML work @Arcide 🤟

I'm on OOS 12.1 C.65 (no root) and installed LMC 14 and your latest xml yesterday and noticed you opted not to enable the monochrome lens.

On a clean install of LMC 14 when I enable the ID4 Camera I very briefly see the monochrome picture and than LCM exits back to homescreen.

Is there another toggle I need to enable ? What might I be overlooking here?
[OnePlus 9 Pro] Arcide:
Hey there! You're welcome. :)

Honestly I've never even tried it, and I literally don't see any reason to ever use the monochrome, since it's a garbage 2MP sensor. It's much better to shoot with main lens then edit the photo in post.
[OnePlus 9 Pro] scarcry:
Fair enough. I'm aware the 2MP sensor is just an "aid" for the other lenses and is considered utter trash, just wanted to see if LMC 8.4 GCam supports it.

Been shooting quite a bit today, mostly using the ultra wide lens and am really happy with the results so far.

Very much an amateur "photographer" happy to learn .. using LDR caught me out initially .. I figured it would take images that would actually be lighter rather than darker when using 1 of the HDR modes (like with flat panels and SDR vs HDR) but using LDR actually makes the images darker and blows out highlights. Quite surprised with the result but happy
[OnePlus 9 Pro] Janez33:
So for Oneplus 9 Pro I should use

(com.google.android.GoogleCameraEngR14) or

(org.codeaurora.snapcam)?

Also the only good config file for Oneplus 9 Pro is this one?

Arcide-LMC8.4-OP9P-v6.2.xml (changelog, use the "GoogleCameraEng" package to use Google Lens)

Because of this note I don't know which version to use.
[OnePlus 9 Pro] scarcry:
Think you can use either but with the snap package not having google lens
[OnePlus 9 Pro] Janez33:
I applied the config but it's making so very dark images without proper lighting, very bad, stock camera for comparison
[OnePlus 9 Pro] Arcide:
One is oversharpened, oversatured, with boosted mids and shadows and compressed blacks and it's good; while the other one is darker, dynamic, more detailed and natural but it's bad? Since when do we rate a photo good or bad based on how bright it is?? You're in the wrong place then my friend. Stock is your best bet if you like overprocessed instagram-like photos.
[OnePlus 9 Pro] UdashinAj:
Bro, share the latest Apk & configuration files
[OnePlus 9 Pro] master159992:
There isn any trick ,Fix to make It working at custom rom? Nameless 12,1 or 13

After Change to Wide or d tele app stop working and cant turn It on back.crash imedditly
[OnePlus 9 Pro] bkraptor:
Thanks for the great updates.

In previous versions (R11 with v4.2) I was able to change the gallery app by toggling a developer option. I can no longer find that option to toggle. Is there an alternative? I don't use Google Photos.
[OnePlus 9 Pro] Arcide:
I will assume you're talking about LMC. Yes the setting is there in settings - LMC tweaks menu.
[OnePlus 9 Pro] LuckyTheCoder:
Hello Arcide,

Really enjoying what you did with the XML config, just a few questions...

1. Is there any way I can disable the subtext (aka "lmc8.4" at the end of the filename?

2. I'm having focus issues that hender the quality of the photo. I'll manually tap to focus too and still get somewhat blurry results. Any fix?
[OnePlus 9 Pro] Arcide:
1. Yes, in the config settings submenu

2. No, it is how it is. For humans the camera unlocker magisk mod for face detection can help, search it on celso website
[OnePlus 9 Pro] LuckyTheCoder:
Thanks, but there is no option to disable to subtitle.
[OnePlus 9 Pro] Dayuser:
Config settings->Remove config name
[OnePlus 9 Pro] LuckyTheCoder:
That is on.
[OnePlus 9 Pro] YourTheBest:
How to expand the photo? Stock camera you have 3 options, non-zoom, stock and zoom-in.

Now i see 1 and 2. Any idea to change that?