ADeadTrousers/android_device_Unihertz_Atom_XL_EEA

Google Camera crashes

ADeadTrousers opened this issue · 4 comments

The included Google Camera from GAPPS crashes imediately on startup.
Versionnumber is 7.4.201.322479879

This could either mean, that something in the kernel or LineageOS is missing or that it's not configured properly (I'm looking at you SELinux)
Anyhow, with my old phone (arm) I was able to install different versions of the apk (downloaded from apkmirror.com) and it was working up to a certain point where google seems to have changed something. Maybe going back a few versions could fix this. I need to try that in addition to switching back to permissive.

Reverting the camera to a previous version didn't help at all.
During my research of the stock ROM I found several "vendor" specific programs and setting for camera and the like (mtk_advcamserver, mtk_hal_camera and so on).
Maybe the higher api (camera2?) needs some vendor specific parts that don't get initiated correctly.
In contrast OpenCamera works fine with both api.
So back to the drawing board and doing more research.

According to logcat some libraries are missing.
android.hardware.graphics.mapper@3.0::IMapper/default
android.hardware.graphics.allocator@3.0::IAllocator/default
amongst others.

From all my recent discoveries this could also be related to missing permissions or overlays because they are somehow connected. Pixel Launcher needed an overlay to get a higher clearance as a system app to be able to provide it's recent app list feature to the system. So I need to snoop around in the stock ROM overlays to see what I can find.