Change default camera (back) to uvc (webcam) - Android Q&A, Help & Troubleshooting

Hello.
I'm working with redroid11, I've implemented HalV3 and I can get video through an 3-part-apk, but I need to use the webcam to authenticate Qrcodes (eg. whatsapp), I'd like to know how to change the back camera to v4l2 camera,on previous versions of android it would be done simply by changing the nvcamera.conf file, but now a lot has changed. Help me please.

Related

[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

Endoscope as internal camera

Hello,
I have bought an endoscope for my Android smartphone. It is connected via USB. And it requires to install a dedicated app. I would like to know if there is any way to use it as and internal camera. I mean, something that allows to use front camera, back camera or endoscope camera when trying to record a video with the original system camera app.
Any idea?
Thanks

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???

flash modified camera api

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)?

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