Use usb dashcam as 'phone camera' on a China headunit

Search This thread

MarcoB1979

Member
Feb 21, 2018
10
1
I have a Chinese head unit for my Mini Cooper and also have an adas USB camera connected. Works fine, but the app that comes with is is not that advanced.

There are really great apps for your phone (using the phones selfie camera), but these apps do not see the usb camera since those apps use the built in phone camera (which the headunit does not have).

Is there a way to make Android/the headunit think that the usb camera is actually the built in selfie camera? Then i could use way better apps for adas. I have searched a lot but cannot find any info yet...
 

TorstenH

Senior Member
Feb 20, 2021
1,849
480
t.me
Realme GT 2 Pro
No. Android exposes integrated cameras via Camera2 API. Most apps only get access to camera id 0 and 1 (main rear camera and main front camera respectively).
In short, the only possible way is to fake your external USB cam as camera 0 or 1 which is pretty hard (maybe build Android from source after making the necessary changes?) and since that's not my area of expertise, can't help further.

But be happy because you must not shave your beard 🧔 or style your hair before you enter the car.
 

MarcoB1979

Member
Feb 21, 2018
10
1
No. Android exposes integrated cameras via Camera2 API. Most apps only get access to camera id 0 and 1 (main rear camera and main front camera respectively).
In short, the only possible way is to fake your external USB cam as camera 0 or 1 which is pretty hard (maybe build Android from source after making the necessary changes?) and since that's not my area of expertise, can't help further.

But be happy because you must not shave your beard 🧔 or style your hair before you enter the car.
I imagined it would be a hard thing to do. Maybe, just Maybe someone knows a workaround.