OTG support - Huawei P9 Lite Questions & Answers

Device: huawei p9 lite vns-l31 android 7 rooted using TWRP and magisk
Im trying to enable OTG support for a usb keyboard with an OTG cable
- moved (android.hardware.usb.host.xml) to (/system/etc/permissions) and verified (USB Host) using an app (USB OTG Checker)
- tried to use RevolutionOTG apk (https://forum.xda-developers.com/t/activate-otg-support.3476369/post-69049971)(spanish) and
(https://forum.xda-developers.com/t/activate-otg-support.3476369/post-69086637)(english) but it's not detecting root !
- tried running the two scripts (echo hoston > /sys/devices/ff100000.hisi_usb/plugusb) and (echo hostoff > /sys/devices/ff100000.hisi_usb/plugusb)
and then modified the directory to (/sys/devices/platform/ff100000.hisi_usb/plugusb) but again nothing happens !
- tried this (https://goo.gl/5uLcwW) (Elite OTG for huawei p9 lite) from an old post (https://forum.xda-developers.com/t/...9-lite-by-hassanmirza01.3701052/post-74423429) but the link is no longer available
- tried using (USB OTG Helper) but the app is unable to create mount directory
- Can someone help me in any direction ?

aramous said:
Device: huawei p9 lite vns-l31 android 7 rooted using TWRP and magisk
Im trying to enable OTG support for a usb keyboard with an OTG cable
- moved (android.hardware.usb.host.xml) to (/system/etc/permissions) and verified (USB Host) using an app (USB OTG Checker)
- tried to use RevolutionOTG apk (https://forum.xda-developers.com/t/activate-otg-support.3476369/post-69049971)(spanish) and
(https://forum.xda-developers.com/t/activate-otg-support.3476369/post-69086637)(english) but it's not detecting root !
- tried running the two scripts (echo hoston > /sys/devices/ff100000.hisi_usb/plugusb) and (echo hostoff > /sys/devices/ff100000.hisi_usb/plugusb)
and then modified the directory to (/sys/devices/platform/ff100000.hisi_usb/plugusb) but again nothing happens !
- tried this (https://goo.gl/5uLcwW) (Elite OTG for huawei p9 lite) from an old post (https://forum.xda-developers.com/t/...9-lite-by-hassanmirza01.3701052/post-74423429) but the link is no longer available
- tried using (USB OTG Helper) but the app is unable to create mount directory
- Can someone help me in any direction ?
Click to expand...
Click to collapse
Download Elite kernel 2.1.zip,
https://mega.nz/file/YtUgzLaB#fIo23EtM6NlgxZoxN023raDuo7GzNUiI6uJJMI8Qp28
flash it in TWRP, wipe dalvik/art cache , reboot. Backup your stock boot.img!
But if I remember correctly, OTG may not work properly with Magisk. So use SuperSu 2.7.9 or 2.8.2 (uninstall Magisk first!).

worked like a charm ! don't know how to thank you

aramous said:
worked like a charm ! don't know how to thank you
Click to expand...
Click to collapse
Not a problem.

Related

Kernel usb otg for nexus 4?

Hello,there is a kernel that support otg usb for nexus 4 with android 5.1.1?
maskedjack said:
Hello,there is a kernel that support otg usb for nexus 4 with android 5.1.1?
Click to expand...
Click to collapse
quanta
deball said:
quanta
Click to expand...
Click to collapse
Which version?
I'll join this thread - I have CM13 (~5 days old build) and TaUrUs kernel - OTG doesn't work.
From hardware perspective is everything ok - I have an "y" cable and TWRP can mount my USB-flashdisk. But OS cannot see my dongle.
What wrong I'm doing?
maskedjack said:
Which version?
Click to expand...
Click to collapse
Quanta-V10-Mako.zip
deball said:
Quanta-V10-Mako.zip
Click to expand...
Click to collapse
It's ok if i have the original ROM?
deball said:
Quanta-V10-Mako.zip
Click to expand...
Click to collapse
I have this kernel and I saw that option "OTG Hack" in the Quanta Tweaks app.
Can you tell me what do I need in order to mount an USB flash? I know about the special otg cable, but do I need something more? How can I properly open a movie, for example, and play it on the phone from the USB stick? (I guess you know these, because you replied to the man )
Thank you!
I have CallMeAldy kernel, does otg-usb support ? My otg-usb doesn't have y cable for power input
maskedjack said:
Hello,there is a kernel that support otg usb for nexus 4 with android 5.1.1?
Click to expand...
Click to collapse
active of OTG-USB on android 5.x.x (lollipop) and nexus 4 by Quanta-V10-Mako.zip :
reboot system and go to recovery mode and
1.install Quanta-V10-Mako.zip (by recovery mode/ wipe cache and dalvik )
2.install Universal Kernel Manager v3.8.1 zip (by recovery mode)
then reboot system and
3.install BusyBox apk
4.install Synapse apk ( open synapse app and active usb otg by MISC menu )
5.install StickMount apk ( open app and mount usb and go /sdcard/usbStorage/.... )

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

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.

[FIX] USB OTG Not working in CyanogenMod Roms for HTC Desite 816G (mt6592)

I've found an app to fix Usb otg not mounting issue in CM roms !
Download StickMount from Playstore :-
StickMount :-
https://play.google.com/store/apps/details?id=eu.chainfire.stickmount
StickMount Pro :-
https://play.google.com/store/apps/details?id=eu.chainfire.stickmount.pro
no change
I have flyme os and tried with root explorer and mixplorer too. Says mounted but USB otg tab is not shown. Es file explorer shows the option but I don't wanna use ea. I installed stickmount too but again not shown. How can I fix it

OTG *NOT* working in TWRP and also inside OS [Oneplus 5]

My OTG was working fine on my device before. But from some time I am not able to mount OTG (I did change ROM's in between). OTG is not detected in TWRP (I'm using this TWRP ) nor it is detected inside the OS.
Has anyone faced this before? Can anyone help me with it.
PS. I have included the android.hardware.usb.host.xml file. My device didn't have the file tablet_core_hardware.xml or handheld_core_hardware.xml .
But I manually added those files. Still with no luck.

Categories

Resources