Hi,
I would like to use lg g3 as a screen for my reverse/backup camera in a car. Before buying the g3 I checked that it supports OTG and latest Android has easycap drivets built in so you do not have to root the phone.
I have got easycap with UTV007 chip which should be supported and I checked that it works on windows laptop. I have got USB OTG cable. If I connect mouse to g3 in otg mode it does work.
However if I connect easycap it does not. I am using one of the reverse camera apps. I ran usb host check program and got the following output:
Android.hardware.usb.host.xml OK
Handheld.core.hardware.xml : usb host not enabled
Tablet.core.hardware.xml : not found
When i tap "fix" i am getting "could not start su process".
To me it sounds like it needs root rights to update some configuration. G3 has factory android 5.0 installed. I have enabled usb debugging but it did not help.
Do you know what the problem is and how can I get easycap working?
I would prefer to not root the device neither to install custom roms because I have no experience (my first week on android)
Thanks in advance!
Forgot to mention: The phone is D855 v20i TWN XX Android 5.0 kernel 3.4.0 if it makes any difference
So I have installed busybox and terminal, no root yet.
I have found handheld.core.hardware.xml and it does not "include" anything to do with usb host- is this a problem?
Furthermore there are numerous files like video0, video1,...video31,video32 in /dev/ - can someone please help explain it?
What is the best thing to check next?
hello. Have you tried using an otg y-cable? It may make no difference, but perhaps a y-cable with power source may help.
Related
Does Nokia N1 got OTG support? I have Tried to connect my USB Flash through OTG cable but doesn't work for me ....
Doesn't work for me either >_<
I don't have an otg cable myself (yet) but can you try to use USB Host Diagnostics (available in play store) and post the report?
FYI I got an OTG cable myself and it didn't work. I dug a bit deeper and found out that OTG is most likely not implemented because Nokia N1 is using legacy usb controller over usb C - see below:
Converting USB 2.0 OTG SoCs to USB Type-C
While existing Device, Host, and DRD devices can be converted to support the USB Type-C connection with some effort, it is not practical to convert existing OTG SoCs. OTG requires a new state machine using the configuration channel to support USB Type-C. Host Negotiation Protocol is used to swap host and device role for OTG, while Power Delivery communication is used to change roles for USB Type-C. Combined, these challenges preclude simple upgrades of OTC SoCs to USB Type-C. - See more at: https://www.synopsys.com/Company/Pu...esign-type-c-2015q1.aspx#sthash.Ri02Guwe.dpuf
Click to expand...
Click to collapse
The only chance to get otg to work is most likely preparing a kernel patch (are the sources even available?) to manually switch the connector to host mode and power the attached device externally
After a bit of hacking around I was able to enable usb otg on my N1!
I've had a look at kernel sources for device with similar SoC (Nexus Player) and saw an interesting debugfs entry. To my surprise it worked like a charm and immediately detected the attached usb hub with a thumb drive, it even powered the hub so I didn't have to use an external power source!
To enable host mode, the following command has to be enterted in root console:
echo A > /sys/kernel/debug/usb/dwc3_debugfs_root/otg_id
Caveats (will try to find a way to resolve them):
- after enabling host mode N1, won't charge from the usb port - a reboot is required to enable the charging again
- probably same is true for pheripherial mode (connecting n1 to a pc). In theory, changing a to b in the above echo command should bring the tablet back to normal mode but for some reason it won't charge without a reboot so I'm assuming that same is true for non otg usb connectivity. Will have a look at the sources and debug messages to find out what's going on
wodz69 said:
After a bit of hacking around I was able to enable usb otg on my N1!
I've had a look at kernel sources for device with similar SoC (Nexus Player) and saw an interesting debugfs entry. To my surprise it worked like a charm and immediately detected the attached usb hub with a thumb drive, it even powered the hub so I didn't have to use an external power source!
To enable host mode, the following command has to be enterted in root console:
echo A > /sys/kernel/debug/usb/dwc3_debugfs_root/otg_id
Caveats (will try to find a way to resolve them):
- after enabling host mode N1, won't charge from the usb port - a reboot is required to enable the charging again
- probably same is true for pheripherial mode (connecting n1 to a pc). In theory, changing a to b in the above echo command should bring the tablet back to normal mode but for some reason it won't charge without a reboot so I'm assuming that same is true for non otg usb connectivity. Will have a look at the sources and debug messages to find out what's going on
Click to expand...
Click to collapse
Thanks for your hard job.
I have tried on my N1. It is amazing that otg did work. However, the otg can not coexist with charging function as yours. Hope someone could find a solution.
adagiov said:
Thanks for your hard job.
I have tried on my N1. It is amazing that otg did work. However, the otg can not coexist with charging function as yours. Hope someone could find a solution.
Click to expand...
Click to collapse
Hey,
Are you on Android 5.1.1 or 5.0 ?
I've had a look at the code of the usb driver of the a phone with similar chipset (asus zenfone 5) and it seems that the source of the problem is that the tablet fails to detect an appropriate charger type, which could mean either that the otg cable does not support this or the code of the driver does not work properly with usb C. Was wondering if something changed around this after the update?
wodz69 said:
Hey,
Are you on Android 5.1.1 or 5.0 ?
I've had a look at the code of the usb driver of the a phone with similar chipset (asus zenfone 5) and it seems that the source of the problem is that the tablet fails to detect an appropriate charger type, which could mean either that the otg cable does not support this or the code of the driver does not work properly with usb C. Was wondering if something changed around this after the update?
Click to expand...
Click to collapse
Hi, mine N1 is still running the android 5.0.
I am afraid Root is the prerequisite to hack otg. Unfortunately, root is not available on android 5.1.1 till now, so even the android 5.1.1 driver support it, that won't help.
Thanks,dude.
Yeah exactly for that reason I haven't upgraded my tablet yet
I'm hoping someone can help. I have an LG G3 D855 phone and is factory unlocked and running Lollipop 5.0. When I first got the phone (second hand), I was able to connect the phone via USB to my PC and was able to transfer files back and fore no problem. Until about 3 weeks ago, I am now unable to do this. The PC won't recognise the phone at all, all the USB connection does is charge the phone and I can see no option to get the phone to change to file transfer mode.
I had a look at Storage in the settings menu and I don't have the three dots that some people have spoke about. I have factory reset the phone and this hasn't fixed it.
I have tried using a different USB cable, this was the same. The drivers are installed (phone was recognized before). I have also tried the LG Suite, again same result. I also had a look in Device Manager for ACER something or other and this wasn't there.
I am currently having to use Bluetooth to transfer files back and fore to my PC and this is a bit slow. I'm assuming that an update LG have done has somehow broke the USB settings. I am also unable to root the phone (tried this before the USB stopped working and nothing worked) and possibly go back to KitKat 4.4.2 to even try that.
My phone has software version V20u-EUR-XX, Kernel Version 3.4.0 and build number LRX21R.A1439960697. There is no update available for my phone in the Software Update center.
After quite a bit of searching, it seems that this is a common issue but I have not found a solution to this. Can anyone help? Is there any firmware or software that I can try?
Thanks.
Assuming the OS is Win8/8.1 or Win10, have you already tried this?...
[How to fix] Windows 8/8.1/10 is not detecting my LG G3 device
http://forum.xda-developers.com/lg-g3/help/answer-windows-8-8-1-detecting-lollipop-t2967574/post57373374#post57373374
... or tried the suggestions in this thread?: http://forum.xda-developers.com/lg-g3/help/lost-usb-connection-mode-t2847857
Thanks for the reply. I am using Windows 7 Home Edition 64 Bit and had had a look for the ACER Composite ADB Interface in Device Manager and it wasn't there. Post #18 in the thread you linked to, I have no idea what kdz file I would need. Does this method need the USB to working?
Thanks for the reply and help.
I have D85520T_00.kdz and D85520U_00.kdz files. Can someone tell me if these are OK for my phone (and latest) and what the differences between the two are (apart from the file names?) Thanks again.
I couldn't tell you what the differences are between software revisions, only that 20u is newer. And I believe 20w is the latest available. I would probably try reinstalling the latest drivers from LG...
http://www.lg.com/us/support/software-firmware
... then again check to see if your PC recognizes the phone. If the "Charge phone--> Tap for more USB options" notification doesn't appear after installing the latest driverset, I'm not sure what else you could try. The LG Flash Tool needs to be able to communicate w/ the device when it's in Download Mode. You might be able to find something in the [Guide] LG G3 Stock Firmware (Go Back to Stock) KDZ & TOT Method thread related to the same problem you're having.
http://forum.xda-developers.com/showthread.php?t=2785089
Just a quick update, can't even get the phone into download mode. I press volume up, insert the USB cable in to the PC and all I get is the battery charging icon. I'll have a further look this weekend - not good so far!
Thanks again for the replies and help.
Firmware W seems to be flashable only via TWRP or ClockWorkMod just now?
I have been able to get the phone into Download Mode a few times (not all of the time) and when I run LG Flash Tool, it just tells me that the phone isn't connected. I'm going to assume that the USB port is in someway defective. Can't think of anything else.
Have you tried w/ a different PC and/or OS? Have you tried connecting the phone via different USB ports (USB 2.0 compared to USB 3.0 or vice-versa)? And I assume you've already installed the latest driverset from LG?...
http://www.lg.com/us/support/software-firmware
Yes, I got into Download Mode once or twice on the laptop. I'm using LGMobileDriver_WHQL_Ver_4.0.3. I have tried USB 2 ports on both my Laptop & PC. I've tried driver 3.81 as well.
OK, got a new USB Charger port fitted just in case it was the port that was wrong and it's still exactly the same! I did a factory reset and have setup the phone for now. During the factory reset, it does pop up with Updating Android and has 169 updates. If anyone here has the LG G3 and has it working file transfer wise, can you tell me what version of the LG USB drivers you are using? Is it possible an LG update has caused this?
Thanks.
It's fixed!!! I think there was an update yesterday for Android Devices or Services, can't remember which was made available yesterday, installed that, reconnected the phone to the computer just a few minutes ago and it has finally been recognised! I can finally transfer files between the phone and the PC.
It was an LG update that has fixed this.
At last.
I'd like to say thank you for all the replies and help.
After upgrade to marshmallow the usb otg feature no longer works. I have tried debugging and choosing ptp, mtp, charging, all to no avail. It simply no longer recognizing anything other than the power cord plugged in. I've tried the built in file manager and es file. Can I fix this?
Also I have a thumb keyboard installed and working. But on reboot the keyboard resets to Samsung default every time??
Thanks in advance. I am now searching downgrade options...the otg feature is a killer for me.
webnetxpress said:
After upgrade to marshmallow the usb otg feature no longer works. I have tried debugging and choosing ptp, mtp, charging, all to no avail. It simply no longer recognizing anything other than the power cord plugged in. I've tried the built in file manager and es file. Can I fix this?
Also I have a thumb keyboard installed and working. But on reboot the keyboard resets to Samsung default every time??
Thanks in advance. I am now searching downgrade options...the otg feature is a killer for me.
Click to expand...
Click to collapse
i had no problem using otg. try to factory reset. usually with every big update some old files that left from previous version will give problems to device. and for the thumb keyboard try to look at the application permission. the app kind of being abandon. last update on 2014. so it might have problem with MM.
Check your device drivers are working correctly.
ashyx said:
Check your device drivers are working correctly.
Click to expand...
Click to collapse
How do you check device drivers on an android tablet? And which drivers control the otg function?
How to enable USB host API support
How to connect and debug Android device with ADB over TCP WiFi
How to enable USB host API support
Clone this wiki locally
https://github.com/452/USBHIDTerminal.wiki.git
How to enable USB host API support
Some Android devices have no support USB On The Go (OTG)
USB host mode is supported in Android 3.1 and higher
Also for this you need ROOT access.
To enable USB host API support you should add a file named android.hardware.usb.host.xml and containing the following lines:
<permissions>
<feature name="android.hardware.usb.host"/>
</permissions>
into folder
/system/etc/permissions
in that folder find file named
handheld_core_hardware.xml or tablet_core_hardware.xml
and add
<feature name="android.hardware.usb.host" />
into <permissions> section.
Reboot your device. USB host API should work.
Procedure:
adb pull /system/etc/permissions/tablet_core_hardware.xml
Update that file and create android.hardware.usb.host.xml as specified by Greg-q.
adb push android.hardware.usb.host.xml /system/etc/permissions
adb push tablet_core_hardware.xml /system/etc/permissions
Reboot.
Videos:
https://www.youtube.com/watch?v=oaXYMx8-SZ4
links:
http://stackoverflow.com/a/11992683/984156
http://stackoverflow.com/a/17036007/984156
Thank you I find this quite useful for my E5 (SM-S978L)
zenful said:
Thank you I find this quite useful for my E5 (SM-S978L)
Click to expand...
Click to collapse
Thanks for reply
I tried this all in my samsung e700h but not suceeded. If anybody suceeded in doing this way plse tell how???
You can try using NeOTG in grand 2/s3 neo forums. If you have a kernel support of OTG,then it'll work
How to check if my kernel supports native USB OTG support? Perhaps I have to check for it in "/dev/" or somewhere?
doesnt work on e500h with stock lollipop
Someone have the github files that were taken down?
Sent from my SM-A520W using XDA Labs
No OTG in E700H it seems...
The USB controller used in Galaxy E700H is Richtek RT-5033 which is apparent by examination of
PHP:
dmesg | grep 5033
This RT-5033 handles battery management and flash LED etc. but the driver for this in kernel given by Samsung doesn't have anything specific related to USB host/OTG.
There is a mention of a register for USB OTG/Host, but it's not documented.
So even if the chip RT-5033 supports OTG, without the support in kernel, OTG can't be enabled.
I want to enable OTG support on my Irulu X11 tablet, I can access a recovery menu and there's a lot of options in there. I can update from multiple source, I can reboot to bootloader... etc...
I don't have any knowledge in this 'domain' but I'm pretty good with that stuff usually.
If you can explain to me how I can edit those files to enable the USB OTG to work, I would bless you.
Basically, someone said that in the Recovery Menu your tablet is practically 'rooted', I'm not sure what that means and I hope someone can help me.
I got the file ' android.hardware.usb.host.xml ' and it's already got the permission in there but it's not in ' tablet_core_hardware.xml ' and when I try to edit it for File Explorer, I get an error when saving.
Actually, I think OTG support is already enabled.
If I can use a micro USB keyboard for my tablet, that means the OTG support is working right?
Then, my problem would be that all the apps I'm trying to use are not made my version of Android or something.
Let me explain.
I bought a USB microscope and I want to connect it to my tablet to I can inspect stuffs on the fly.
It's working perfectly fine on my computer, but I've tested 10 apps on my tablet and none are showing the camera view but they detect something in USB (USB Camera) and the leds on the lens are turning on.
What's the issue ?
Well, apparently my device doesn't have any built-in UVC support and that's why I cannot see the video of the camera.
Is it possible to add UVC support? I know at this point I should make my own thread but let's see..
Harshiv989 said:
No OTG in E700H it seems...
The USB controller used in Galaxy E700H is Richtek RT-5033 which is apparent by examination of
PHP:
dmesg | grep 5033
This RT-5033 handles battery management and flash LED etc. but the driver for this in kernel given by Samsung doesn't have anything specific related to USB host/OTG.
There is a mention of a register for USB OTG/Host, but it's not documented.
So even if the chip RT-5033 supports OTG, without the support in kernel, OTG can't be enabled.
Click to expand...
Click to collapse
I don't understand so much of this .. i tried too many videos to make the E7 compatible to otg and it worked but when i try to use the otg experimentally it doesn't work !!
Ok I've gotten to the end of the instructions, the last step, & I have an issue...
When I enter:
adb push android.hardwae.usb.host.xml/system/etc/permissions
I get:
adb.exe: push required an argument
I entered the command exactly as written so what is the problem & how can I fix it?
Thanks. .
Hello guys, as you can see in the title I have a problem with my non-rooted HTC desire 820 running on stock rom (updated to 6.0.1 Marshmallow) , my phone can't seem to recognize my xbox 360 wired controller.
I know that the phone is OTG compatible(I can't attach photos because I'm a new user ), but USB OTG Checker shows that phone is compatible, and the controller as pluged in ,USB Host Diagnostics says(All yes except Rooted API and this -> ): "Kernel Claims support:YES / Device detected: No / Verdict OS,3rd party apps No/NO " . My wireless mouse and keyboard are working when connected(same for the usb stick). Xbox controller works on another Marshamallow android device with the same OTG cable. I updated kernel ,but with no solution , i can't seem to figure it out. If you guys can offer any support , I'll be thankful. I have to mention that I would like to exclude rooting because my warranty can be void.
Hi, you can't do anything without rooting because stock rom doesn't has x360 controller drivers installed and if you want to install it you must have root privileges
Skorupa123 said:
Hi, you can't do anything without rooting because stock rom doesn't has x360 controller drivers installed and if you want to install it you must have root privileges
Click to expand...
Click to collapse
Thank you for your reply, I'm going to wait for more suggestions .