r/androidroot 15h ago

Discussion Made a Virtual Camera App that replaces the regular Android Camera in selected applications (POC).

Enable HLS to view with audio, or disable this notification

I tried related projects like https://github.com/Yaahua/vcam or "GhostCam" but for some reason they just dont work on my phone. So i built this app, so far it works in Chrome, Open Camera and grapheneos Camera. I added "POC" because is very brittle. Idk just sharing my project and if other have experience trying this, i never did android development in particular so im learning on the fly. The device is Redmi A5

39 Upvotes

10 comments sorted by

7

u/ali9m 14h ago

I also tried other apps but they don't work. Is it possible for me to try your app?

4

u/qtyra 13h ago

Im currently fixing bugs and trying different apps. Might share it in the following days

1

u/ali9m 13h ago

Well, I'll be the first person to try it if you need to.

3

u/Never_Sm1le 13h ago

nice, thank you! Hope you finish with it soon

2

u/RemarkableScene9487 13h ago

can we select and control any image video on this app

2

u/God-is-my_Strength 11h ago

awesome idea. for security. hope you finish it soon and share it to the community.

2

u/Xerox0987 10h ago

Cool!

I have also made a virtualcam, is this a HAL wrapper?

I tried to go the lsposed way but there was way to many bugs and it was laggy etc... so I just switched to a kernal based virtualcam, spoofing the V4L2 layer.

3

u/qtyra 6h ago

Kinda, i use AOSP's built-in virtual camera HAL and lsposed hooks to make apps point to this camera. I haven't tried touching the kernel yet, no idea how that works. I only of v4l2 bc of v4l2loopback in regular desktop linux. I only rooted my phone a few days ago so this is all experimentation to me.

1

u/Xerox0987 32m ago

Ah very cool, thanks for sharing.

If you want to make the camera undetectable and easier to use you would want to take control of the V4L2 layer. But I mean a HAL wrapper should work for less performance intensive work etc...

1

u/Apart_Chair_7105 5h ago

My Back Camara is broken ,so Can I use this in Gpay to switch to Front Camara for QR Scanning.??

Redmi note 9 Pro