Hello,
I need a ROM with built-in OTG because my Nexus's screen is dead and I want to use a mouse with my powered usb otg hub to install debian and set a little home server.
I tried Chroma and Nitrogen without success.
Thank you!
That feature is mainly kernel related. So you gonna find a kernel with usb otg
I tried pure nexus with hellspawn N4 which has built in otg but no otg out of the box, I can't use the touch so I can't try app or settings :/
Also I have a bluetooth mouse if it easier to set it via adb but I don't know how..
Not sure how to set it via adb in hellspawn, but in Quanta, it can be set by issuing the following command...
Code:
echo "1" > /sys/module/msm_otg/parameters/otg_hack_enable
Can you tell me a good rom with ? Because pure nexus is 6.0.1 and Quanta is for 5.1 :/
PS: I tried the command but nothing
Ok so thanks to this usefull programm http://marian.schedenig.name/2014/07/03/remote-control-your-android-phone-through-adb/ I can pair my bluetooth mouse and use my phone !
Actually it is pretty simple it takes screenshot of the phone and use adb click to send touch input.
Quanta is also for marshmallow
Related
Hello,
I'm very intrested about enabling OTG on my Nexus 4 in order to plug it to my DSLR camera,so I can use apps like DSLR Controller with the Nexus and the camera.
I came across ziddey's thread (1) and CaptainMuon's thread (2)
So I bought myself some cables and now I have some questions before I begin:
1) Because I'm using a camera,a device that doesn't need any power from my Nexus,do I still need to supply any external power to the USBs?
2) In ziddey's thread he mentions that if you have a digital camera (or other devices that won't require power),you should manually enable OTG
on your device
OTG state can be manually set to host, none, or peripheral (shouldn't ever be a reason to need to set this one) via /sys/kernel/debug/msm_otg/mode. Execute the following as root (adb shell over wireless, terminal emulator, etc):
Code:
# echo host > /sys/kernel/debug/msm_otg/mode
or
# echo none > /sys/kernel/debug/msm_otg/mode
Click to expand...
Click to collapse
So my question is, do I still need the custom kernel etc to enable OTG on my device or should I just enter these commands and im all good?
Sorry if my questions are dumb,as you can probably already tell,im new to this.
Thank you!
Bump... Please help if you can
Hi all,
Can anyone with a USB to Ethernet adapter please test if this works with the Galaxy S4 using an OTG USB cable? I have read it works with the Nexus 7 but would love to know if it works with the Galaxy S4. Would be quite handy to hook up the galaxy directly to my 100mb internet.
Thank you.
S4 tested with two USB Ethernet modules. unsuccessfully
delucz said:
Hi all,
Can anyone with a USB to Ethernet adapter please test if this works with the Galaxy S4 using an OTG USB cable? I have read it works with the Nexus 7 but would love to know if it works with the Galaxy S4. Would be quite handy to hook up the galaxy directly to my 100mb internet.
Thank you.
Click to expand...
Click to collapse
I tried with some generic USB - 10/100 Ethernet (its working with Android 4.0.1 in Point of View TV Stick) and Delock Gigabit USB (not testetd with Android previously) but not working with S4. I check OTG cable connecting USB flash drive and it works with S4, same with USB mouse and USB keyboard. This Ethernet 10/100 USB module after connecting to S4 lights up so its powered but S4 does not looks like recognize it. i have to small knowledge or S4 hasn.t some drivers.
RMPL said:
I tried with some generic USB - 10/100 Ethernet (its working with Android 4.0.1 in Point of View TV Stick) and Delock Gigabit USB (not testetd with Android previously) but not working with S4. I check OTG cable connecting USB flash drive and it works with S4, same with USB mouse and USB keyboard. This Ethernet 10/100 USB module after connecting to S4 lights up so its powered but S4 does not looks like recognize it. i have to small knowledge or S4 hasn.t some drivers.
Click to expand...
Click to collapse
Thanks for trying! A few people have tried with no luck unfortunately. Hopefully someone can create a loadable module that contains ethernet drivers for the S4!
Cheers
RMPL said:
I tried with some generic USB - 10/100 Ethernet (its working with Android 4.0.1 in Point of View TV Stick) and Delock Gigabit USB (not testetd with Android previously) but not working with S4. I check OTG cable connecting USB flash drive and it works with S4, same with USB mouse and USB keyboard. This Ethernet 10/100 USB module after connecting to S4 lights up so its powered but S4 does not looks like recognize it. i have to small knowledge or S4 hasn.t some drivers.
Click to expand...
Click to collapse
Have you tried this with a powered USB hub?
Just tested - negative result.
NZtechfreak said:
Have you tried this with a powered USB hub?
Click to expand...
Click to collapse
S4 connected via OTG to extrenally powered USB HUB. Ethernet USB adapter connected to Hub. Nothing happens on S4.
To verify connect USB Flash drive to USB hub and its sucessfully detected and browsed on S4 (so hub itself working).
Tested USB Ethernets:
USB Ethernet 10/100 "JP1081B"
USB Ethernet 10/100/1000 "Delock 61730"
RMPL said:
S4 connected via OTG to extrenally powered USB HUB. Ethernet USB adapter connected to Hub. Nothing happens on S4.
To verify connect USB Flash drive to USB hub and its sucessfully detected and browsed on S4 (so hub itself working).
Tested USB Ethernets:
USB Ethernet 10/100 "JP1081B"
USB Ethernet 10/100/1000 "Delock 61730"
Click to expand...
Click to collapse
I thought that would likely be the result, but always worth checking non-working USB OTG stuff with a powered hub.
I have a couple of different ethernet adapters, driverless ones that are confirmed working with the few Android devices (tablets) that have been reported to work with ethernet connections, will post results when I get them (I expect them not to work).
NZtechfreak said:
I thought that would likely be the result, but always worth checking non-working USB OTG stuff with a powered hub.
I have a couple of different ethernet adapters, driverless ones that are confirmed working with the few Android devices (tablets) that have been reported to work with ethernet connections, will post results when I get them (I expect them not to work).
Click to expand...
Click to collapse
Fingers crossed but I have my doubts too unfortunately.
Any updates to this interesting thread?
I too would like to get this going with my new Samsung S4, mine is via Sprint, if that matters.
I have tried to OTG cable w/ a USB and StickMount Pro, that works.
BTW, my S4 is rooted via the CF Auto Root method.
has anyone actually found a driver for this?
Possible???
Is this in any way possible?? I am planning to buy one adapter for my s4. Is it worth buying??
I would be interested. The device recognizes it but does not work with this program Ethernet Google Play.
Forgive my language I'm using Google Translator Spanish to English.
I saw a post to introduce myself.
Thank you
Thank you All. Following is how I got LAN Ethernet to work on my Galaxy S4. Some of these steps are very risky and may wipe out all your phone data or make your phone unusable. So I am not recommending you to try it. I am only sharing what I did in my phone to make it work with OTG Ethernet. Also the procedures are very device and version specific. Even same model phones with different Build version and Android version may give different results.
My Devices:
Samsung Galaxy S4 Model Number: SGH-I337M
Android version: 5.0.1 (Lollipop) SDK 21
CPU Architecture: ARMv7
Build Fingerprint: jfltevl/jfltecan
BobJGear OTG Ethernet
ASIX AX88772A Chipset
Following is the Summary of the key steps and troubleshooting. You can search online to find the APKs and Installers or to know more details.
Install Droid Info App to get details of the phone CPU
Install Kingo ROOT App on the Phone and Root the Galaxy S4
Install Odin3 v3.13.1 on Windows 10 PC
Use Odin3 to install “Team Win Recovery Project” (TWRP) on the phone. TWRP was necessary to install XPOSED Framework. The specific version of TWRK that I could install is TWRP 3.1.1.0. I installed it using the file with following file name:
“twrp-3.1.1-0-jfltecan.img.tar”.
The other newer version of TWRP did not work. It kept going back to default recovery menu. Also uncheck “Auto Reboot” in the Odin Options and manually reboot phone to Recovery mode after installing TWRP from Odin.
If you get following message when trying to start TWRP in Recovery mode, Just wait few minutes and TWRP will start.
RECOVERY IS NOT SEANDROID ENFORING
SET WARRANT BIT RECOVERY
During TWRP initial setup Swipe to “allow modification” to System partition
Install XPOSED Installer using apk with following file name. This is an App used to install XPOSED Framework.
"Xposed-Installer-3.0-Alpha-4-2016.10.16.apk"
After installing it, it showed warning that it is not compatible with my phone and android version. Leave the XPOSED Installer installed. Use alternate method to install XPOSED Framework using TWRP.
Install XPOSED Framework using TWRP. I installed the XPOSED Framework version 87.1. That is the only version that worked. I used zip file with following file name
“xposed-v87.1-samsung-5.0.x-sdk21-by-dkcldark-arm.zip”
The other versions of XPOSED Framework was giving following errors.
The installed firmware is not deodexed!
This version of Xposed requires deodexed firmware!
After installing XPOSED Framework, open XPOSED Installer and install Hack Connectivity Service
Install Terminal Emulator.
Sometimes after reboot, the Terminal Emulator shows blank screen. Wait for a minute or so and it should show the usual prompt where you can enter the commands.
Install SuperSU Free v2.79
I installed Ethernet Droid apk, but it did not work.
I installed Busybox but it was not necessary to be used
Usual Steps
Once everything is installed, following are the usual steps to connect to Ethernet.
Connect the Ethernet OTG to Smartphone.
Disable Wifi
Enable Wifi Hack in “Hack Connectivity Service”
Start Terminal Emulator and run following commands. This needs to be done every time we switch from Wifi to Ethernet.
Code:
su
netcfg eth0 dhcp
ip rule add from all lookup main pref 99
ndc resolver setnetdns eth0 "" 8.8.8.8 8.8.4.4
exit
If I don't use the above "ip rule" command, I can only ping to router using Superuser and Internet does not work.
Also previously it was not recognizing website names while pinging. the "ndc resolver" command resolved that issue.
Once above commands are executed, I can use LAN Internet on my Galaxy S4.
Update on Nov 19, 2019:
For the Usual Steps, the Terminal Emulator Commands after "su" line can be saved in a file in the local storage of the phone with name such as "lan.sh" then following commands can be used to execute the file.
su
cd sdcard
sh lan.sh
Video Demonstration
The demonstration of my final results is in my following video. It also has an example of Simultaneous Charging while using OTG Adapter.
https://youtu.be/RtLV6qpMm6o
If is possible, please add UVC driver support to this ROM. I can't find any custom ROM with v4l2 enabled kernel.
Too complicated build custom kernel for me.
Code:
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
github.com/openxc/android-webcam
You should tell us the device where its missing
maxwen said:
You should tell us the device where its missing
Click to expand...
Click to collapse
OTG cable
Logitech C920
Logitech C525
Wouldn't do much without a matching camera HAL... Or are you using commandline capture utilities?
And you need to tell us which device you're using. Some devices simply don't have OTG support at all and never will because they don't have the hardware for it. (mako is one of these...)
Entropy512 said:
Wouldn't do much without a matching camera HAL... Or are you using commandline capture utilities?
And you need to tell us which device you're using. Some devices simply don't have OTG support at all and never will because they don't have the hardware for it. (mako is one of these...)
Click to expand...
Click to collapse
Thanks for reply.
I use nexus 10 tablet. USB mouse working fine so i think, OTG cable is working on my device.
My general problem: No /dev/video0 video source.
Searched by this command in terminal emulator: ls /dev | grep video0
I use ArutCam application for stream external camera picture.. i talk the developer and he say: "arutcam lets you choose camera
if your camera is detected well by android then it will be ok"
Sorry for my english
igabyka said:
Thanks for reply.
I use nexus 10 tablet. USB mouse working fine so i think, OTG cable is working on my device.
My general problem: No /dev/video0 video source.
Searched by this command in terminal emulator: ls /dev | grep video0
I use ArutCam application for stream external camera picture.. i talk the developer and he say: "arutcam lets you choose camera
if your camera is detected well by android then it will be ok"
Sorry for my english
Click to expand...
Click to collapse
I don't have a manta so I can't make this change myself.
If you're able to build Omni yourself, you can try making the change and then submitting it to gerrit for review.
http://docs.omnirom.org/Main_Page - see the items under Important Pages and Development
Hi, I've managed to crack my digitizer and can't use my phone.
Because external input devices (mouse, keyboard) aren't supported, is there any ROM with pre-enabled adb or one that supports usb keyboard or mouse?
Maybe I can still use my phone if I can pair (via adb) a bluetooth mouse! Thanks in advance
Hi,
I have enabled OTG support for my p9 Lite, thanks to the information here (I assume it is working, as I can't charge, or connect to PC, when script is running). I am attempting to achieve the following, if possible?
-connect & run Logitech C270 webcam that will be modified to work as an astrophotographical web-camera
What I am trying to ascertain is:
-what type of OTG cable I can use? Any type, or does it need to be a microUSB2.0 version?
-Do webcams even work with this? Only info I can find refers to using {flash}drives.
Thanks.
1. Any OTG USB 2.0
2.50% yes, 50% nein.
Thanks for reply. Not sure what the %s mean??
My phone is VNSL22C706B130. It would appear not all cables works with this particular phone build; if indeed any. I bought a Digitus cable -DK300204-002-S VPR. 1-0-. It works on my old Samsung SII, & recognises the flash drive. It does NOT work on my P9 Lite. I have tried different makes of flash drives, in various formats: no-go.
What's the easiest way to check that Scriptrunner is actually working properly? I have double-checked that the OTG folder permissions are as needed. I even added write into both group & other categories, to test. Does anything else need to be checked eg. 'SetUID', 'Set GID', etc. Thanks.
Anyone else with a New Zealand P9 Lite build got OTG working?
You can enable it but it doesn't work reliably. I was using a dragonfly DAC via otg and the sound screwed up every few minutes.
Swap it for a Honor 6x if you want otg.
Cheers. I'll probably go down another route & get a tablet to control the webcam.