flash modified camera api - LG V30 Questions & Answers

Hello,
recently my wide-angle camera stopped working. I wouldn't care, but the LG camera app crashes because of it.
It is not the module itself, but a chip on the board that broke because of corrosion, therefore it is unrepairable for me.
I would still like to use the LG camera app, because of its manual control options.
Is there a way to disable that module, e.g. modifying the camera API v1 ("CameraService: CameraService::connect call (PID -1 "com.lge.camera", camera ID ) for HAL version 256 and Camera API version 1") to return the main camera when calling for the wide-angle camera id?
I would be thankful for any ideas. If there is a way to flash a modified camera API that would help me very much. I think I can achieve the rest myself.
TL;DR: Is there a way to flash a modified version of the camera API (v1)?

Related

Can I switch the main camera?

Hi!
My HTC M8's rear camera in on short cirtuit (I suppose, because as soon as I open it the image starts to vibe, and the phone makes a strange BZZZZ never heard before).
But my front camera works fine.
For some application, like Whatsapp Web or Google Cardboard, I need to scan a QR code... and it's impossible, because the rear camera can't focus, and I can't switch camera from the applications.
Is there any way to set the front camera as default one?
Thanks a lot!

[kernel][UVC] how to fool an application by switching the camera into the kernel

Hello
I would like to know how to edit android to fool an application by switching the camera into the kernel?
I have an application to use a frontal camera but a want to use a UVC camera.
cordially

Use ONLY the Back Camera on Android 10

I need to use ONLY the Back Camera on my phone. The front camera is broken (dead hardware) and I need the Android 10 (Lineage 17.1 on Moto G3 Turbo XT1556) use and SEE ONLY the Back Camera as Unique Hardware on the system to take photos and record videos and this for default. An APP to do that will not solve my needs because the Internet Banking APP always asks for the NATIVE front/selfie Camera for access the account services and I can't because my camera is broken and I need INSIDE the Kernel a change that when every APP calls for the front/selfie Camera, it REDIRECT automatically to the BACK Camera.
Someone could help me???

How to fix the front camera when the camera2 api is enabled on Android 10

I enabled the Camera 2 api on AOSP (MOKEE10.0) Android 10 and was able to use Gcam, but the front camera doesnt working anymore. Are there any replacement files or Magisk modules now to fix this?

USB Camera/Capture as default camera hardware?

Hi all,
I've got a Lenovo Pad Pro 11 on which I've installed ZUI 14 (Android 12) and have also got it fully rooted with boot loader unlocked.
I have a usb video capture device which I use as a USB Camera to stream from my PC, and I want to make it the default camera device when I launch the camera app, so when I go on live in insta or TikTok or twitch for example, it's recognised as the default camera rather than using the onboard camera from the tablet. I understand this may involve some system file tweaking but I find it a bit too complicated to understand.
Could anyone provide some guidance or tips on how to do this?
Thank you
Unfortunately, this is near impossible (unless modifying the source and compiling it yourself) due to Androids camera system where every camera has its own id (0 for the primary rear camera and 1 for the primary front camera).
What you would need is to modify the source so that the OTG Camera is emulated as an integrated camera. I am not an expert in that field and can as such not give directions on how to do that.
I would recommend starting by reading the Android Source documentation.
Good luck and let us know if you find a solution.

Categories

Resources