yashsingh1/xdaforums huggingface dataset:
[Essential Phone Themes, Apps, and Mods] aer0zer0:
I have created a entire magisk module, based on GCAM 1.4B2, while not breaking the Essential Camera Functionality. I will update the module as great new [MENTION=4860033]Arnova8G2[/MENTION] camera ports come available.

What it does:

It replaces media_profiles_V1_0.xml in vendor/etc : this allows for hevc, slo-mo

It replaces media_profiles_V1_0.dtd in system/etc : this allows for hevc to be enabled

It adds GCAM 1.4B2 as a system app in system/app : Places the gcam itself in system app

It sets postfsdata setenforce = 0: turns off SELinux (required to get the rest of it working)

You will need:

Magisk 15.0 or later (the template is based on 1500)

No GCAM installed (It does it for you)

To be on Oreo Beta 2 (its what i use, i can try to help with Nougat and LOS, but you may have to modify the zip to meet your ends)

This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups (looking at [MENTION=4487956]S4turno[/MENTION] ), help anybody else, etc.

I am not responsible if you get your phone messed up, it works for me, and for others. I will help as much as i can. Its a work in process, hopefully, it will make life easier for everybody.

*****DOES TURN OFF SELINUX, GCAM DOESNT WORK FULLY OTHERWISE*******

https://drive.google.com/open?id=1cpYcjOrh-wx9au2L4a_bX9Vh5N_R8Kub

Enjoy Folks :)

As a Note: If your front camera portrait mode shots are blurry, disable pd/pd blur in debugging settings

Speaking of setting: Here is what i am using

Config Camera HDR+ = Nexus 6P

Model = Nexus 6P

HDR+ Parameters = Super High

Advanced menu:

HDR+ Control = On

HDR+ Quality = 100%

Nothing Special in video, i left video stabilization on

Debugging Settings (Only listing what i have checked)

camcorder.fastswitch

camera.gcam enabled

cameraprogress.overlay

camera.enable_micro

camera.enable_vesper

camera.gouda.front

camera.raisr

List some settings, lets see if we can optimize this thing
[Essential Phone Themes, Apps, and Mods] xterminater07:
Awesome work! Thanks! Did you try to see if triggering microphone in facebook messenger will lose sounds?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
No, I don't have a fb

---------- Post added at 10:34 PM ---------- Previous post was at 10:31 PM ----------

Ok Google works, does that count?
[Essential Phone Themes, Apps, and Mods] xterminater07:
As long as microphone was activated I guess? Can you show me how to root properly so I can try this patch as well as be able to get OTA from Essential's? Also v1.4 is out from arnova8g2, so if you want to look into this?
[Essential Phone Themes, Apps, and Mods] avd:
Who cares about OTAs? Will this mod keep safety net?
[Essential Phone Themes, Apps, and Mods] xterminater07:
..... Unless you want to stay on oreo beta 2 forever sure, or unless you want to do factory resets every time.
[Essential Phone Themes, Apps, and Mods] avd:
Haha... Comment out the line that clears userdata in the flashall.sh before you run it.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Seems to
[Essential Phone Themes, Apps, and Mods] aer0zer0:
[MENTION=3266378]xterminater07[/MENTION] what OS are you on?
[Essential Phone Themes, Apps, and Mods] xterminater07:
Oreo beta 2
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Do you have any idea how to use fastboot? Do you have a working environment?
[Essential Phone Themes, Apps, and Mods] xterminater07:
I do .. i got platforms tools installed. Give me the instructions I can do it
[Essential Phone Themes, Apps, and Mods] aer0zer0:
https://xdaforums.com/essential-phone/how-to/guide-rooting-essential-ph-1-magisk-t3701976

Super easy
[Essential Phone Themes, Apps, and Mods] yu3196:
Hi, Guys:

The latest ported GCam 5.1.018 (scrubber_GCam_5.1.018.apk) including portrait mode now works perfectly without config settings on my PH-1(7.1.1). Share with you all.

Thanks to this developer. He's "scrubber" on 4PDA.

Please refer to the link of this apk (from https://www.celsoazevedo.com)
[Essential Phone Themes, Apps, and Mods] Caltinpla:
Nah...not for me...still lose sound after taking picture/video, and I'm running the latest Oreo beta 2/unrooted.
[Essential Phone Themes, Apps, and Mods] yu3196:
Maybe it just because I'm still using Android 7.1.1.
[Essential Phone Themes, Apps, and Mods] Caltinpla:
It's still better than other mods didn't freeze or soft brick my phone though!
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I just loaded the scrubber version and it is working well for me. I uninstalled the other two and using this as my primary. I have not experienced any loss of sound and have not needed to reboot. Crossing fingers that this experience will continue.

I'm on the beta 2 btw.
[Essential Phone Themes, Apps, and Mods] Mania626:
Link please
[Essential Phone Themes, Apps, and Mods] Genghis1227:
https://www.celsoazevedo.com/files/android/google-camera/

scrubber_GCam_5.1.018.apk*(scrubber, 2018-01-07, no config needed,*changelog)
[Essential Phone Themes, Apps, and Mods] Genghis1227:
Have you tried it yet? Any issues?
[Essential Phone Themes, Apps, and Mods] Charkatak:
Phone is on Oreo 2 beta.

The camera portion is ok, but when switching to video mode, screen stays black for 3 or so seconds, then show the viewfinder. Now when I hit record, it shows as if recording started with ) 0:00 on the screen, but nothing is recording as app hangs. After that when close the app, phone goes into weird state, where I can't restart or turn it off properly. I have tried many builds and they all have pretty much similar video recording issues.
[Essential Phone Themes, Apps, and Mods] Caltinpla:
Other users on N rom reported working fine without any issues but I'm Oreo beta 2 still losing sound after taking pictures or recording videos.
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I experienced that but after a reboot everything was ok after.

---------- Post added at 06:54 PM ---------- Previous post was at 06:49 PM ----------

Ok, tried just now and didn't work. Very inconsistent.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Use the magisk mod.....
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I'm really trying to avoid it. But I'm open to it. To update the app you have to update the magisk mod?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Well, on a scale of 1-10, how bad do you want gcsm that works 100% with the bonus of ar stickers.

We need a custom media profile, mods to the build prop, and camconfig permissions in selinux. Root is the only way. Magisk just makes a pretty package without modifying system. Also, I gave the working principal of the mod itself. You can modify it with up to the second gcams, and whatever else you want to do.

You need Oreo beta 2, magisk 15.2 working, and no other gcams installed.
[Essential Phone Themes, Apps, and Mods] Mania626:
So far so good, no audio loss whatsoever, very happy with this build
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I was having issues with sound after trying to record video with the scrubber APK. I then unchecked the HEVC option for the camcorder and it is working great again. I noticed that the portrait mode for the front camera in this app is much clearer.
[Essential Phone Themes, Apps, and Mods] Mania626:
I guess I spoke too soon, after a second try with the video it stop working :( ,where do you uncheck that option? Maybe I can try that too.thanks
[Essential Phone Themes, Apps, and Mods] Genghis1227:
Developer settings and uncheck camcorder. H265
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Does slomo work?
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I didn't try it before, tried it just now and doesn't work. When I switch to slow mo it just crashes.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Does 1080 60fps work?

---------- Post added at 05:00 PM ---------- Previous post was at 04:59 PM ----------

Is it ridiculously zoomed
[Essential Phone Themes, Apps, and Mods] xterminater07:
you tried this and said it was ridiculously zoomed in right? If I have time I will try it barebone without magisk
[Essential Phone Themes, Apps, and Mods] ming3r:
Mine without magisk is real zoomed in on the Arnova builds. Its more zoomed than the portrait mode which is pretty far in too.

Comparison: https://imgur.com/a/Sj9xm
[Essential Phone Themes, Apps, and Mods] xterminater07:
Which version are u using to test?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Try 60fps
[Essential Phone Themes, Apps, and Mods] ming3r:
I don't see a 60fps toggle, but also just realized I'm on 1.5 Beta2.

I'm going to revert back to 1.4. I can provide logs if needed either way.

Edit - appears to happen on 1.4 with fresh install. Again, no setting for FPS other than it saying that 4k is 30fps.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Set to 1080
[Essential Phone Themes, Apps, and Mods] xterminater07:
So 1.5beta 2 pretty much has bad zoom as the scrubber version?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
None are perfect, 1.4b2 is the best so far
[Essential Phone Themes, Apps, and Mods] xterminater07:
You're right about that! ugh... I guessed this is the last version for our phone, no more optimization unless you can optimize it or the other genius here that helped you with the selinux thingy.
[Essential Phone Themes, Apps, and Mods] Charkatak:
Which version is 1.4b2?
[Essential Phone Themes, Apps, and Mods] xterminater07:
The magisk version in the other thread.
[Essential Phone Themes, Apps, and Mods] Charkatak:
I see. I think it involves rooting the phone...
[Essential Phone Themes, Apps, and Mods] xterminater07:
Yes it does but it's worth it!
[Essential Phone Themes, Apps, and Mods] ming3r:
Found the 60 fps toggle. Anyway, on 1080p 30 and 60 it is still very zoomed in (and sound dies on switching to video)
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Sure does, I know why too
[Essential Phone Themes, Apps, and Mods] emowing:
The zoom effect is because photo is shot in a 4:3 aspect ratio while video is shot in a 16:9 aspect ratio. On top of that the cropping that you're seeing (zooming) is how EIS work. With the 60fps super zoom issue... there is something weird going on there with what the hardware is telling the camera what it can do. The device is only allowing the camera software to record at 1920×1080 instead of the 3840×2160 and then cropping down to 1920x1080 after applying EIS. Might be a driver thing.. but probably something we can do to remedy this.

I have modded scrubber v1 apk to disable EIS when 60fps is selected and video is recording with 60fps is working fine. But I want to keep it on and I think I can get one working once i have some time.

From what I can tell EIS is not working in Arnova8G2 14.2b.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
It's not, even when forced. I was actually going to remove the force from the build prop mod, and see if it helps. I was curious how you are modding the gcam apks
[Essential Phone Themes, Apps, and Mods] emowing:
You don't need to force anything change anything in build.prop. Just install scrubber version 1.. i haven't touch v2 or really know what was changed. then go to setting and change disable video stabilizer and go switch to 60fps.. no zoom :)

I am editing it like all the other guys. Decompile the apk and mod.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
It is working in arnova 1.4b2 toggling changes the zoom element (is actually working????) but i have eis forced on in the build prop edits (magisk version). in the couple of nougat test builds, it is also on. was gonna remove that line and see what happens.

what "specifically" are you modding was my point
[Essential Phone Themes, Apps, and Mods] xterminater07:
I can confirm with emowing that the arnova 1.4 beta 2 (original and the modded magisk version) do not have EIS. Unchecking Video Stabilization in the magisk or original version does not fix the video zoom issue in 4K or 1080p. However, what's weird is it's not SUPER zoomed in, the stock Essential app is also zoomed in as well. So I'm guessing it's not an issue?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
On 1.4b2 it does actually do something (Oreo) 1080 30fps. No hand zooming, just the toggle on/off
[Essential Phone Themes, Apps, and Mods] xterminater07:
Dunno why mine is zoomed regardless if unchecked on or off for stabilization.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Profile settings?
[Essential Phone Themes, Apps, and Mods] xterminater07:
For your magisk version, I always use 6p for camera model and 6p for hdr setting, quality set to super high, jpeg to 100%. I changed video from 4K, 1080p at 60 fps and 30fps: with stabilization on, it zoomed in a bit, with it off it zoomed in a bit as well. Then I went to stock essential app, it does the same thing so I think [MENTION=3135253]emowing[/MENTION] is right for the cropping due to it being 16:9? Odd because in my old Pixel XL it didn't do that. I might have to report this as a bug to Essential.

I also got a logcat for you using the latest BSG's mi5s version beta 2. Front portrait now works, but it made my picture pinkish looking. Here's the log https://drive.google.com/open?id=1ao2qpMUZB6XAoZgHr9ZdDm3OV6CMn2Ss. Sound still lost as soon as microphone is triggered.

Tried Scrubber's version 2, portrait works but blurrier than your magisk version, also there's artifacts such as random red dots and grey dots in extreme low lighting, ie... screen lighting from my 65" tv.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Did you put it into the zip this time
[Essential Phone Themes, Apps, and Mods] xterminater07:
No this is all stock as is.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
It just doesn't help me.

A logcat without it being in the zip doesn't really help me.
[Essential Phone Themes, Apps, and Mods] xterminater07:
Ok, let me try the latest BSG mod to see using your magisk mod step and I will put a log. I don't know if pink looking picture will be in the log but I'll try now.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
It won't be, it's hardcoded into bsg gcam
[Essential Phone Themes, Apps, and Mods] xterminater07:
Ok heres the first log after being in your zip magisk: https://drive.google.com/file/d/1IRhYKyMwW4G72L_AEJ3EDm0fAiX-mVY3/view?usp=drivesdk

Here's the second log showing just the portrait mode front cam: https://drive.google.com/file/d/18WQmkc5n8qApeQxUq9nA8p3-WPWC6bgN/view?usp=drivesdk

Hopefully this helps!! I don't know how you can fix the pink issue, maybe see what's the difference between this and 1.4 beta2? [MENTION=3135253]emowing[/MENTION] can you help?

---------- Post added at 08:25 PM ---------- Previous post was at 08:16 PM ----------

Oh snap!!! I fixed it... Turns out it's a bug sort of for black level offset as mentioned here: https://www.celsoazevedo.com/files/android/google-camera/f/changelog33/

Set it to 64 in offset as shown, now everything works, including sounds from your magisk! I'll upload the magisk file or you can do it to somehow set the offset to default 64, and we are GOLDEN!
[Essential Phone Themes, Apps, and Mods] Genghis1227:
Ok guys, been playing with this for a while and trying to avoid Magisk just so OTA is enabled (to each his own).

So using the GCam5 1.4 Beta 2, which seems to be the most stable. I've been able to get video to consistently work without losing audio with these setting and process.

I have these settings

Nexus 6P Config, Nexus 6P Model, Super High HDR+, HDR + Control, 100% HDR+ Quality, ZSL enabled, back camera 4k, only checked camera.faceboxes, and turn off Motion Capture.

1. Make the settings changes above

2. Go to the App Info and force stop

3. Re-open the app

4. Verify Front facing camera portrait mode is clear (had issues with 1.5 on this)

5. Go to video...it takes a while for it to show up on screen (first time only)

6. Switch back to camera...then go back to video...should be faster to come up. Take a video...stop video...watch it... Audio/Mic should still work.

So far, every time I've gone into video if I switch back to camera go back to video and then start recording everything works fine with no audio loss.
[Essential Phone Themes, Apps, and Mods] Jmar72:
I prefer to not use magisk. So the only gcam I use was the one from the magisk port. This allowed me to use the camera and all if it's features no issues. However, when I use video, I lose sound.

So my question to you is, did you use the video then go and use the camera using HDR+? If hdr+ is off then video is fine. Take a pic w HDR then take a video then I lose sound. If you do now have this issue the please link the gcam app that is working for you please. Thanks!!

---------- Post added at 10:47 PM ---------- Previous post was at 10:43 PM ----------

.I prefer to not use magisk. So the only gcam I use was the one from the magisk port. This allowed me to use the camera and all if it's features no issues. However, when I use video, I lose sound.

So my question to you is, did you use the video then go and use the camera using HDR+? If hdr+ is off then video is fine. Take a pic w HDR then take a video then I lose sound. If you do now have this issue the please link the gcam app that is working for you please. Thanks!!
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I'm able to take a picture and then video. But I have to toggle to video, back to camera, then video.

I did try today and lost sounds using this process so it isn't fool proof.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
There is no fix or cure without root, at the minimum. the crashing is due to (2) things.

1. Selinux - needs to be permissive, or, like i did with magisk, add the permissions required to make GCAM work properly in the mod. That will fix the crashing of sound. (GCAM also needs to be in system/priv-app)

2. media_profiles_v1.0.xml - needs to be modified to keep slo-mo from crashing (also adds the ability to record videos in hevc).

your fighting a lost cause unfortunately and will need to live with crashing and odd sound drops....:rolleyes:
[Essential Phone Themes, Apps, and Mods] Jmar72:
I even lose sound when I use the essential video. If u try close out and go back to the essential video the app won't even record.

Can you link or tell me the version you are using?
[Essential Phone Themes, Apps, and Mods] Genghis1227:
I'm using this one.

https://www.celsoazevedo.com/files/android/google-camera/f/GCam5.1.018-Arnova8G2-V1.4Beta2.apk

GCam5.1.018-Arnova8G2-V1.4Beta2*(Arnova8G2, 2018-01-03,*suggested settings,*changelog)
[Essential Phone Themes, Apps, and Mods] Jmar72:
Thanks for that answer. I been trying all of these different mods and always the same result. Is there a way this works with a final version of Oreo and then someone work strickly with oreo on the essential and gcam app?

Would I be better off getting a OnePlus 5t? Does it work better there?
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Just get Oreo beta 2 and magisk.... V7, which I'm upping now, is amazing
[Essential Phone Themes, Apps, and Mods] Jmar72:
Maybe I will after they roll out the full version of Oreo. I never used magisk and I have apps I need for work so not sure if I can right this minute.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
What kind of apps? Im in the same boat, but magisk will beat "most" everything. Also Oreo Beta is so close, it is plenty good enough to DD
[Essential Phone Themes, Apps, and Mods] Jmar72:
Entrust some banking, and Ms exchange, and Android pay. I know the banking app and Android pay are ok with magisk.

I want to wait and see if essential does the final Oreo ota this week or next. I haven't rooted in a while so I want to make sure I at least have the latest and greatest before a attempt.

But from I can see the gcam app is really good on oreo.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
It works well. Make sure you read up on magisk. It's not like anything you have ever used.
[Essential Phone Themes, Apps, and Mods] nishog04:
Have you guys tried Scrubber's mod on Essential Phone? It works like a charm on Nokia 8 compared to Arnova's and BSG's versions.

This is of course not my thread, but since Nokia and Essential are both basically stock versions of Android they ought to work quite the same.
[Essential Phone Themes, Apps, and Mods] yu3196:
Check posts from #406!!

Look likes it works fine on Android 7 then 8.
[Essential Phone Themes, Apps, and Mods] Genghis1227:
When I tried scrubber and eventually I still had issues with audio. Had to do the magisk mod way.
[Essential Phone Themes, Apps, and Mods] aer0zer0:
Saw the light?
[Essential Phone Themes, Apps, and Mods] Genghis1227:
LOL, so to speak. Really I was trying to avoid the unlock bootloader since I'd have to restore. Should have done that when I first got it.
[Essential Phone Themes, Apps, and Mods] ming3r:
On the 1/12 Arnova second build (MGC_5.1.018.177470874.41362666_LOS-15.1_A8.1.apk I get a pinkish picture when taking a front facing picture in portrait mode. This is with Nexus 6 Auto, Model Pixel 2XL, HDR+ Medium and fron HDR+ enabled. Doesn't really seem to want to focus but that might just be the front camera on this Essential on Oreo Beta 2.

[MENTION=4860033]Arnova8G2[/MENTION]
[Essential Phone Themes, Apps, and Mods] teostar:
Yes scrubber's version works perfectly on my ph-1 only minor issue I have is the the slow shutter speed with hdr+ on. And it can't be set to hdr off by default as far as I can see
[Essential Phone Themes, Apps, and Mods] xterminater07:
go to manual black offset, set front camera to 64. Use aer0zer0 magisk instead of original port.
[Essential Phone Themes, Apps, and Mods] tire_007:
I'm using this version of google cam and everything works except slow motion video and you don't loose audio.

https://www.celsoazevedo.com/files/android/google-camera/#apk41
[Essential Phone Themes, Apps, and Mods] xterminater07:
Which version? U will lose audio on oreo beta 2 if microphone is triggered like from fb messenger.
[Essential Phone Themes, Apps, and Mods] zzman31:
Which one? There's so many apks
[Essential Phone Themes, Apps, and Mods] Khaled_Chebat:
I have successfully installed the following GCam5.1.018-Arnova8G2-V1.5.apk (https://www.celsoazevedo.com/files/android/google-camera/f/GCam5.1.018-Arnova8G2-V1.5.apk) under the Oreo Beta 2.

Seems to work properly (left mostly to default settings) though I have yet to do a comprehensive test.

Hope this helps!
[Essential Phone Themes, Apps, and Mods] zzman31:
Okay, thx! Which settings do you have
[Essential Phone Themes, Apps, and Mods] avd:
****ty attitude here.
[Essential Phone Themes, Apps, and Mods] zzman31:
Sorry I means settings! Sorry
[Essential Phone Themes, Apps, and Mods] tire_007:
After a few hours of using the app i did manage to loose the audio.
[Essential Phone Themes, Apps, and Mods] emowing:
[MENTION=4860033]Arnova8G2[/MENTION]

Can you see what is causing this autofocus bug in Pixel 2016 Zsl Hdr, and Pixel 2017 Zsl Hdr+?

Steps to reproduce:

Model: Pixel 2 or Pixel 2XL

Config camera HDR+: Pixel 2017 Zsl Hdr+

Developer Settings: check camera.af.debug.show

Restart App.

The camera debug message will say continuous _picture and passively auto focus as you move the phone around. Now manually focus on something by tapping on your screen. Move your phone to focus on something new.. the camera will not resume passive auto focus. You'll have to enable & disable AF/AE Lock or switch to camcorder and back or do something that refreshes the state of the app for continuous auto focus to kick back in.

Switch your camera model and HDR profile to Nexus 6P. Perform the same thing.. you'll see the expected behavior. after a manual focus, point it at some other object and wait a little bit, the phone will automatically go back into continuous focus mode and focuses on the new subject.
[Essential Phone Themes, Apps, and Mods] mackentosh:
Every time I install a Gcam it forcecloses
[Essential Phone Themes, Apps, and Mods] ming3r:
Clear data.
[Essential Phone Themes, Apps, and Mods] Jmar72:
I just upgraded to Oreo beta three and I can say that the gcam is now working. No loss of sound after taking a pic using HDR+. I'm not sure what happened but it's working now.
[Essential Phone Themes, Apps, and Mods] Mania626:
Can you link the one you are using and your settings? Thanks