yashsingh1/xdaforums huggingface dataset:
[Google Camera Mods] RebDovid:
As someone who is unable to mod or program, I'm in awe and indebted to those, like cstark27 and fu24, who provide the additional functionality and improvements from which I benefit.

That said, considering that, to take advantage of fu24's toggle solution to switching between the normal and wideangle lenses requires:

1. going into settings;

2. toggling between full and wideangle;

3. closing the camera app; and then

4. reopening the camera app,

I don't understand how that's an improvement over:

1. closing whichever cstark27 app you're using (normal or wideangle); and

2. opening the other app.

What am I missing?
[Google Camera Mods] AsItLies:
When I used this version: GoogleCamera-Pixel3Mod-Arnova8G2-V3_Aux-4.02.apk, you simply go to settings (as said), select the other lens, and the app then, in a blink, closes and reopens using the other lens. You really hardly notice it happening. For the selfie lens, since there's only one, so it has no effect there. For the selfie, use 'portrait' and it crops the wide angle lens.

So is it an improvement? I'd say yes, only one camera app, which does what 2 separate would do. There may be additional differences also, not sure, but I think every port I've seen (and there's a LOT of them!) reference cstark as a contributor.
[Google Camera Mods] RockStar2005:
Yeah. I don't mind switching between the two apps. Most of the time I'm using the main app anyway.

---------- Post added at 04:50 PM ---------- Previous post was at 04:47 PM ----------

Is that the fu24 version? I know it definitely isn't cstark27's.
[Google Camera Mods] AsItLies:
It's by Arnova, go to this link and you'll find it, the updated version of it, and many many more gcam ports. The Arnova one I used was indicated for dual lens.

https://www.celsoazevedo.com/files/android/google-camera/
[Google Camera Mods] cstark27:
[MENTION=8472543]fu24[/MENTION] if you follow the Namok/Toylan/SerJo versions they are adding something where you can long press on the camera switch icon and it opens settings. You could modify this portion of the code to change the camera ID Integer variable and to set "isRestart" to 0x1 and then the user just has to press back and it will change camera ID. If you need help with that let me know. It will reduce some swipes and taps but you'll probably want to display a toast so the user understands what happens.
[Google Camera Mods] RockStar2005:
I'll maybe check it out. Thanks!

2 questions:

1) Does it offer the same high quality as cstark's mod and 2) How different is it in design?
[Google Camera Mods] viktor92:
I don't know if it's by the default parameters, but right out of the box [MENTION=8472543]fu24[/MENTION] camera has a much darker image than [MENTION=2712580]cstark27[/MENTION] one in my LG G5.
[Google Camera Mods] ayaskant12:
V20 had poor battery already. You would do more battery cycles with v20 than v30 so the year may get delayed
[Google Camera Mods] treggi:
I use this version: cstark27_GCam_5.1.018_24_wide_v3.8-fu24-7.4.apk

It's the cstark27 versions combined for both lenses
[Google Camera Mods] divinafortner:
I use default on my g6 and it works well. Did you clear app data?
[Google Camera Mods] cstark27:
This is about the best I can come up with for 1 app with regular/wide in one app. Hold the camera switch icon (it should be green now) and exit the settings window that pops up and hopefully the rear is the wide angle now. Don't have a device to test with. You can also let me know if photos in very low light with a bright light somewhere in it has the right colors.

cstark27_GCam_5.1.018_24_v3.9test4.apk
[Google Camera Mods] koboltzz:
Thanks for your continued support. Didn't you want to buy a used V30?

I have tested the new version.

Below the desired example in a completely dark room with a bright light source (and a green plant). I don't see any difference.

To camera switch mode: Doesn't work. If you press and hold the button, the settings and the popup open as desired, if you then go back, still the main camera with autofocus is used. If you press briefly, the app crashes, which means that front camera does not work either.

I think you are on the right track anyway :)
[Google Camera Mods] cstark27:
Oops. I must have had a brain fart staying up till 4am lol. I used the wrong numbers for the ID's. I'll need to fix that when I get back to my laptop. Thanks for reporting. I bought a used V30 Aidan's sold it a few days later. ?
[Google Camera Mods] fu24:
cstark27_GCam_5.1.018_24_v3.9test4.1.apk

I fixed this problem.

in order to cooperate with the zoomfix module, I also modified the package name.
[Google Camera Mods] koboltzz:
That's a pity, such a lovely device ;)

Thx you very much, I will test asap.

Do either of you think it might be possible that when the 'flash' popop appears (flash set to auto), which is equivalent to a darkness detection, the HDR+ enhanced mode is selected automatically instead of the flash? I think this would be a killer feature since using a flash is only smart for a distance of 2 meters, but HDR+ enhanced is best for night shot, but too slow for a daylight (normal HDR with zsl is best solution for daylight).
[Google Camera Mods] cstark27:
Delete
[Google Camera Mods] cstark27:
Perfect, thanks buddy! I've been running around all morning doing stuff so it's nice to not have to dig the computer out lol.

[MENTION=1441829]koboltzz[/MENTION] try that one

Edit: I looked into the flash/HDR Enhanced but couldn't figure out a way to do that. Sorry.
[Google Camera Mods] fu24:
My version has a fix hdr+ by B-S-G.

takes enhanced HDR+ photo after tap of screen.

https://www.celsoazevedo.com/files/android/google-camera/dev-fu24/

( This does not include. cstark27_GCam_5.1.018_24_v3.9test4.1.apk )
[Google Camera Mods] koboltzz:
Too bad, but it was just a suggestion :)

Does this not interfere with touch to focus or manual exposure control?

I have tested your (older) version before and have not achieved the same quality like this one. Do you mind adding that feature to your test version 4.1 you just released? This would be really nice, I don't need exposure control.

Edit: Forgot to say, 4.1 works like a charm.
[Google Camera Mods] viktor92:
Thank you, works very well :good::good:

EDIT: and thank you [MENTION=2712580]cstark27[/MENTION] of course !!
[Google Camera Mods] cstark27:
Re: colors. This is what the fix does on my OnePlus 6. The V30 didn't do this often, only very special cases. But I think the G6 was more prone to it.

Purple tint (old):

No purple tint (with the new fix):
[Google Camera Mods] RockStar2005:
So is there any DIFFERENCE in quality between the that one and the 2 cstark 3.8 version ones???
[Google Camera Mods] cstark27:
v4.0

cstark27 v4.0

cstark27_GCam_5.1.018_24_v4.0.apk

-If device has 3+ camera sensors, displays a new side menu "Wide Angle"

--Click this item and it opens Settings and displays a message "Switching rear Camera ID. Press back to complete." So just press the back button when you see the settings menu pop up. I can't figure out a way to do this programmatically.

--On first install you may have to click this twice for it to start working

--After this is toggled the side menu will say "Default Camera" to indicate you can switch back

-The Camera Switch icon is green now to try to indicate you can Long Press this to do the same function as above (alternate between rear camera ID's)

-Black Level calculation adjusted to see if purple tint in shadows is fixed

-Updated code of Settings Restart to newest version

-Adjusted detection code for Hexagon DSP so mainly just LG's don't use it automatically

Credits Arnova8G2, arthur, namok, fu24, Tolyan009/TlnNeun

Anyways, hope it works. Can't test the final code on my current phone lol.
[Google Camera Mods] WiwiPouPou:
Great work, but a simple suggestion, I may be the only one but I switch wide and regular lens a lot, and front / back very rarely, could it be possible to make the switch button wide / regular only and long press to go front ?

Front pictures are rarely a quick shot, that's why..

Just a suggestion, I'm impressed by the quality!
[Google Camera Mods] cstark27:
I haven't looked at the regular switch code in a while but for that to work, it would require making the app read only the 2 rear ID's but when you do this, it causes a crash because other areas of the code are not set up for such a thing. In short it would probably be a much larger change than the above and I'm not sure if it's feasible. :silly:
[Google Camera Mods] vip-nord:
Or if its more simple, just switch between all camera ID (wide->normal->front->wide .....)

It could be awesome : )

Btw awesome app/quality : )
[Google Camera Mods] Redline:
[MENTION=2712580]cstark27[/MENTION]

Latest version working perfectly here on my V20 with LineageOS 15.1! Many thanks for somewhat continuing work even without the device needed. Wide angle switch works perfectly as do all the other functions.

Thanks again :D
[Google Camera Mods] donky kong 017:
Works great on v30 dotOS. You don't have to open the side menu do switch. Long pressing on the, now green, switch icon (for front /rear cam switching) also works. Brings you to settings with the toast. Thanks for maintaining this app without the device.
[Google Camera Mods] Indiant:
Great. For me it says 3.9 not 4.0, and the wide version overwrite the normal version. (so they can not installed at the same time. (wide 3.9 and normal 4.0(?!))
[Google Camera Mods] maxlsmurks:
V4 combines normal and wide...
[Google Camera Mods] cstark27:
Forgot to change the text string for the version. If you want separate apps just use the previous versions posted. V4.0 uses the package name for the Wide version to maintain compatibility with Magisk modules for other phones as mentioned by fu24.
[Google Camera Mods] Indiant:
Nevermind. My fault. Thanks for the update!
[Google Camera Mods] joaonuno:
[MENTION=2712580]cstark27[/MENTION] I have your version for tele in my Mi A1 and also other normal version from Arnova. If I install V4 will it overwrite the tele or the normal version? Thanks
[Google Camera Mods] cstark27:
Tele
[Google Camera Mods] Vuzeultra:
Really awesome update, I like the option to long press the switching button. Genius! It's great having it in one app since I take so many pics in the hot sun and my phone would have difficulty constantly switching camera apps
[Google Camera Mods] treggi:
Tank you, cstark27, for this version. Switching between the normal lens (which in fact is already very wide angled) and the wide (fish eye) lens also works well on the LG G6 (H870, stock Oreo 8.0, not rooted). Everything else also works fine. (Update: after using it a little bit more the app was sometimes hanging)

There's only one thing I am missing compared to the fu24 mod I used before: the possibility to store all files in one folder. Now the app creates subfolders for each couple of files when creating raw + jpeg files ist activated. When fu24 created the dual-lens-cobination of your former seperated apps, he added an option to save all pictures in one folder. This also worked with raw files. It would be great, if you, cstark27, or you, fu24, could add this feature to this version 4.0 by cstark27. Of course it would be even better if saving to the sd card would be possible as well, but I guess this isn't possible.
[Google Camera Mods] stewie-droid:
Which magisk modules? I would like to try them out.

Thank you for your work on this. It's greatly appreciated.
[Google Camera Mods] laasworld:
Thanks for the effort, but I'm afraid it doesn't work on my LG G6 (H870). I only ever get the normal lens, before and after trying to switch. Maybe it's an issue with the custom ROM (AquariOS w/ Oreo 8.1); I've had various odd bugs in combination with specific versions of your custom camera apps and certain Oreo 8.1-based ROMs.

I've reverted back to dual v3.8 apps. I'm already happy enough running 8.1 and gcam cameras on both lenses. The contrary became a deal breaker once I discovered this possibility.
[Google Camera Mods] badboytien:
plz add mirror front camera

god bless u
[Google Camera Mods] fu24:
If you use LG phones, you don't need the zoomfix module.

https://xdaforums.com/mi-a1/themes/magisk-google-camera-telephoto-lens-t3767531
[Google Camera Mods] cstark27:
So on V3.8 you use the LG G6 Lineage toggle, yes? I can add that back to v4.0.
[Google Camera Mods] laasworld:
Ooo that would be most kind of you!
[Google Camera Mods] usmcnyc:
Any update on this? Would love to get it working, I've been trying everything but nothing works.
[Google Camera Mods] stewie-droid:
4.0 when switching between cameras it changes resolution setting to blank and one has to select it from the menu. It happens to both cameras.

Since this happens it adds extra step of which most of ppl will forget and they one will take undesired resolution picture. This is way slower process then simply exiting and changing camera apk. It's also annoying to having choose resolution each time.

I'm going back to 3.9-test4 with two cameras. Thank you.
[Google Camera Mods] attom93:
You have to set resolution on both cameras only once. After that, the app will remember your settings. Works fine for me.
[Google Camera Mods] stewie-droid:
Nope. It doesn't remember. I tried many times.
[Google Camera Mods] Cryptecks:
I'm on the Verizon G6, and the photo and panorama resolutions all stay set as I want them when I flip back and forth in v4.0, just for another report.
[Google Camera Mods] stewie-droid:
On lg v20 h918 it does not remember.
[Google Camera Mods] darkknight200:
Can confirm on us996. Switching to main camera it doesn't remember the 16mp that I set it to but auto sets 8mp. When I switch wide angle it remembers 8mp.
[Google Camera Mods] Dizzyrul3z:
Same here on H930.
[Google Camera Mods] cstark27:
V35 needs the versions for SD845.

Options: https://www.celsoazevedo.com/files/..._N6_GoogleCamera-Pixel2Mod-Arnova8G2-V8.2.apk

https://drive.google.com/file/d/19cdbZ_TlhhynmLdZterd1zxdBN4hLSVD/view?usp=drivesdk

Wide: https://drive.google.com/open?id=14Eht4rXLfGUcNHmjUAJPc3_I_83tCDHa

Can you explain a bit further? Is this only relevant if you don't use the default resolution? Or are you saying it doesn't capture a photo if you don't select anything? Or is it taking a lower resolution photo?

Edit: saw the newer replies. Will try to think of a fix. This one will be hard. I'm not sure where the resolution code is.
[Google Camera Mods] darkknight200:
So when I switch to default camera and I go to settings, I see the resolution is blank. When I take picture with default camera as is, I check the picture resolution and it's 8mp.

I always set my default as 16mp.
[Google Camera Mods] stewie-droid:
I always choose 16:9 so that means settings are 2 to 3 notches below default of max resolution. When i set resolution for 16:9 and switch to other camera api when u go back to settings it's blank. I don't know what that resolution is but i'm assuming it's default which is max 4:3? I didn't take pic. I did this back and forth few times and it didn't stick.
[Google Camera Mods] cstark27:
cstark27 v4.1

cstark27_GCam_5.1.018_24_v4.1.apk

-Add LG G6 Lineage Toggle

-Add Advanced>Default HDR+ Mode for Normal and Wide Lens options

--Switching rear cameras will change the HDR+ to the specified mode

--Usage: If you want the regular lens to usually be HDR+ ZSL, but the Wide Angle to always be HDR+ Enhanced. You can also select No Change (default) so HDR+ mode is not changed by the system and will keep what you choose when switching rear cameras

Let me know if I messed something up. No fix for the resolution issue...if you Clear Data and don't change the resolution, it still doesn't work correctly? (ie, I'm hoping without changing anything you get the max resolution from each sensor)
[Google Camera Mods] spacebar2011:
Can confirm this is exactly the case on my H930DS.
[Google Camera Mods] cstark27:
Share a screenshot of the resolution list with the Default Camera toggled and Wide, please.
[Google Camera Mods] viktor92:
Main camera
[Google Camera Mods] viktor92:
Wide camers
[Google Camera Mods] viktor92:
I've cleared data before trying the switch and taking the screen shots
[Google Camera Mods] spacebar2011:
The main camera drops down to 13 MP after switching back from the Wide angle. By default, with the resolution setting blank, the main camera takes 13 MP pictures.

This forces me to go back to v3.8.

[MENTION=2712580]cstark27[/MENTION] Thanks to you and every other person that's made this possible, couldn't appreciate it more!

P.s - I'm the guy from Reddit that posted the shadow information thing with the tall building a few days ago ;)
[Google Camera Mods] fu24:
The version I modified has the same problem.

In order to use the motion mode, I have added BSG's 4:3 12MP black screen fix. The code iga.smali is directly written to the maximum resolution of 4032x3016.

In the newer version (GoogleCamera-Pixel3Mod-Arnova8G2-V3_Aux-4.02.apk ). I also added this fix for the telephoto lens ( 4208x3120 ), the result is the same,

The resolution 12MP will remain the same when a wide-angle lens is switched to a telephoto lens.
[Google Camera Mods] spacebar2011:
I think two separate apks for normal and wide was a better solution.
[Google Camera Mods] fu24:
For me ( MI6 ), it’s just down to 12MP from 13MP, so I always feel acceptable.
[Google Camera Mods] cstark27:
On 5.1.018, eqx.smali remove the line "invoke-static {v1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V" and see what you get. Hopefully you can see something in that file that can help out. I can't access the third sensor on my OP6 to do tests. But when I removed that line I get 2:1 (18:9) resolutions now, along with the 4:3 and 16:9.

Edit: Here [MENTION=8472543]fu24[/MENTION] - https://drive.google.com/open?id=1lW3FoCZB6iSHgbvv6g4rmyCAE8EG3egx
[Google Camera Mods] hawkeyexp:
Toogle is not working correct on lineage

Should the setting auto switch between positions ? If yes it won't.

Some try and error with switching between cams with sidebar menu will result in sometimes reaching wide angle cam sometimes not in interaction with chaging setting cam fix. Feels like some state store will fail etc.
[Google Camera Mods] fu24:
After I install. I also get a 2:1 resolution,

But the 4:3 results are the same,

The resolution 12MP will remain the same when a wide-angle lens is switched to a telephoto lens.
[Google Camera Mods] ferez:
Just wanted to say thank you
[Google Camera Mods] laasworld:
Perfect, works like a charm! Thanks a lot!! If you find yourself at the Oktoberfest (or Munich for that matter), I'll buy you a beer :D
[Google Camera Mods] cstark27:
Thank you. I think I see the issue now, the pictures help. I will try to see if there's a way to keep the item # selected, it seems to be selecting the same resolution or finding one closest. :confused:

[MENTION=309348]hawkeyexp[/MENTION] no, the toggle is just a setting. After you toggle it you'll need to use the Camera Switch icon/side menu to change from wide to regular (remember, after first install you may need to do this 2-3 times for it to start working). If you are still having issues then please use the Camera2 Test from OP and share the report.

[MENTION=5082803]laasworld[/MENTION] thanks for the confirmation and generosity. :P
[Google Camera Mods] Anarchaotic:
So V4.1 works for me on my G7, but the viewfinder is extremely laggy - any way to fix this?
[Google Camera Mods] cstark27:
See above. G7 has SD845 which doesn't work well with GCam on most devices.
[Google Camera Mods] Anarchaotic:
Thanks for the help! I managed to find a Wide-Angle lens version that works on my G7. (one you linked) The Arnova one you linked keeps crashing whenever I open it, but in the background I can see the viewfinder working well. The decomg 3.4A exhibits the same behavior. Do you think we'll eventually get a more stable SD845 GCAM port?
[Google Camera Mods] cstark27:
Clear data of the app and try again. Other G7 users are using it fine AFAIK. Consult the G7 thread if you still have issues.

https://xdaforums.com/lg-g7-thinq/help/gcam-hunt-portrait-mode-t3801949
[Google Camera Mods] hawkeyexp:
It was a bit confusing on first tests but it is generally working using the green cam toggle - but the sidemenu is not switching.

- Start cam

- normal cam is visible (side menu shows wide angle button)

- Pushing green toggle -> cam is switching to wide angle

- Sidmenu still shows wide angle button

- Pushing green toggle again -> cam is switching to normal mode again

The problem is the sidemenu which won't witch correctly - that was the confusing part.
[Google Camera Mods] kekley:
Hello [MENTION=2712580]cstark27[/MENTION], is there anything I can do if my zsl shots are consistently overexposed? I know tap to focus brings up an exposure slider but is there any way to have the setting changed permanently or have the slider up permanently?
[Google Camera Mods] sibesaver:
V4.1 Working beautifully every time on the Verizon V20 Thanks for the great mod!!!
[Google Camera Mods] Anarchaotic:
This worked for me! Thanks!!
[Google Camera Mods] Bouzoo:
Any way to switch cameras without opening the camera menu?

Also both back cameras keep reseting to 4:3.
[Google Camera Mods] Chlorophyll:
Is this compatible for oneplus 5T device?
[Google Camera Mods] valiii 007:
can someone explain to me what would happen if i change the image quality from 95% to 100% ?
[Google Camera Mods] nkirk:
Jpg max quality will be used to save and image size will increase as a result.
[Google Camera Mods] MacLaughlin:
Would be lovely, if you could break some stuff ;)
[Google Camera Mods] Vkboy:
[MENTION=2712580]cstark27[/MENTION] sir I have a request can you please make a version of Google camera with touch to focus works and hdr normal and hdr+ enhanced setting fully working on Mi mix 2 (Chiron). A version out there by arnova V6 beta 1 has touch to focus works. But it lacks auto hdr irrespective to all settings. All other version have hdr and hdr enhanced working but no touch to focus. Auto focus seems to work fine in most of the versions. If possible please take a look at it. I am attaching camera camera2test info of my device. I am using global beta Oreo 8.0 android miui

OS Version: 4.4.78-perf-gdd4cbe9-00396-g39b6bdb(8.2.8)

OS API Level: 8.0.0(26)

Device: chiron

Model (and Product): Mi MIX 2 (chiron)

Camera 0 (BACK)
[Google Camera Mods] Vkboy:
Mi mix 2 camera2test info

Also any report sir about stabilization? :D.
[Google Camera Mods] cstark27:
Arnova8G2 would be much more helpful than I for such a thing. He's much more capable. But the recent changes for HDR+ Enhanced Portrait Mode and the focus fix are compounding issues. And with your device, a fix would be harder than what I was able to implement for my next LG optimized release.
[Google Camera Mods] cstark27:
cstark27 v3.5

-Clearing App Data is recommended. Open "Camera"> Settings>About>View App Settings Page>Storage>Clear Data

-Added Advanced>HDR+ Enhanced Portrait Mode : This forces Portrait Mode to use HDR+ Enhanced which will offer better dynamic range but you lose Zero Shutter Lag (Thanks [MENTION=4860033]Arnova8G2[/MENTION] for this cool trick)

-Added Advanced>HDR+ Enhanced Adaptive Shutter Speed : This is the Slow Shutter mod from [MENTION=4798833]miniuser123[/MENTION]. I would say this is "beta" for LG devices. I know on my V30 some tuning is needed to the parameters but I want your guys feedback first. It only affects HDR+ Enhanced. The shutter speed will slow down the darker your scene is. You probably want a tripod or something to prop your phone against, for best sharpness. In normal lighting the shutter speed seems to be the same as before so I don't think it would be a negative to leave this on - but it's your choice and needs testing.

-Added LG G6 Lineage Camera ID Fix toggle to Wide Angle APK so there shouldn't need to be separate Lineage builds for G6 anymore

-Optimizations courtesy of [MENTION=4860033]Arnova8G2[/MENTION]

2 Separate APK's (download both, they do not require each other though so you can use a different normal lens version if you want):

Download standard rear + front cam: cstark27_GCam_5.1.018_24_v3.5

Download wide rear + front cam: cstark27_GCam_5.1.018_24_wide_v3.5.1