[APP][FEEDBACK] Arnova8G2's Google Camera Port

p3dboard

Senior Member
Oct 20, 2013
988
611
113
ChangeLog :
Fix video for Android 7.x
Add toggle hdr+ in front camera for portrait mode (For hdr + front camera compatible devices)
And other internal improvement


GCam5.1.018-Arnova8G2-V1.5Beta2.apk
I just tried the new build. Using Nexus 6 for Camera Config, Model Nexus 6p. Tried using Config Nexus 6p, but that just gives a black screen, no live camera preview.

Switching to Video Camera still crashes on Android 7.0 miui 9 rom, developer edition 8.1.4.

Portrait mode is working for the back Camera, but not the front Camera like it did in 1.3-front-hdr+ and 1.4Beta2 builds. I've put the app crash log below. I turned on Front Camera hdr+ and portrait mode in the Advanced settings. This also doesn't seem to have enabled hdr+ in normal photo mode with the front camera however, so that might be part of the front camera portrait mode crash issue?

There was an old 5.1.016 version 1.4 beta build that had front camera hdr+ working fine that you made, so it does work, proper hdr+ processing on the front camera - makes much more detailed images with better contrast. Currently i have a separate apk from another developer on the mimax 2, that does front Camera hdr+ on a 5.1.016 build.

Lens blur mode works fine for Front and Back cameras.

I tried grabbing the logs with Matlog, but on miui 9 using Magisk for root, Matlog just freezes.

Crash output for Choosing Video capture
Code:
java.lang.SecurityException: Signature check failed for com.google.android.GCMods5
	at android.os.Parcel.readException(Parcel.java:1683)
	at android.os.Parcel.readException(Parcel.java:1636)
	at hlh.a(Unknown Source)
	at hsy.a(Unknown Source)
	at htc.run(Unknown Source)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
	at hpt.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:760)
Portrait mode crash front camera
Code:
java.lang.NoSuchMethodError: No virtual method discardFreeBuffers()V in class Landroid/media/ImageReader; or its super classes (declaration of 'android.media.ImageReader' appears in /system/framework/framework.jar)
	at com.google.android.camera.experimental2017.ExperimentalImageReaderExtensions.discardFreeBuffers(ExperimentalImageReaderExtensions.java)
	at ifi.h(PG)
	at iij.h(PG)
	at iij.h(PG)
	at iij.h(PG)
	at ign.j(PG)
	at ign.close(PG)
	at hzr.close(PG)
	at gix.close(PG)
	at dzz.close(PG)
	at csk.i(PG)
	at bua.a(PG)
	at bua.a(PG)
	at bua.a(PG)
	at eug.b(PG)
	at fhe.onItemClick(PG)
	at android.widget.AdapterView.performItemClick(AdapterView.java:310)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1155)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3148)
	at android.widget.AbsListView$3.run(AbsListView.java:4091)
	at android.os.Handler.handleCallback(Handler.java:754)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:163)
	at android.app.ActivityThread.main(ActivityThread.java:6342)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
 
Last edited:
  • Like
Reactions: OverLord2901

ssj435

Member
Apr 20, 2015
38
86
0
First of all thanks to Arnova.
I tested v1.5beta2, and it is much stable than v1.4.(but definitely crashing some time)
My new observations for v1.5beta2-
1. Only n6 auto camera config is working for back camera.
2. With n6 auto config & n6p model front camera has no problem in portrait mode.(actually great quality)
3. With same setting as above(no flash) back camera portrait mode is working but quality is bad.(not blurry but I think it isn't taking HDR+)
4. Guess what with flash on, back camera is taking great quality in portrait mode.
5. No HDR+ on front camera in simple mode.
Again thank Arnova, great job man..

And HDR+ front camera toggle is on in every above case..
ROM- MIUIpro 9 (7.12.7)
Kernel- Stormguard v3.0
 
Last edited:

Saabu

Senior Member
Aug 28, 2016
100
430
63
Rohtak, Haryana
V1.5 Beta2 also kept on crashing on 7.0

Just like V1.4 it crashed every time when I tried to open the app. Tried restarting the device too.
I'm using mido : MIUI 9 Global Stable, Android 7.0


Here are my logs :


java.lang.NullPointerException: Attempt to get length of null array
at cok.aa(PG)
at ccv.a(PG)
at com.a(PG)
at jxg.a(PG)
at con.run(PG)
at gvc.run(Unknown Source)
at hzy.run(PG)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at avv.run(PG)
 

Attachments

Last edited:

p3dboard

Senior Member
Oct 20, 2013
988
611
113
This effort has been amazing thank you @arnovag82! However Has anyone tried portrait on pets? Doesn't process/activate for my cat.
The google software algorithm probably only works for human faces, as our devices don't actually have the two camera sensors to perform the hardware version of the effect. The developer is only modifying the APK to make it run on our hardware, not actually developing the code that does the Portrait photos

Edit: Update on what I said (https://blog.google/products/pixel/focus-portrait-mode-behind-scenes-pixel-2s-camera-features/) - its supposed to work on Animals, maybe its just not as successful at working out certain pets?
 
Last edited:

Siemens92

Member
Sep 28, 2014
28
12
0
Moscow
java.lang.NoSuchMethodError: No virtual method discardFreeBuffers()V in class Landroid/media/ImageReader; or its super classes (declaration of 'android.media.ImageReader' appears in /system/framework/framework.jar)
at com.google.android.camera.experimental2017.ExperimentalImageReaderExtensions.discardFreeBuffers(ExperimentalImageReaderExtensions.java)
at ifi.h(PG)
at iij.h(PG)
at iij.h(PG)
at iij.h(PG)
at ign.j(PG)
at ign.close(PG)
at hzr.close(PG)
at gix.close(PG)
at dzz.close(PG)
at csk.i(PG)
at fhx.surfaceDestroyed(PG)
at android.view.SurfaceView.updateWindow(SurfaceView.java:608)
at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:257)
at android.view.View.dispatchWindowVisibilityChanged(View.java:10291)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1576)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1288)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6359)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:873)
at android.view.Choreographer.doCallbacks(Choreographer.java:685)
at android.view.Choreographer.doFrame(Choreographer.java:621)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:859)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6237)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
 

karamancho

Senior Member
May 14, 2014
476
134
73
@Arnova8G2

could you please re-add front camera HDR+ from the GCam5.1.016-Arnova8G2-V1.4beta2.apk found here

it was working great but only on the Nexus 6P model setting. Since Nexus 6P is also required for Portrait mode it only makes sense to bring back the front cam HDR+ since most of the users are going to use Nexus 6P as the model in the settings
 

vukaleksic

Member
Dec 17, 2012
30
6
28
goddaymn thanks! crashes like hell but somehow I managed to get it work in portrait mode and photos are awesome. It crashes 19/20 times when going to gallery while image is processing and often while switching from back to front camera and vice versa. Crashes also often when going from portrait to regular mode and sometimes on exiting app. I'm using it only for portrait mode because all other modes won't work and crashes in regular shooting. Black screen in all hdr+ modes on back camera except nexus 6 auto. I tried every setting and tried even some other things in debugging options but it crashes always on the same places.

Samsung cameras, RN4 4/64 global version, MIUI 9.0.5.0
my final settings: No HDR+ (you don't need it for portrait mode, hdr+ works even with this setting), Model Nexus 6P, Super High. HDR+ Front camera ON, Portrait Mode ON, Use ZSL On

thanks again. It would be awesome if this bugs could be sorted out
 

dstephens199

Member
Dec 8, 2017
30
7
0
goddaymn thanks! crashes like hell but somehow I managed to get it work in portrait mode and photos are awesome. It crashes 19/20 times when going to gallery while image is processing and often while switching from back to front camera and vice versa. Crashes also often when going from portrait to regular mode and sometimes on exiting app. I'm using it only for portrait mode because all other modes won't work and crashes in regular shooting. Black screen in all hdr+ modes on back camera except nexus 6 auto. I tried every setting and tried even some other things in debugging options but it crashes always on the same places.

Samsung cameras, RN4 4/64 global version, MIUI 9.0.5.0
my final settings: No HDR+ (you don't need it for portrait mode, hdr+ works even with this setting), Model Nexus 6P, Super High. HDR+ Front camera ON, Portrait Mode ON, Use ZSL On

thanks again. It would be awesome if this bugs could be sorted out

What settings are you running? I'm using 1.3 with hdr+ front cam and don't get any crashes.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone