today i was really curious as to how i could get a webcam to fully function, and to maybe permanently use one as a web cam. after hours of surfing, i found that their is a way to preview, but not to actually use one. so i wanted to fix this problem!
after hours of research, and a bit of testing, and have finally reached some success!
found a thread in the viewsonic g tablet section, that managed to do about the the same. since they were both tegra based, with similar enough soc's , i decided to experiment. with stock kernel and firmwares, the nexus 7 has drivers for plug and play webcams. what this mod does is gives permissions and makes the webcam show up as a rear camera feed. WITH THIS MOD ACTIVE YOU CANNOT USE YOUR FRONT CAM.
it was made for the g tab. if modifications are made, we may be able to bring it back.
WARNING: as usual, i am not responsible for any mishaps that may happen by you doing this mod, including nuclear monkeys taking over the world.
i am coating the writer at the g tab thread for the credits on who originaly made the base for this mod for the gtab : "Credit BELONGS to Borkata at "another site""
so first, u will need:
1. a UVC webcam. or simply, a plug and play camera. anything that didnt need anything extra to work, other than you plugging it in. some only need the extra cd to use its full potential, but may work without one. check here: http://www.ideasonboard.org/uvc/#devices
95% of webcams should work.
2. the attached file. (camera.tegra3.so)
3. nexus 7 :P
5.a camera app other than stock. (lgcamera or similar)
EXTRACT and COPY the camera.tegra3.so FILE INTO your tablet's /SYSTEM/LIB/HW folder, and reboot. BACK UP THE ORIGINAL camera.tegra3.so if u want to revert later.
plug in your camera.
open up terminal emulator. run this:
chown system.camera /dev/video0
chmod 660 /dev/video0
now go to your camera app and check it out!
taking pics works fine. video has bad fps though. response is a bit slow too. but i think these are software issues.
you will need to put those lines in the terminal everytime you plug in the camera. (or make some kind of a script, or ask someone to)
i am not improving this mod simply because i dont have the experience to. but i did want to share this with you.
here is a little demo i uploaded of it so u guys can get an idea of it-
original g tab thread- http://forum.xda-developers.com/show....php?t=1789642
MUST WATCH- http://www.youtube.com/watch?v=JXpsxB0oD-E :P
hit thanks if i helped