Enabled OTG: Some Questions About... - Huawei P9 Lite Questions & Answers

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.

Related

[Q] how can we use a usb host?

Hello,
I have do a usb cable with external power alimentation, can we use it on android?
It works on Windows and on ubuntu!
I have put the kernel with a driver for the usb host. If we search the program used in samsung s2?
Bumping, as I am looking too for a way to run this. There is no clear info about USB host support on this forum.
And USB Host IS POSSIBLE in HD2 as hardware supports it, probably with OTG mode. We need a working kernel, or just some info how to run it.

[Q] Galaxy S4 USB OTG Ethernet?

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

[RESOLVED] External devices via usb (on Nexus 7 3G)

Hello,
First, I must say that I read many articles, tutorials and threads before, without any positive results so I decided to ask this question. I don't know why I cannot connect external device to my Nexus 7 3G (tilapia). Actually, my tablet's working on CyanogenMod 10.2 unofficial and is based on its kernel. It's even unable to detect device in recovery mode (I've flashed TWRP 2.6.1). I can add that I'm using otg-usb cable which has been included in my set of purchasing. I don't know is it important but my pendrive doesn't see to be ready to use while it's connected via cable because the micro diode is off wheres after connect to my computer it's always on (twinkle or shine). Of course I've installed StickMount app and others similar free for mounting devices and file explorers from Google Store. Additionally, Icon "Mount USB Storage" in Settings->Storage is constantly off (unable to touch). I'm waiting for your suggestions.
Thank you in advance for any replys.
EDIT.
I resolved it. The issue was responding to my cable. I've used the wrong one because I didn't know that it was from the other tablet than this one. I connected my device via new one and it's working perfectly now. Excuse for bothering you.

usb flash memory stick

Dear devoleder
I asked about how to connect flash memory stick to my huawei p8lite
Does it support otg or not?
I see in the sitting / storage/ usb mount what can i do with it
P8 lite doesn't support otg.
Sent from my ALE-L21 using Tapatalk
I don't get it too the phone does not detect the usb flash stick and many people said that the phone does not support OTG but in storage settings there that usb mount ****, really weird...
Maybe it will work with some OTG cable not by pluging the usb stick directly into the phone who knows lol
I think it's just missing a kernel driver to support it.
AIDA64 in pheripherals shows DWC OTG Controller, pheripheral ID 1D6B-0002
Hello, OK the p8 lite didn't support otg cable/stick but with twrp and a otg stick it's working fine for flashing process
dkonect said:
Hello, OK the p8 lite didn't support otg cable/stick but with twrp and a otg stick it's working fine for flashing process
Click to expand...
Click to collapse
Really? TWRP mounts usb stick?
In this case it's only needed a kernel driver to have it working in rom
The OTG chip exists, but the kernel lacks support for USB OTG.
then rooting the phone and installing stickmount and using an usb otg cable will solve the problem I guess
AmINoS007 said:
then rooting the phone and installing stickmount and using an usb otg cable will solve the problem I guess
Click to expand...
Click to collapse
No, a kernel driver is needed before everything else.
ItalianWolf said:
No, a kernel driver is needed before everything else.
Click to expand...
Click to collapse
oups
I think the driver is not a problem. The driver is present in the kernel.
The problem is probably a stock rom or stock system problem.
There could be a possible solution with a different rom like CM or AOSP.
https://github.com/XePeleato/android_ALE-L21_kernel/search?utf8=✓&q=otg
At last, a spark of hope for OTG! Honor 4x supports OTG and they almost have the same specs....
I'm looking to push a CWM for the P8 Lite soon when I have the time... will look into USB OTG kernel support.
I think kernel suports fully USB OTG but it's only simply disabled.
The issue is most likely that the USB port isn't providing enough power (if any) to the USB device.
Can anyone who's patched their kernel with USB OTG support (there are many apps on the Play store which do this) confirm whether this is true, using a USB Y cable?
Somebody try to use something from Huawei Honor 4C? It's almost identical phone but with smaller internal memory and USB OTG support. It also runs on Kirin 620.
MGNConflict said:
The issue is most likely that the USB port isn't providing enough power (if any) to the USB device.
Can anyone who's patched their kernel with USB OTG support (there are many apps on the Play store which do this) confirm whether this is true, using a USB Y cable?
Click to expand...
Click to collapse
Please tell me some app name on google play
---------- Post added at 11:00 AM ---------- Previous post was at 10:24 AM ----------
If you have a honor 4x please post usb-storage module, please
I used a Y cable without effect. But I will still try.
Ps. Whole true about USB OTG Now I'm dumping memory. May be soon I will upload image with USB OTG enabled. If somebody can help me, I appreciate it.
01-16 23:17:10.786 <3>[ 5.996673s][pid:1,cpu0,swapper/0][USB][OTG_DEBUG]g_otg_enable is 0
Click to expand...
Click to collapse
Please try this: https://play.google.com/store/apps/details?id=org.tauruslabs.usbhostcheck , reboot, then use Y cable.
You need to be rooted to use that app
You can maybe build our own kernel with support of OTG?
Try changing line 1988 in the hisi_hi6210sft_defconfig: CONFIG_USB_OTG=y
https://github.com/XePeleato/androi...r/arch/arm64/configs/hisi_hi6210sft_defconfig
http://forum.xda-developers.com/p8lite/orig-development/kernel-boot-stock-android-6-0-t3344841
Don't know if it will work.
Attention! Flashing a kernel or changing a kernel can damage your phone

ADB not working

Hi guys...
Yesterday my new PH-1 arrived and today I wanted to use ADB with the app "custom navigation bar". My problem is: i can`t get it to work... I´ve used adb several times with different phones, but with the PH-1 it can´t connect with my Windows 10 computer. Is it possible that I can´t get it to work because Ì´m using a different USB-C cable (took 3 different from Xiaomi another manufacturer)?
How do get it to work? Everytime I connect the phone with the computer, I get the message USB debugging is on and I use MTP to work, but the phone doesn`t show the RSA key fingerprint. Any suggestions?
masterchief_2001 said:
Hi guys...
Yesterday my new PH-1 arrived and today I wanted to use ADB with the app "custom navigation bar". My problem is: i can`t get it to work... I´ve used adb several times with different phones, but with the PH-1 it can´t connect with my Windows 10 computer. Is it possible that I can´t get it to work because Ì´m using a different USB-C cable (took 3 different from Xiaomi another manufacturer)?
How do get it to work? Everytime I connect the phone with the computer, I get the message USB debugging is on and I use MTP to work, but the phone doesn`t show the RSA key fingerprint. Any suggestions?
Click to expand...
Click to collapse
Mines wouldn't connect using the usbc cable it came with I had to use a regular usb to usbc cable for it to work
See your device manager. To see if you are seeing "Mata". You have to download the google usb driver and update it from there
I have S8 from my previous computer but i need to re install the driver again
https://www.youtube.com/watch?v=LbAq6d2Du0U
You can also try this tuturial hope that it is working for you.
Try this > Download and install the essential usb driver > go to device manager and update the driver. Choose the option where you can change the source and select the driver in the list > go to the Essential Folder in Program Files and choose the file named "essentialadb.inf" for your pc. That should work
It's and old thread but if there is someone new to this...
My essential wouldnt work with the previous ADB i had installed that had worked fine with all my other devices.
I installed https://forum.xda-developers.com/showthread.php?t=2317790 and worked just fine. Make sure your device isnt connected as anything other than charging. The previous ADB i was using didnt acknowledge my device but on first try with Minimal i was prompted on my phone right away
I had the same problem when attempting to flash my ph-1, when trying to use the cable that came with the device. I used a standard USB-A to USB-C cable and everything worked just fine. I noticed on the 8.1 update notes for side loading that the team indicates that the cable that comes with the phone is "Primarily" designed for charging and not data transfer. So I'm guessing that it is of lower quality and doesn't handle the transfer speeds.
blackbms said:
I had the same problem when attempting to flash my ph-1, when trying to use the cable that came with the device. I used a standard USB-A to USB-C cable and everything worked just fine. I noticed on the 8.1 update notes for side loading that the team indicates that the cable that comes with the phone is "Primarily" designed for charging and not data transfer. So I'm guessing that it is of lower quality and doesn't handle the transfer speeds.
Click to expand...
Click to collapse
Hold either volume button while connecting cable from phone to pc, it will detect automatically. It may work.

Categories

Resources