1) ln -s camera.goldfish.so camera.default.so
2) scale fps values for KEY_SUPPORTED_PREVIEW_FPS_RANGE and KEY_PREVIEW_FPS_RANGE in function EmulatedCamera::Initialize() in device/generic/goldfish/camera/EmulatedCamera.cpp
3) hacky override widht and height in function android_camera_set_preview_size file ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp
1) ln -s camera.goldfish.so camera.default.so PREVIEW_ FPS_RANGE and KEY_PREVIEW_ FPS_RANGE in function EmulatedCamera: :Initialize( ) in device/ generic/ goldfish/ camera/ EmulatedCamera. cpp camera_ set_preview_ size file ubuntu/ libhybris/ compat/ camera/ camera_ compatibility_ layer.cpp
2) scale fps values for KEY_SUPPORTED_
3) hacky override widht and height in function android_
Preview ok, still some unknow GL error:
V/CameraCompati bilityLayer( 9532): virtual void CameraControl: :onFrameAvailab le() bilityLayer( 9532): void android_ camera_ update_ preview_ texture( CameraControl* ) bilityLayer( 9532): void android_ camera_ get_preview_ texture_ transformation( CameraControl* , float*)
V/CameraCompati
W/GLConsumer( 9532): [unnamed-9532-1] bindTextureImage: clearing GL error: 0x502
V/CameraCompati
Camera service still aborts at taking a shot, gdb hangs.