Google camera not working.

IdrisMC

Senior Member
Jan 27, 2018
140
6
0
Hey, I got a Mi A1 with crdroid, twrp and magisk running and HAL3 enabled in build.prop
When i startup google camera it keeps stopping.
LOGCAT:
https://hastebin.com/woyihuxubo.coffeescript
07-18 22:20:35.650 22327 22442 E CAM_GApiClientPxy: Timeout connecting to GoogleApiClient
07-18 22:20:35.784 22327 22452 E CAM_GApiClientPxy: Timeout connecting to GoogleApiClient
07-18 22:20:35.784 22327 22452 W CAM_FusedLocProvider: fail to connect to GoogleApiClient: Fail to connect, timeout
07-18 22:20:35.795 1213 1271 W ActivityManager: Activity pause timeout for ActivityRecord{88ae0bf u0 com.google.android.Pixel2Mod/com.android.camera.CameraLauncher t157 f}
07-18 22:20:35.799 22327 22355 V NuMediaExtractor: setDataSource fd=84 (/data/app/com.google.android.Pixel2Mod-Wekpr6YraqsnTJ6G7NkP0Q==/base.apk), offset=32170004, length=8323

Hope you can help me out
IdrisMC
 

IdrisMC

Senior Member
Jan 27, 2018
140
6
0
Is it possible that there are some files missing, i always install stuff (modules, roms, kernels etc). but later i delete everything and then format everything. I want to keep using this rom so i did a clean install.
- boot into twrp
- wipe everything
- format everything
- boot bootloader
- fastboot recovery.img
- flash crdroid
- flash twrp
- reboot into twrp
- flash gapps-stock
- flash magisk
 

barrack1

Senior Member
Sep 19, 2014
399
75
48
Its probably just a spelling error. You don't need to edit the build.prop file. Just run a root shell command - setprop persist.camera.HAL3.enabled 1 and you're all set.
 

barrack1

Senior Member
Sep 19, 2014
399
75
48
I think most (all?) of the popular custom roms have camera2api enabled by default so you needn't do a setprop in the first place.
Otherwise on stock rom, all I did was a setprop and a reboot to get it enabled.
Did you try using one of the more stable gcam mod like GoogleCamera-Pixel2Mod-Arnova8G2-V8? Some other mods might not work.
 

IdrisMC

Senior Member
Jan 27, 2018
140
6
0
I did the manual camera compactibility test and everything is working, manual focus manual white balancec manual iso manual shutter speed raw support
 

IdrisMC

Senior Member
Jan 27, 2018
140
6
0
Device: Xiaomi, Mi A1 (lineage_tissot), Android 8.1.0 OPM2.171026.006.H1

Rear camera:
Manual Focus: YES, Manual WB: YES, Manual ISO: YES, Manual Speed: YES, RAW: YES, Hardware level: null, Capabilities: BACKWARD_COMPATIBLE, MANUAL_SENSOR, MANUAL_POST_PROCESSING, RAW, , Focus distance: 10.000000, ISO range: 100-1550, Speed range: 10823-121561475, JPEG sizes: [4000x3000,4000x2250,4000x2000,3840x2160,3264x2448,3200x2400,2976x2976,2592x1944,2688x1512,2592x1458,2592x1296,2048x1536,1920x1080,1920x960,1600x1200,1440x1080,1280x960,1280x768,1280x720,1280x640,1200x1200,1024x768,800x600,864x480,800x480,720x480,640x480,640x360,480x640,480x360,480x320,352x288,320x240,240x320,] 4000x3000, RAW sizes: [4096x3072,], Preview sizes: [4000x3000,4000x2250,4000x2000,3840x2160,3264x2448,3200x2400,2976x2976,2592x1944,2688x1512,2592x1458,2592x1296,2048x1536,1920x1080,1920x960,1600x1200,1440x1080,1280x960,1280x768,1280x720,1280x640,1200x1200,1024x768,800x600,864x480,800x480,720x480,640x480,640x360,480x640,480x360,480x320,352x288,320x240,240x320,]

Front camera:
Manual Focus: NO, Manual WB: YES, Manual ISO: YES, Manual Speed: YES, RAW: YES, Hardware level: null, Capabilities: BACKWARD_COMPATIBLE, MANUAL_SENSOR, MANUAL_POST_PROCESSING, RAW, , Focus distance: 0.000000, ISO range: 100-1600, Speed range: 16938-270733792, JPEG sizes: [2592x1944,2592x1458,2592x1296,2048x1536,1920x1080,1920x960,1600x1200,1440x1080,1280x960,1280x768,1280x720,1280x640,1200x1200,1024x768,800x600,864x480,800x480,720x480,640x480,640x360,480x640,480x360,480x320,352x288,320x240,240x320,] 2592x1944, RAW sizes: [2592x1944,], Preview sizes: [2592x1944,2592x1458,2592x1296,2048x1536,1920x1080,1920x960,1600x1200,1440x1080,1280x960,1280x768,1280x720,1280x640,1200x1200,1024x768,800x600,864x480,800x480,720x480,640x480,640x360,480x640,480x360,480x320,352x288,320x240,240x320,]

Additional comments:
Google camera still doesn't work!
 
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