usb flash memory stick - P8lite Q&A, Help & Troubleshooting

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

Related

[Q] USB OTG Functionality - for porting to Optimus One

Hello,
Can anyone help me with a description of the USB OTG functionality on the ZTE Blade ?
I am interested in:
What drivers are installed (USB Host, USB Gadget, USB Storage, etc.) that are related to USB OTG functionality.
How the phone recognizes if it should be in USB Host or USB Gadget mode (sense pin or software switch?)
How the automount works.
What kinds of devices can be connected to the phone.
Any other things that could help implementing USB Host into another phone (Optimus One)
I am trying to help get USB host working in the LG Optimus One, which has similar hardware, but OTG is not working at the moment.
Any help would be appreciated.
The thread (at it's beginning, at thr moment is here), for direct input.

[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] USB host mode in CyanogenMod 10.1.2

I am running CyanogenMod version 10.1.2 on a Nook Color via micro SD card. I can not get any USB devices (eg. thumb drives) to work. Nothing happens when I plug a USB device in, so it appears that the Nook Color does not recognize the device. To troubleshoot the problem, I ran a program called "USB Host Diagnostics," and received the following message:
USB Host Controller: version number 0.44
S3C USB Host Driver NOT found!
Root hub present, USB Host Mode is active.
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color? What steps do I need to take to get USB hosting to work? Thanks for any help you can give me to help me solve the problem!
CM 10.1.2 with USB Host / OTG
nuprps said:
I am running CyanogenMod version 10.1.2 on a Nook Color via micro SD card. I can not get any USB devices (eg. thumb drives) to work. Nothing happens when I plug a USB device in, so it appears that the Nook Color does not recognize the device. To troubleshoot the problem, I ran a program called "USB Host Diagnostics," and received the following message:
USB Host Controller: version number 0.44
S3C USB Host Driver NOT found!
Root hub present, USB Host Mode is active.
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color? What steps do I need to take to get USB hosting to work? Thanks for any help you can give me to help me solve the problem!
Click to expand...
Click to collapse
Good question.
This is the best I could dig up:
http://forum.xda-developers.com/showthread.php?p=40043731
Please let us know what you figure out!
nuprps said:
I am running CyanogenMod version 10.1.2 on a Nook Color via micro SD card. I can not get any USB devices (eg. thumb drives) to work. Nothing happens when I plug a USB device in, so it appears that the Nook Color does not recognize the device. To troubleshoot the problem, I ran a program called "USB Host Diagnostics," and received the following message:
USB Host Controller: version number 0.44
S3C USB Host Driver NOT found!
Root hub present, USB Host Mode is active.
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color? What steps do I need to take to get USB hosting to work? Thanks for any help you can give me to help me solve the problem!
Click to expand...
Click to collapse
Cyanogenmod 10.1.2 can't use USB host mode, if you need to use USB host mode use Cyanogenmod 7 and the nook color tools app to enable it
Sent from my NookColor using xda app-developers app
dombeef said:
Cyanogenmod 10.1.2 can't use USB host mode, if you need to use USB host mode use Cyanogenmod 7 and the nook color tools app to enable it
Click to expand...
Click to collapse
To expand on this: CM7 was based on top of an older Linux kernel version (2.6.32), on top of which a lot of hard work was done to enable USB host mode. In porting to CM9/10/10.1, we moved to a newer kernel version (3.0), and some of that work wasn't brought over. There aren't any technical barriers to enabling USB host mode on newer kernels -- someone "just" needs to spend the time to go through the patches for host mode in 2.6.32 and figure out what bits need to be forward ported to 3.0. (In case you haven't figured out yet, time is the scarcest asset in a volunteer project like this one ...)
nuprps said:
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color?
Click to expand...
Click to collapse
"S3C USB Host" refers to the USB OTG hardware included in Samsung S5PC110 ("Exynos3") devices, including the Nexus S and most Galaxy S series phones. It's not applicable to OMAP devices like the Nook Color, which use different, much more mature USB OTG hardware and drivers from Mentor Graphics and TI (musb_hdrc).
USB Host Mode with CM10
steven676 said:
To expand on this: CM7 was based on top of an older Linux kernel version (2.6.32), on top of which a lot of hard work was done to enable USB host mode. In porting to CM9/10/10.1, we moved to a newer kernel version (3.0), and some of that work wasn't brought over. There aren't any technical barriers to enabling USB host mode on newer kernels -- someone "just" needs to spend the time to go through the patches for host mode in 2.6.32 and figure out what bits need to be forward ported to 3.0. (In case you haven't figured out yet, time is the scarcest asset in a volunteer project like this one ...)
"S3C USB Host" refers to the USB OTG hardware included in Samsung S5PC110 ("Exynos3") devices, including the Nexus S and most Galaxy S series phones. It's not applicable to OMAP devices like the Nook Color, which use different, much more mature USB OTG hardware and drivers from Mentor Graphics and TI (musb_hdrc).
Click to expand...
Click to collapse
THANKS to EVERYONE for responding and clarifying the situation with USB Hosting mode on CM 10. The information saves me a lot of frustration in trying to get my Nook Color to recognize my USB devices. At least I can get USB Hosting working if I use CM7; that's an option, so thanks a lot for pointing it out. I'm a newbie and struggling to learn Android related stuff. If I had the technical know-how, I'd love to help solve the USB Host issue with CM10. For me at least, USB hosting would be a valuable feature in CM10 and beyond. I really like how well CM10 runs on my device with a SanDisk 8Gb micro SDHC card.
To get some of my devices (eg. keyboard) working on CM10, I may try the bluetooth capability in CM 10. However, I read somewhere that the range of bluetooth was limited on the Nook Color. I think that was awhile ago when developers initially unlocked bluetooth on the Nook Color. Is bluetooth range still a significant issue?
THANKS AGAIN!!!
nuprps said:
THANKS to EVERYONE for responding and clarifying the situation with USB Hosting mode on CM 10. The information saves me a lot of frustration in trying to get my Nook Color to recognize my USB devices. At least I can get USB Hosting working if I use CM7; that's an option, so thanks a lot for pointing it out. I'm a newbie and struggling to learn Android related stuff. If I had the technical know-how, I'd love to help solve the USB Host issue with CM10. For me at least, USB hosting would be a valuable feature in CM10 and beyond. I really like how well CM10 runs on my device with a SanDisk 8Gb micro SDHC card.
To get some of my devices (eg. keyboard) working on CM10, I may try the bluetooth capability in CM 10. However, I read somewhere that the range of bluetooth was limited on the Nook Color. I think that was awhile ago when developers initially unlocked bluetooth on the Nook Color. Is bluetooth range still a significant issue?
THANKS AGAIN!!!
Click to expand...
Click to collapse
There is a limited range for bluetooth, it was actually hidden in the official rom and not enabled until some developers found it out.
IF you really want USB host on a newish android version, you might want to use CM9, it still has usb host and I was able to use it a few months ago for a project. But there is limited opengl support and it might have a few minor bugs in it.
USB Host Mode with CM10
dombeef said:
There is a limited range for bluetooth, it was actually hidden in the official rom and not enabled until some developers found it out.
IF you really want USB host on a newish android version, you might want to use, it still has usb host and I was able to use it a few months ago for a project. But there is limited opengl support and it might have a few minor bugs in it.
Click to expand...
Click to collapse
Thanks for the tip about USB hosting mode and CM9. I'll download CM9 and see how it works with my Nook Color and USB peripherals.
USB Hosting with CM9?
dombeef said:
There is a limited range for bluetooth, it was actually hidden in the official rom and not enabled until some developers found it out.
IF you really want USB host on a newish android version, you might want to use, it still has usb host and I was able to use it a few months ago for a project. But there is limited opengl support and it might have a few minor bugs in it.
Click to expand...
Click to collapse
Please provide more detail about how you enabled USB hosting mode in CM9. I downloaded and installed CM9, but I can't figure out how to enable USB mode. I tried an app called "Nook Color Tweaks," but the app clearly states that it does not work with CM9. What steps did you take to get USB hosting on your device running CM9? Please clarify. Thank you!
nuprps said:
Please provide more detail about how you enabled USB hosting mode in CM9. I downloaded and installed CM9, but I can't figure out how to enable USB mode. I tried an app called "Nook Color Tweaks," but the app clearly states that it does not work with CM9. What steps did you take to get USB hosting on your device running CM9? Please clarify. Thank you!
Click to expand...
Click to collapse
I'm sorry,the app I was referring to was Nook Color Tweaks. Whoops :laugh:
A few of the options will not work on CM9 but the USB host will/should work.
I haven't used CM9 in a while now but if usb host doesn't work on the rom I linked to then you may want to use a ROM from eyeballer's unofficial CM9 nightly builds and try the latest opengl build. I had used eyeballer's rom in the past and it did work with USB host.
USB Host mode in CM11
steven676 said:
To expand on this: CM7 was based on top of an older Linux kernel version (2.6.32), on top of which a lot of hard work was done to enable USB host mode. In porting to CM9/10/10.1, we moved to a newer kernel version (3.0), and some of that work wasn't brought over. There aren't any technical barriers to enabling USB host mode on newer kernels -- someone "just" needs to spend the time to go through the patches for host mode in 2.6.32 and figure out what bits need to be forward ported to 3.0. (In case you haven't figured out yet, time is the scarcest asset in a volunteer project like this one ...)
Click to expand...
Click to collapse
I think the changes need to be made in encore_defconfig (or encore _cm11_defconfig). I can try to make the changes but these files are automatically generated in the make process. Could you point me to the configuration files where this happens? I think it must be in device/bn/encore.

Mouse for cm 12.1

Does anyone of you know how to run an mouse on samsung galaxy s3 neo with cm 12.1?
I mean on custom rom it is possible?
motionsnk said:
Does anyone of you know how to run an mouse on samsung galaxy s3 neo with cm 12.1?
I mean on custom rom it is possible?
Click to expand...
Click to collapse
Yes its possible. Connect via OTG cable or if you have a BT mouse, whell you know what to do with a BT mouse.
paulo boë said:
Yes its possible. Connect via OTG cable or if you have a BT mouse, whell you know what to do with a BT mouse.
Click to expand...
Click to collapse
Well i have a s3 neo gt i19301i and cm 12.1 but it does not read my mouse..i have otg but nothing happens :/
motionsnk said:
Well i have a s3 neo gt i19301i and cm 12.1 but it does not read my mouse..i have otg but nothing happens :/
Click to expand...
Click to collapse
Weired....
paulo boë said:
Weired....
Click to expand...
Click to collapse
I know...any ideea how can I make it work?
motionsnk said:
I know...any ideea how can I make it work?
Click to expand...
Click to collapse
Not now. I need to put my phone away. Parents....
Ok ..wish you all the best
motionsnk said:
Does anyone of you know how to run an mouse on samsung galaxy s3 neo with cm 12.1?
I mean on custom rom it is possible?
Click to expand...
Click to collapse
OTG Does not work directly on the s3 neo because the usb port doesnt have enough power, you can try to use a external powered otg cable.
Or do it like me:
There is an APP which can enable otg, required ROOT privileges, and you can use USB stuff like:
USB-Mouse, USB-Keyboard, USB-Stick(i tested 1-16GB), USB-HardDrive(ex. 500gb external usb HDD), Charge an other device/phone/Bluetoothspeaker, and so on.
App required ROOT privileges!!!!!
https://forum.xda-developers.com/galaxy-s3-neo/themes-apps/otg-enabler-t3423727 (I'am using this)
or you use: https://forum.xda-developers.com/galaxy-s3-neo/themes-apps/root-neotg-otg-enabler-t3438645 (not tested by me, just read the comments)
On the app(first link) You just install it and open it, tap the switch, allow su access, and you'll see your device getting Charged(Top left power led is glowing), and usb devices do work. If you'r done, just tap again the switch and use it normally and yes you can close/minimize the app while otg is enabled
Don't Charge your Device, i dont know what can happen so dont try it, may be nothing happens but i dont want risk my device!
Sorry for my weak english(-grammar)
PrevosHD said:
OTG Does not work directly on the s3 neo because the usb port doesnt have enough power, you can try to use a external powered otg cable.
Or do it like me:
There is an APP which can enable otg, required ROOT privileges, and you can use USB stuff like:
USB-Mouse, USB-Keyboard, USB-Stick(i tested 1-16GB), USB-HardDrive(ex. 500gb external usb HDD), Charge an other device/phone/Bluetoothspeaker, and so on.
App required ROOT privileges!!!!!
https://forum.xda-developers.com/galaxy-s3-neo/themes-apps/otg-enabler-t3423727 (I'am using this)
or you use: https://forum.xda-developers.com/galaxy-s3-neo/themes-apps/root-neotg-otg-enabler-t3438645 (not tested by me, just read the comments)
On the app(first link) You just install it and open it, tap the switch, allow su access, and you'll see your device getting Charged(Top left power led is glowing), and usb devices do work. If you'r done, just tap again the switch and use it normally and yes you can close/minimize the app while otg is enabled
Don't Charge your Device, i dont know what can happen so dont try it, may be nothing happens but i dont want risk my device!
Sorry for my weak english(-grammar)
Click to expand...
Click to collapse
No problem
Thanks for the tips :fingers-crossed:

Enabled OTG: Some Questions About...

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.

Categories

Resources