[Mod] Google Camera 4.2 ARM for Android 7.0+ [Need Test]

jblakz

Member
Jul 22, 2015
8
2
0
Ho Chi Minh City
Nexus 6 Nirtogen 7.1 (10242016) - Nitrogen built-in kernel
- App works fine as stock Google Camera 4.2.022 (both have black screen issue)
- 2k 60fps not working (cant save video)
- 1080p 60fps working but video is still 30fps
720p 60fps not yet testing

* Note: after dirty flashed Nitrogen 7.1 1027 build both cameras have gone force close.
 

defcomg

Senior Member
Dec 10, 2006
3,852
3,297
0
30
Does it mean that it records 60frames pet second? It's a software limitation, that could only be enabled through reverse engineering.

Sent from my Nexus 6 using Tapatalk
For 60fps to work all that needs to happen is to disable camera2 or compile a newer hal version that supports openLegacy method

Sent from my NX503A using XDA Free mobile app
 

blinqipa

Senior Member
Aug 12, 2012
948
450
0
Prizren
For 60fps to work all that needs to happen is to disable camera2 or compile a newer hal version that supports openLegacy method

Sent from my NX503A using XDA Free mobile app
Seems like you're into these things. Do you need the lib files? I can extract them from N6 stock ROM.

Sent from my Nexus 6 using Tapatalk
 

defcomg

Senior Member
Dec 10, 2006
3,852
3,297
0
30
Seems like you're into these things. Do you need the lib files? I can extract them from N6 stock ROM.

Sent from my Nexus 6 using Tapatalk
Add these to your build.prop file it will disable camera2 Hal3 and activate HAL2 with video-hfr should be reachable
persist.camera.HAL3.enabled=0

If on CM ROM you can use snap cam or install freedcam after disabling cam2 you should see 1080pHFR I dunno what api Google Camera 4.2 uses to access 60fps

But you can attach liboemcamera.so from /system/vendor/lib/

Sent from my NX503A using XDA Free mobile app
 
  • Like
Reactions: blinqipa

blinqipa

Senior Member
Aug 12, 2012
948
450
0
Prizren
Add these to your build.prop file it will disable camera2 Hal3 and activate HAL2 with video-hfr should be reachable
persist.camera.HAL3.enabled=0

If on CM ROM you can use snap cam or install freedcam after disabling cam2 you should see 1080pHFR I dunno what api Google Camera 4.2 uses to access 60fps

But you can attach liboemcamera.so from /system/vendor/lib/

Sent from my NX503A using XDA Free mobile app

Added that line to build.prop, then installed FreeDcam (latest .apk from GitHub) and then tried the app. There is no 1080pHFR or any lower resolution with high framerate. Attaching the .lib as soon as possible.
Edit: here is a Google Drive link to liboemcamera.so from Stock 7.0 ROM.
https://drive.google.com/open?id=0By2Nq4_gBuTQZUZTSXdUak1lSzQ
 
Last edited:

kingofmb

Senior Member
Feb 9, 2013
100
14
18
Hi, I modify the Google Camera 4.2 to working with Android 7.0 for Nexus 5X, enable some good features.

Now the ARM version was out, I need N6 users to test the ARM version mod.

Only one feature enhanced, Zsl shotting force enabled. ( I don't know if it enable by default :rolleyes:)

Download: https://drive.google.com/open?id=0B9Xul_AtQRjbU3ZrSFBaU0IxNHc

Details, heads to the original thread: http://forum.xda-developers.com/nex...-google-camera-4-2-nexus-5x-android-t3477980/
Works great.. Noticeable difference in result as well..
 

defcomg

Senior Member
Dec 10, 2006
3,852
3,297
0
30
Added that line to build.prop, then installed FreeDcam (latest .apk from GitHub) and then tried the app. There is no 1080pHFR or any lower resolution with high framerate. Attaching the .lib as soon as possible.
Edit: here is a Google Drive link to liboemcamera.so from Stock 7.0 ROM.
https://drive.google.com/open?id=0By2Nq4_gBuTQZUZTSXdUak1lSzQ
Did you reboot ?

If you did in freedcam menu scroll to the bottom click on save camera parameters it will dump camera capabilities to /DCIM/Freedcam

Sent from my NX503A using XDA Free mobile app
 

blinqipa

Senior Member
Aug 12, 2012
948
450
0
Prizren
Did you reboot ?

If you did in freedcam menu scroll to the bottom click on save camera parameters it will dump camera capabilities to /DCIM/Freedcam

Sent from my NX503A using XDA Free mobile app
Yes already rebooted since I used the adb on twrp with my PC to change the build.prop and set correct permissions. Anyway here are the camera parameters:
http://pastebin.com/gcyTQDHv

Sent from my Nexus 6 using Tapatalk
 

platinumthomas

Senior Member
Sep 2, 2010
93
18
28
Thanks for uploading this. I noticed latency when taking pictures with the default settings (compared to the stock camera).
I experienced the same saving issue with recording 4k video as well.
I'm running pure nexus 7 with 3.10.40 pure kernel.
 

defcomg

Senior Member
Dec 10, 2006
3,852
3,297
0
30
Yes already rebooted since I used the adb on twrp with my PC to change the build.prop and set correct permissions. Anyway here are the camera parameters:
http://pastebin.com/gcyTQDHv

Sent from my Nexus 6 using Tapatalk
Yeah from the parameters camera2 is still active

From adb or terminal type su getprop persist.camera.HAL3.enabled it should return a 1 or no value at all

Try su setprop persist.camera.HAL3.enabled 0 or manually edit build.prop at the bottom add persist.camera.HAL3.enabled=0

Sent from my NX503A using XDA Free mobile app
 

urmorales

New member
Nov 1, 2016
1
0
0
Working good on my N6, small issues.

Working better than the stock in Photo.


Video
4K 60fps does not work.
4K 30 fps working good.
1080p 60 fps - record and save video ok, but it show me "slow motion" at the capture and when I modify the slow motion area that plays as normal velocity and the other area plays like a "time-lapse"
1080p 30fps working good.
720p 60&30fps working good.


Is the google camera able to capture slow motion video?:confused:

thanks for the app
very good work!!!
 

blinqipa

Senior Member
Aug 12, 2012
948
450
0
Prizren
Yeah from the parameters camera2 is still active

From adb or terminal type su getprop persist.camera.HAL3.enabled it should return a 1 or no value at all

Try su setprop persist.camera.HAL3.enabled 0 or manually edit build.prop at the bottom add persist.camera.HAL3.enabled=0

Sent from my NX503A using XDA Free mobile app






Sent from my Nexus 6 using Tapatalk
 
Last edited:

defcomg

Senior Member
Dec 10, 2006
3,852
3,297
0
30






Sent from my Nexus 6 using Tapatalk
Resave camera parameters see if it contains video-hr

Alternative to save camera parameters

Is to type su dumpsys media.camera > /sdcard/dump.txt

Also attach camera.**** from /system/lib/hw/ if prop is being ignored I can disable it at lib level



Sent from my NX503A using XDA Free mobile app
 
  • Like
Reactions: blinqipa

blinqipa

Senior Member
Aug 12, 2012
948
450
0
Prizren
Resave camera parameters see if it contains video-hr

Alternative to save camera parameters

Is to type su dumpsys media.camera > /sdcard/dump.txt

Also attach camera.**** from /system/lib/hw/ if prop is being ignored I can disable it at lib level



Sent from my NX503A using XDA Free mobile app
http://cloud.tapatalk.com/s/5818be676f3cc/dump.txt
Going to attach the libraries as soon as possible.
Edit:
Sorry seems like the output from Terminal Command is not what you were looking for, here's the output from FreeDcam:
http://cloud.tapatalk.com/s/5818bf87984a1/Nexus 6_CameraParameters.txt
Edit: here's the camera.msm8084.so
https://drive.google.com/file/d/0By2Nq4_gBuTQUzIyNERfWDZhWUU/view?usp=drivesdk
Edit: by the way these two lines in camera parameters caught my eyes:

video-hfr-values=60,120,off
video-hfr=off

Sent from my Nexus 6 using Tapatalk
 
Last edited: