yashsingh1/xdaforums huggingface dataset:
[Essential Phone Themes, Apps, and Mods] TheIronLefty:
So me and [MENTION=5447216]aer0zer0[/MENTION] were talking about how good the ArtZ gcam was, so aerozero took on himself to find the black level settings and he did, so after we tweaked it around, me mostly screwing around with noise settings, we came up with this config using Arthurs latest gcam https://www.celsoazevedo.com/files/android/google-camera/f/changelog197/

I moved these kind of post to a new thread so i dont spam this magisk thread up

https://xdaforums.com/essential-phone/themes/custom-gcam-settings-using-tolyans-build-t3829476

Saturation adjustment -> Highlight Saturation = 1.2, Shadow Saturation = 2.0

2: Advanced settings -> Main Camera -> Base model = Pixel II XL

3: Tuning back cam -> Tuning master switch, Apply custom sensor noise model and Apply custom denoise params = on

4: Manual fixed black level offset: -> Enable

Crimson,Neutral,BrightGreen = 63.60

DarkGreen,Neutral,Red = 64.00

DarkGreen,Neutral,Red = 63.80

Blue,Neutral,Yellow = 64.10

5: Back to Main camera -> HDR+ denoise multiplier back = 120% (you can change this as you desire, since increasing this makes the photo smoother but less sharp.)

6: Back to Advanced settings -> Front camera -> Base model = Pixel II XL

6: Manual fixed black level offset = 64.00

7: Back to Advanced settings -> HDR+ Control = On

8: Advanced setting HDR+ -> HDR+ parameters = 8 burst

Hexagon DSP = Auto

Final jpg quality HDR+ = 100%

9: Back to Settings -> NonZSL HDR+ underexposure multiplier = 125%

p.s. dont use HDR+ Enhanced

Samples:

https://imgur.com/a/zxTq7RD

https://imgur.com/a/gqTCFjA

https://imgur.com/a/Sezf6yN

Edit August 9th

New noise managment settings thanks to reddit user /u/killergram33

• Tuning master switch = ON

• Apply custom sensor noise model = ON

• Custom sensor noise offset a = 750 (Pixel2XL)

• Custom sensor noise offset b = 22500 (Pixel2XL)

• Custom sensor noise scale a = 2117875

• Custom sensor noise scale b = 113625

• Apply custom denoise params = (ON)

• Custom luma denoise low light = 1.6

• Custom luma denoise medium light = 1

• Custom luma denoise good light = 0.25

• Custom chroma denoise low light = 30

• Custom chroma denoise medium light = 5

• Custom chroma denoise good light = 2.55

• Custom denoise revert factor low light = 1.55

• Custom denoise revert factor medium light = 0.75

• Custom denoise revert factor good light = 0.25

also this is my experience with tweaking black levels.
[Essential Phone Themes, Apps, and Mods] mobileman88:
Wow. Nice. Will these be uploaded as an installable package?
[Essential Phone Themes, Apps, and Mods] TheIronLefty:
Not yet, since me and aer0zer0 dont really know about decompiling apk's and recompiling them.

---------- Post added at 12:05 PM ---------- Previous post was at 11:47 AM ----------

for whoever was using our config, please replace the old settings since the old one had rare pink tint issue and slow processing of HDR+
[Essential Phone Themes, Apps, and Mods] dirtyreturn:
Feels like I should search, though its much easier to just ask and expect little to nothing related to the question. Anyway, I have the module and stuff. I'm wondering if there is, in this thread somewhere, an app aside from the essential camera app that works with the 360 camera?
[Essential Phone Themes, Apps, and Mods] xorwin:
wow! how much time did you guys spend on it?

thank you very much
[Essential Phone Themes, Apps, and Mods] :
Have u gotten digital well being to work? I have the apk and the ghetto pixel mod installed. And the mod to get vendor apps. Still no go..
[Essential Phone Themes, Apps, and Mods] kakabobo:
Cannot seen to find the option to enter below conf.

4: Manual fixed black level offset: -> Enable

Crimson,Neutral,BrightGreen = 63.60

DarkGreen,Neutral,Red = 64.00

DarkGreen,Neutral,Red = 63.80

Blue,Neutral,Yellow = 64.10
[Essential Phone Themes, Apps, and Mods] TheIronLefty:
the recent release from arthur moved the menus around :mad:
[Essential Phone Themes, Apps, and Mods] BAD_BOY_KIEV:
This one does magic. Thank you!! Installed it with no root, Android P. Works tremendously (c). Is there a point checking out the OP G-Cam?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Only if you want slomo to work.
[Essential Phone Themes, Apps, and Mods] TheIronLefty:
New noise managment settings thanks to reddit user /u/killergram33

• Tuning master switch = ON

• Apply custom sensor noise model = ON

• Custom sensor noise offset a = 750 (Pixel2XL)

• Custom sensor noise offset b = 22500 (Pixel2XL)

• Custom sensor noise scale a = 2117875

• Custom sensor noise scale b = 113625

• Apply custom denoise params = (ON)

• Custom luma denoise low light = 1.6

• Custom luma denoise medium light = 1

• Custom luma denoise good light = 0.25

• Custom chroma denoise low light = 30

• Custom chroma denoise medium light = 5

• Custom chroma denoise good light = 2.55

• Custom denoise revert factor low light = 1.55

• Custom denoise revert factor medium light = 0.75

• Custom denoise revert factor good light = 0.25
[Essential Phone Themes, Apps, and Mods] TheIronLefty:
Experimental pink tint fix

After a lot of testing

Setting this to 63.25 fixes it but sometimes does, sometimes does weird stuff and introduces yellow to where it shouldn't be
[Essential Phone Themes, Apps, and Mods] TheIronLefty:
I moved these kind of post to a new thread so i dont spam this magisk thread up : https://xdaforums.com/essential-phone/themes/custom-gcam-settings-using-tolyans-build-t3829476

New discovery tolyans new builds have some kind of dynamic blacklevel which seems to work perfectly + has the other features from arthurs build and top it all of its 5.3 gcam

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

You can copy paste the saturation settings and noise settings turn on fix blacklevel and ur set to go.

~~Edit August 14th~~

New noise settings tweaked by me.

Custom luma denoise at high ISO values = 2.05

Custom chroma denoise at high ISO values = 100

Custom chroma denoise at average ISO values = 10

Custom chroma denoise at low ISO values = 2.55

Custom denoise revert factor at high ISO values = 0

Custom denoise revert factor at average ISO values = 0.1

Custom denoise revert factor at low ISO values = 0.3

comparision:
[Essential Phone Themes, Apps, and Mods] Scaevola:
I uninstalled the module and the Gcam on my phone, but after reinstalling, all the Gcam apks that I tried are crashing. What might be wrong?
[Essential Phone Themes, Apps, and Mods] mobileman88:
I did the following which seems to work out ok.

1. uninstall gcam

2. uninstall module

3. reboot

4. reinstall module

5. reboot

6. reinstall gcam
[Essential Phone Themes, Apps, and Mods] Hung0702:
Did this work for you? I did this, even going so far as to power off via power button menu. Still crashing on 8.1 :(
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Wonder if it works on P only.
[Essential Phone Themes, Apps, and Mods] mobileman88:
Very odd. You must have some app conflicting.
[Essential Phone Themes, Apps, and Mods] Hung0702:
You guys are probably right since only one other guy has reported this and everyone else seems to have no issues. I'm on the June security patch, so I'll update to the July and see if it helps. Hope xposed comes to P soon and I won't have a reason to stay outdated.

EDIT

: Updated to July and tried again and it didn't work but I think it's an issue with the gcam apk I'm testing. The older BSG 5.2 stable from May works, but 5.3 doesn't for some reason. Similarly, Tolyan's 1.0.5 doesn't work. Wish I could try [MENTION=6071891]TheIronLefty[/MENTION]'s settings. Sounds like the new apks work on P but not Oreo. Anyone having issues, check here before posting!
[Essential Phone Themes, Apps, and Mods] starcms:
GCam based on official 5.3.x requires Android Pie.
[Essential Phone Themes, Apps, and Mods] loumaros:
I receive a weird error while trying to manually install the magisk module.

"Please install Magisk 15.0+" or something like that.

My phone currently runs v 16.7
[Essential Phone Themes, Apps, and Mods] aer0zer0:
That seems odd, are you not installing through magisk manager?
[Essential Phone Themes, Apps, and Mods] monster1612:
I'm installing thru the manager app as well on 16.7, and it doesn't work. Also, does this module work on P?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Yeah, works fine in p
[Essential Phone Themes, Apps, and Mods] loumaros:
Thanks monster1612 for verifying the issue.

I did a factory reset, back to stock, and re-installed the official Magisk release v.16. The problem persists. Is there a way we could manually push any file, or whatever, to get the same results as your patch?:confused:
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Still not sure what's happening....
[Essential Phone Themes, Apps, and Mods] aer0zer0:
See screenshot
[Essential Phone Themes, Apps, and Mods] loumaros:
I got it to work. The steps I followed were:

1. Back to stock

2. Installed Magisk v.16

3. Made sure i had root access

4. Tried to install mod but received magisk version error

5. Enabled beta versions update through magisk settings

6. Updated via magisk manager my version to v.16.7

7. Rebooted

9. Tried to install the mod as usual

10. Profit
[Essential Phone Themes, Apps, and Mods] aer0zer0:
To be honest, you probably wanna use the one in the second or third post. So you can use a more modern arcore and stickers.
[Essential Phone Themes, Apps, and Mods] bumpaneer:
I have been trying to create an installer for the DIY_GCAM that will auto place the textproto file for the ARCore database. I have gotten it to successfully place the file, but I am unable to get the setup to fully work. Currently the Magisk Module checks that the ARCore folder exists in data/data, otherwise the module will abort installation.

Here is a link to my current zip file:

https://drive.google.com/open?id=1LOku7ia-_zYnomR0TxmQBiE9SijzoaIi

Please feel free to use anything that might be helpful for a more fully featured solution.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Does anybody want to test a nougat version? I need a guinea pig. PM me if your interested .
[Essential Phone Themes, Apps, and Mods] xterminater07:
Do you mind making a magisk working version for the scrubber mod: https://www.celsoazevedo.com/files/android/google-camera/f/scrubber_GCam_5.1.018.apk

Let me know if sounds works.
[Essential Phone Themes, Apps, and Mods] aashishtheaasik:
Any way to flash this as apk without root?
[Essential Phone Themes, Apps, and Mods] Mania626:
This ^
[Essential Phone Themes, Apps, and Mods] gk1984:
Not likely. You can certainly install the camera apk and ARCore apks but without modifying the system, ARCore will crash. Most of the camera features work as is though.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
SELinux permissions are the killer. it'll work, until you have to reboot everytime you take a portrait photo or record a video. Thats why its in magisk, 1 stop shopping.....cost of doing business.....etc.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
scrubber mod? ok, ill try i guess
[Essential Phone Themes, Apps, and Mods] avd:
Congratulations on being featured on the xda frontpage
[Essential Phone Themes, Apps, and Mods] Nathan11me:
I installed the mod with magisk, restarted device but there isn't any apk installed, did I forgot something? Lineage 15.1 on z2 plus
[Essential Phone Themes, Apps, and Mods] aashishtheaasik:
I don't care about AR stuff if Camera/Video works without crashing /lag and portrait mode would be a sweet bonus.. Do u think I can get if I just install camera apk?
[Essential Phone Themes, Apps, and Mods] xterminater07:
Yea he's a developer from a different device but I don't know if his work is good for our device or not so I figured asking u
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I'm running the scrubber apk on my essential and it appears to be really stable without any need for heavy configuration.

I'm on Oreo beta 2, non-rooted
[Essential Phone Themes, Apps, and Mods] xterminater07:
Take a picture in portrait mode front camera, then activate microphone in facebook messenger, see if you sound crashes. If it does, a magisk module will be the best way.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Scrubber mod is meh. Needs to be in the magisk mod to work right. Front hdr+ works at the expense of no mods, and crazy zoom 1080p 60fps recording, and poor color/autofocus. I'll up it in the zip if anybody really needs to have it. But I'm sticking with v4
[Essential Phone Themes, Apps, and Mods] xterminater07:
What do u mean by crazy zoom? No point making it, I just wished bsg didn't remove portrait front in his newer version bc arnova's based off his as well.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
When switch to 60fps, it like 3xzoom, can't unzoom it
[Essential Phone Themes, Apps, and Mods] xterminater07:
Haha... Yea i'll stick to v4, and pray bsg up a version that will work later
[Essential Phone Themes, Apps, and Mods] aer0zer0:
We may not get one unless he goes back to selecting hardware profiles.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
https://www.xda-developers.com/pixel-2-google-camera-port-essential-phone/

Someone writes well of the mod.....
[Essential Phone Themes, Apps, and Mods] xterminater07:
Lol i saw congrats for being front page!! You will be on there again for the sound mod soon ;)
[Essential Phone Themes, Apps, and Mods] aer0zer0:
I think it's in the wrong directory, device_profile2_database in your install logic is where it needs to go.
[Essential Phone Themes, Apps, and Mods] bumpaneer:
This was my attempt for ARCore 1.3. I tried the new folder with ARCore 1.4 with no luck.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
So it's placing the file with the rest, but it's still not working?

Perms right?
[Essential Phone Themes, Apps, and Mods] bumpaneer:
Actually, the rest don't exist when it places the first file, maybe that is the problem. The profiles don't seem to get generated until ARCore is run for the first time.

I was tring to:

1: Install ARCore

2: Install Stickers

3: Install Magisk module
[Essential Phone Themes, Apps, and Mods] monster1612:
This is apparently the issue I'm getting. Running magisk 16.7 on the stock Pie firmware.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Your magisk install is borked
[Essential Phone Themes, Apps, and Mods] monster1612:
An in-place reinstall of 16.7 through the manager app fixed the issue. Now the AR stickers work well. Thanks for the mod. :)
[Essential Phone Themes, Apps, and Mods] :
That is an easy fix, go to magisk settings and change update channel to beta, then pull down to refresh, then install mod and it will succeed.magisk install is fine. It may tell u it needs to download some more items after the refresh but just hit ok and it will download another magisk zip to update environment.
[Essential Phone Themes, Apps, and Mods] :
See
[Essential Phone Themes, Apps, and Mods] loumaros:
Is there a way to get more AR stickers? Something like an extra apk, or whatever.

I followed the steps of post nr.2 with no success, so i reverted to the way presented in the original post
[Essential Phone Themes, Apps, and Mods] fowzanaamir:
M using op5t cr droid ROM and non of the ports are working it gives off pink image can someone help
[Essential Phone Themes, Apps, and Mods] droidstyle:
Works good here...Thanks
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Guess I should update to 17000 magisk version and modify OP. Everything good otherwise? Want some ghetto pixel mod in your life?
[Essential Phone Themes, Apps, and Mods] feligoni:
Previous times I try the ghetto pixel mod I couldn't install any subs theme. It's like the mod breaks substratum and it won't install any overlay, no matter what I do.

Did you experience the same?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Don't use substratum, but if I was to wager a guess, the pixel.rro (thing that makes pixel blue) is causing your problem. You can dl and remove it, and resetprop line that deploys it
[Essential Phone Themes, Apps, and Mods] feligoni:
Gonna try it!

Thanks!
[Essential Phone Themes, Apps, and Mods] aer0zer0:
boy, its been a minute, huh.

Anyways, OP, 2nd, and 3rd post have been updated extensively. Finally got some time to get stuff done. Enjoy :)
[Essential Phone Themes, Apps, and Mods] loumaros:
cheers man,

i'll give it a shot as soon as possible!
[Essential Phone Themes, Apps, and Mods] gk1984:
Sorry, first time trying the ARCore steps in 3rd post. I'm confused with step 4. You say to rename a file. What do we rename it to? I tried just changing the file name to anything and it didn't work.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Rename the phone code name to mata

Ex. If your looking at a taimen profile, change taimen to mata, leave everything else.
[Essential Phone Themes, Apps, and Mods] starcms:
The Magisk module has been updated? Why the addition of the build.prop lines and the removal of the .dtd file? (Basically why the changes from the previous DIY_GCAM_MOD_V2_NO_ARCORE.zip file?). What do the 5 new prop lines do? And guessing the .dtd file was unnecessary?

Also, I never had mentioned this, but in the postfsdata file, the two commands to "Enable SELinux permissions for GCAM" aren't valid. If you run them from within Android, they just spit out a ton of errors. So they have never done anything and I always just comment them out to avoid the errors in the log. Since GCam isn't installed to /system/priv-app anyway like in the very old Magisk modules that included a GCam apk, it makes no difference anyway (I'm guessing they are a leftover from those old days) so I'd recommend removing them in your next update. However, the line to fix the camera lag does execute properly, not sure if it makes a difference, but at least it runs, so ok to keep that.

Lastly for ARCore/ARStickers instructions and downloads, I would highly recommend just linking here:. https://www.celsoazevedo.com/files/android/google-camera/ar/

I wrote the instructions myself (updated since I wrote yours for easier installation). There is also a newer version of ARStickers available which works alot better.

Much thanks for your help as always!
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Simply because I felt like it. The lines are what I have in my other magisk mod I use. They don't hurt anything at this point. The selinux stuff was necessary back in the day when the audio would lock up on N. I just never removed it. Again, they don't hurt anything.

We only just got permatwrp, so I wasn't gonna have people screw up magisk to install twrp to forget to install magisk again. Thanks though ?
[Essential Phone Themes, Apps, and Mods] starcms:
Why'd you remove the .dtd file?

And if you don't mind me asking, what other Magisk module did you get the 5 build.prop lines? Any idea what they are supposed to do?

And I'd recommend at least updating post 2 with the link to the newest version of ARStickers from the first link I sent. It works considerably better.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
It's unimportant now, don't need it to make hevc work with newer gcams.

4 of those lines are from pixel2, the device orientation line is from our build prop, trying to see if I could force eis.

What's better about it.
[Essential Phone Themes, Apps, and Mods] starcms:
It acquires the surfaces much, much, much faster especially in low-light on my Essential (I know it seems like that should depend on ARCore and not ARStickers, but it most certainly does). Less importantly, it's a newer version (1.3 vs 1.2) and it'll probably be the last version of ARStickers that Google releases.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Will do, even though, as you said it's counter intuitive.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
So, in those zips, what profiles is he generically modding?
[Essential Phone Themes, Apps, and Mods] starcms:
The TWRP zips? It takes the OP3 profile, renames it automatically to match your phone from reading build.prop, and sticks it in the right folder.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
I happen to like the taimen ones, but I'm not sure it makes a difference really.
[Essential Phone Themes, Apps, and Mods] crankiro97:
Thanks alot OP for your Magisk module, I finally got ARcore and AR sticker working perfectly. Great job!
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Did you use the twrp zips or the renaming a file as I suggested
[Essential Phone Themes, Apps, and Mods] crankiro97:
I just did the rename. I still haven't updated to the official TWRP because I don't understand much about the A/B partition and my current TWRP touch screen doesn't work since installing the September update.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
That's fine, glad it worked out
[Essential Phone Themes, Apps, and Mods] starcms:
Glad you got ARCore/Stickers working!

If you want touch working with TWRP, I have provided instructions on page 9, post 86, of the official TWRP thread (direct link here: https://xdaforums.com/showpost.php?p=77597383&postcount=86) to show how you can flash the TWRP installer zip when the touch screen doesn't work (it's basically just 2 additional adb commands that do what you would do if the touchscreen worked). So if you take the official instructions combined with my abbreviated version with the 2 additional commands from that link, you should have no trouble getting touchscreen working with TWRP on the September update (and October, November, etc).

Sorry for off-topic, [MENTION=5447216]aer0zer0[/MENTION].
[Essential Phone Themes, Apps, and Mods] crankiro97:
Thanks, I'll try that.

Edit: I got the touch screen working on TWRP, appreciate your help :) :)
[Essential Phone Themes, Apps, and Mods] envizion58:
i followed the instructions of first page and renamed the arcore taimen to mata. sticker and measure runs now but both apps can't seem to find any surface. any idea how to fix it?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Seems to work here, are you circling to find a surface?
[Essential Phone Themes, Apps, and Mods] envizion58:
it just doesn't seem to locate any surfaces no matter how i walk around. i can drop the stickers down but they will just float around. same thing in the measure app. can't locate any surfaces. i even tried renaming a few other profiles but same thing happens. i'm currently on a AOSiP rom and using v1.0.11 TinNeun from toylan. not sure if that changes anything. i'll try other gcam ports when i got time.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
No idea, works here.
[Essential Phone Themes, Apps, and Mods] whymoo:
Was anyone able to get arcore 1.5 working? I think it broke something.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Afaik it's broke, I tried today
[Essential Phone Themes, Apps, and Mods] starcms:
Yes. ARCore 1.5 breaks everything. Uninstall it, reinstall ARCore 1.4, and follow the install instructions again.

ARCore 1.5 either

a) Moved the proto files to a new location

OR

b) What I honestly believe is ARCore 1.5 checks build.prop everytime it is run (such as by ARStickers or Measure) and if it detects it's on an unofficial device, it automatically deletes all the proto files. Google is really an ass. And there's absolutely no reason the Essential shouldn't be officially supported anyway.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Think it looks for build name in prop, I tried copying the protos back
[Essential Phone Themes, Apps, and Mods] :
We need to pull a build.prop from a supported device for reference and adjust for ours and add to our build prop. I would guess it's in vendor build prop
[Essential Phone Themes, Apps, and Mods] starcms:
Yep, but it just deletes them again and again. Most likely checking something in build.prop, but realistically, there are many other ways they could check.

When I have a chance, I'll grab the build.prop (from system and vendor) from a Pixel 2 and try it on my Essential and see if that fixes it. Then at least we'll know if that can fix it. But depending how sneaky Google wants to be, they could be pulling the model from dozens of places.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
I can prevent it from wiping.