-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Unable to load device" #7
Comments
I assume each of those devices has Kitkat or later? Easycap viewer has its own user space driver, my app uses V4l2 linux kernel space drivers. Its likely SELinux that is causing issues. I had hoped requesting usb permission have an effect on SELinux policy to allow access, but I hadn't been able to test it on a SELinux enforcing device. It isn't surprising that it had no effect. The solution is to change SELinux to permissive mode, for that you will need root. There is an app called "SELinuxModeChanger" that will do this for you. Its available on F-Droid, or you can google it, find the XDA thread, and sideload it. I could add this functionality to Easycam itself, however I would prefer to add userspace drivers rather than require root access and do something that google deems "dangerous". Creating a userspace driver is a large undertaking and at this point I simply do not have the time to do it. |
It also occurs to me that its possible that your kernel doesn't have the UTV007 module loaded. To my knowledge they are never compiled by default. You would need a custom kernel that supports easycap devices. |
yes, my devices run kitkat and lolipop, can you provide information on how to load the UTV007 module and where can i get it? |
I also have "Unable to load device" and then "Error connecting to device". Tried with SELinuxModeChanger and no difference. I took a look at /dev folder and there I see I have a /video folder and then more files like /dev/video0, /dev//video1, /dev/video2, etc... Is /dev/video supposed to be a folder or a file? |
|
|
|
Each /dev/videoX is a file. Linux reads and writes to this file to control the device. Your output does show that you are in permissive mode, so it appears that permissions on the videoX files prevent user apps from access. Most lilkely all of those /dev/video files are created by the system, and none of them actually represent your usbtv device. Typically when a v4l2 driver is loaded, the corresponding /dev/videoX file is created with the correct permissions. Are you using a kernel with the usbtv driver compiled? Assuming you have busybox installed, you can check with the lsmod command. If you don't see "usbtv", you don't have the driver. |
hi, i need compiled usb.ko module for arm kitkat how can i? |
anyone can provide me usbtv driver for kitkat ????? |
Hello, I have UTV007 easycap device,
I compiled and tested your project on 3 smartphones - LG g2 , sony xperia z5 premium, and LG g3,
the device recognized by the app but show toast message : "Unable to load device" and then "Error connecting to device"
Tried it with EasyCap Viewer from play store and it worked good.
Any idea how to solve it?
The text was updated successfully, but these errors were encountered: