TWRP 4pda usb problem? - Xiaomi Mi A2 / 6X Questions & Answers

The USB Host API is not working.
When inside OS:
USB Options don't work ( I got drivers installed)
USB C to 3.5mm Headphone Jack don't work(The jack is fine)
OTG don't work.
USB C port isn't giving any power to portable USB Lights too (Tested with OTG)
Tested On Both Havoc OS 3.6 and Pixel Experience Fan Edition
I have cleaned my USB C port, It's fine and working in TWRP Recovery, I can transfer files
So here it's no issue of my data cable or charging port.
It's totally a software issue.
Any solution or suggestion to fix this USB problem in the kernel?

Why "TWRP 4pda" in the topic title? Description mentions problems in Havoc and PE?

Related

Incredible S kernel with USB host mode support

Guys, i've made a incredible s kernel which with USB host mode (OTG) support
It's based on XSKernel, so this kernel contains 1.8Ghz overclocking support, thanks to l0st.prophet very much !!!
I merged usb host mode patch from here:
http://sven.killig.de/android/N1/2.2/usb_host/
and made some bug fix and improvment for incredible s.
I test this kernel only on Froyo rom, i'm not sure whether this also works fine on gingerbread rom.. ^_^
It's not very perfect, while this is current status in my testing environment:
pros:
--------------------------------------
USB keyboard : works fine
USB mouse : works fine
USB printer : works fine
USB ethernet card : works fine
wifi : works ok
GPS : works ok
bluetooth : works ok
FM : works ok
USB charging and AC charging : works ok
cons:
--------------------------------------
usb device mode functions are disabled, like adb, usb tether ...
If I use USB flash disk / USB CDROM with usb host mode enabled,
Incredible S hangs (they use the same usb-storage driver)
I have no idea whether it's relative to my Incredible S phone, so it would be appreciated if you would like to try to use usb storage device ^_^
--------------------------------------
I've post a usb host mode patch and config file here:
vivo-usb-host.patch.zip
usb-host.config.zip
the patch seems to be a little big, cause i upgrade asix usb ethernet card driver, the original version doesn't works fine, enjoy it ~~~ ^_^
=====================================================
prerequisites:
1. a rooted S-OFF incredible S phone (of course )
2. a self-powered usb 2.0 hub (must always has self-power)
3. A micro USB B male to USB A female adapter/cable
(a USB female to female adapter and a micro USB cable also works ^_^)
steps:
1. use attached PG32IMG.zip to update IS kernel in fastboot
copy PG32IMG.zip to the root directory of sdcard, in fastboot mode,
you can just update it
2. unzip modules.zip, use RootExplorer or other tools to copy all *.ko module
files to:
/system/lib/modules
3. power up IS phone, connect IS phone to USB hub's upstream port,
connect some usb devices, connect usb hub's power, wait for the charging
LED lights
4. wait about 10 seconds, open a terminal emulator, load kernel modules:
Code:
cd /system/lib/modules
insmod usbcore.ko
insmod ehci-hcd.ko
# use USB input device
insmod usbhid.ko
# use USB printer device
insmod usblp.ko
# use USB ethernet card device
insmod mii.ko
insmod usbnet.ko
insmod asix.ko
# use USB mass storage device (flash disk and so on)
# this may cause IS phone hang, it's on your own...
insmod usb-storage.ko
There is a picture shows USB keyboard works fine in my IS phone, lol ~~
If usb mass storage device works fine or any other usb device doesn't works fine in your phone,
you can just post "dmesg" output here, thank you ~~~
That is pretty cool, nicely done! Can't try it out as I'm stuck with S-ON for now but it's a great idea and I hope you find time to develop it further and iron out the bugs.
does the camera and youtube works?
vontdeux said:
does the camera and youtube works?
Click to expand...
Click to collapse
Yep, camera works fine, wifi works fine, now adb functions are disabled
usb host mode functions almost works perfect
Are you sure camera and video works, cause the sources are for froyo and that breaks video on gb roms. If you've fixed it I'd love to know how cause its broken in XSKernel until HTC release the gb sources.
BTW, you need to post your sources for a kernel as it OS distributed under GPL, or the mods will have to take it down till you do, just a friendly warning.
Sent from my HTC Incredible S using Tapatalk
l0st.prophet said:
Are you sure camera and video works, cause the sources are for froyo and that breaks video on gb roms. If you've fixed it I'd love to know how cause its broken in XSKernel until HTC release the gb sources.
BTW, you need to post your sources for a kernel as it OS distributed under GPL, or the mods will have to take it down till you do, just a friendly warning.
Sent from my HTC Incredible S using Tapatalk
Click to expand...
Click to collapse
I test this kernel only on Froyo rom, camera and video works, i'm not sure whether this also works fine on gingerbread rom.. ^_^
And as you said, the kernel source is GPL licensed, i will post a patch which based on the HTC's released froyo source code - based on XSKernel may be much easier, lol ~~~
Ah fair enough, yes it works fine on Froyo, break on GB
Damn HTC... releasing 2.2 sources only.
arghh.. i was this close to try and flash it...
zzz HTC...cmon..update this!! release it for GB!! we need it badly...
Please help me with this I am interested not sleep for days I could not do a kind of sorry about my English bad typographical error would translate what I wrote might be.
I can not open kernel hangs after installing the rom does not turn on my phone several times but the recovery mode, open the CM7 I installed the new rom rom installed installed installed the old rom in the same results, please Can you give me a link to a rom that you can run with this kernel is running, or if you have a friend, if possible, upload a backup of full recovery can? Incredible S, but I can not make my phone .. please help I can not sleep anymore I put my head Thank you for your interest in advance.
Great! now how can we turn adb and usb tether back on?
Is there any way we can enable USB host mode on ICS
bhushangahire said:
Is there any way we can enable USB host mode on ICS
Click to expand...
Click to collapse
Check this thread by lost prophet. His kernel will include USB OTG and two way call recording in near future. Just check this thread often.
http://forum.xda-developers.com/showthread.php?t=1851121
Sent from my HTC Incredible S using xda app-developers app
Cyb0rgz said:
Check this thread by lost prophet. His kernel will include USB OTG and two way call recording in near future. Just check this thread often.
http://forum.xda-developers.com/showthread.php?t=1851121
Sent from my HTC Incredible S using xda app-developers app
Click to expand...
Click to collapse
Not working...
Cyb0rgz said:
Check this thread by lost prophet. His kernel will include USB OTG and two way call recording in near future.
Just check this thread often.
http://forum.xda-developers.com/showthread.php?t=1851121
Sent from my HTC Incredible S using xda app-developers app
Click to expand...
Click to collapse
bhushangahire said:
Not working...
Click to expand...
Click to collapse
Read carefully. It will be supported in a new version so keep checking the OP for updates.
qexing said:
Guys, i've made a incredible s kernel which with USB host mode (OTG) support
It's based on XSKernel, so this kernel contains 1.8Ghz overclocking support, thanks to l0st.prophet very much !!!
I merged usb host mode patch from here:
http://sven.killig.de/android/N1/2.2/usb_host/
and made some bug fix and improvment for incredible s.
I test this kernel only on Froyo rom, i'm not sure whether this also works fine on gingerbread rom.. ^_^
It's not very perfect, while this is current status in my testing environment:
pros:
--------------------------------------
USB keyboard : works fine
USB mouse : works fine
USB printer : works fine
USB ethernet card : works fine
wifi : works ok
GPS : works ok
bluetooth : works ok
FM : works ok
USB charging and AC charging : works ok
cons:
--------------------------------------
usb device mode functions are disabled, like adb, usb tether ...
If I use USB flash disk / USB CDROM with usb host mode enabled,
Incredible S hangs (they use the same usb-storage driver)
I have no idea whether it's relative to my Incredible S phone, so it would be appreciated if you would like to try to use usb storage device ^_^
--------------------------------------
I've post a usb host mode patch and config file here:
vivo-usb-host.patch.zip
usb-host.config.zip
the patch seems to be a little big, cause i upgrade asix usb ethernet card driver, the original version doesn't works fine, enjoy it ~~~ ^_^
=====================================================
prerequisites:
1. a rooted S-OFF incredible S phone (of course )
2. a self-powered usb 2.0 hub (must always has self-power)
3. A micro USB B male to USB A female adapter/cable
(a USB female to female adapter and a micro USB cable also works ^_^)
steps:
1. use attached PG32IMG.zip to update IS kernel in fastboot
copy PG32IMG.zip to the root directory of sdcard, in fastboot mode,
you can just update it
2. unzip modules.zip, use RootExplorer or other tools to copy all *.ko module
files to:
/system/lib/modules
3. power up IS phone, connect IS phone to USB hub's upstream port,
connect some usb devices, connect usb hub's power, wait for the charging
LED lights
4. wait about 10 seconds, open a terminal emulator, load kernel modules:
Code:
cd /system/lib/modules
insmod usbcore.ko
insmod ehci-hcd.ko
# use USB input device
insmod usbhid.ko
# use USB printer device
insmod usblp.ko
# use USB ethernet card device
insmod mii.ko
insmod usbnet.ko
insmod asix.ko
# use USB mass storage device (flash disk and so on)
# this may cause IS phone hang, it's on your own...
insmod usb-storage.ko
There is a picture shows USB keyboard works fine in my IS phone, lol ~~
If usb mass storage device works fine or any other usb device doesn't works fine in your phone,
you can just post "dmesg" output here, thank you ~~~
Click to expand...
Click to collapse
Hi,
As now HTC kernel source code is released can you please make USB host mode working with the latest code.
Or can you please help me out with what changes needs to be done or any pointers to work on it.
I really wanted USB host mode for incredible S.
Thanks
bhushangahire said:
Hi,
As now HTC kernel source code is released can you please make USB host mode working with the latest code.
Or can you please help me out with what changes needs to be done or any pointers to work on it.
I really wanted USB host mode for incredible S.
Thanks
Click to expand...
Click to collapse
As said earlier, it will be launched in near future. It takes some time for dev to made it possible. Added to that, It's already listed in future plan by lost prophet in his op. Be patient, surely you will get it
When I update PG32IMG.zip , after reboot my phone stuck on HTC Logo , and I have to re-flash with another boot.img
my rom is nik project x
is there anyway to use OTG USB on incredible s please?
it's very important to me,
thnx

[SOLVED] Fastboot using only USB 3.0 ports

I've got a machine running Windows 7 (x64) that has only a couple of USB 3.0 ports.
ADB and Fastboot drivers from Flashtool are installed, and ADB works fine.
Fastboot, however, does not. Pressing VOL UP while connecting to the PC doesn't do anything, and the phone just starts charging. The last time I faced this problem (on a different m/c), I just switched to a USB 2.0 port. Can't do that anymore.
Is there a solution or workaround for this issue? The USB 3.0 drivers are by Intel, not Microsoft.
Just found this solution.
Go to BIOS > Advanced > USB > XHCI and change the setting to Disabled.
This will make the ports run in USB 2 mode, and fastboot works as usual.
Ritwyk said:
Just found this solution.
Go to BIOS > Advanced > USB > XHCI and change the setting to Disabled.
This will make the ports run in USB 2 mode, and fastboot works as usual.
Click to expand...
Click to collapse
Its 2020 right now and laptops are having only usb 3.0 or 3..1 ports and their bios don't have the xHCI mode so we can't enable usb 2.0 from the bios so we can't do the basic fastboot command to flash TWRP
so further testing is not possible in new mobile and we can't have usb 2.0 all the time so there must be some solution for this.
:good::good:
sbbhk said:
Its 2020 right now and laptops are having only usb 3.0 or 3..1 ports and their bios don't have the xHCI mode so we can't enable usb 2.0 from the bios so we can't do the basic fastboot command to flash TWRP
so further testing is not possible in new mobile and we can't have usb 2.0 all the time so there must be some solution for this.
:good::good:
Click to expand...
Click to collapse
You could try using a cheap USB 2.0 hub if nothing else works for you.

OTG - Not working

I've tested several dongles and adapters on stock ROMs x520 and x526 and nothing...
Ir really seems that the OTG function is disabled.
I've made some tests and althou the OTG function is detected there's no OTG signal detected.
Did this happend to anybody else?
Is there any way to enable the OTG?
================ EDIT ==============
Well...
The aftermath is that i had 2 f*cked adapters... Tested with a friend's otg adapter and... Voilá it works...
Also, must never uninstall or delete the stock file manager...

(ZE620KL) USB isn't recognized after update

I updated my Zenfone 5 (ZE620KL) to version: "Image: WW_V16.0615.1912.115". Since then, it doesn't recognize USB for file transfer (not even fastboot or adb). All USB drivers are installed on the computer, but the option to transfer files from the USB menu cannot be selected. Also, I noticed that Fast Charging is not working (just regular slow charging).
Yep, I can confirm that!
Does anybody know how to solve this?

Mtp OTG doesn't work

Hi ! I don't know why but I want to connect my Pixel 4a 5G Yesterday on my mac and today on Pc the pixel is not recognized.
I have uncheck usb debuging and check it again but not working.
My Pixel are on last Android 12 and root with magisk. it is possible that a mode can create a problem with the OTG ?
I have test on Safe mod doesn't work too
I have connect an usb type c usb key it recognize.
I have test connect on plateform tools and on terminal ./adb devices, have message on pixel to allow my computer and it recognize but not Android File transfert ?
I think stay the new update and see if I can update it !?
I don't understand why ?
Thanks
Hi ! I post again because when I connect usb key mtp works and if I connect to my mac and go to settings usb parameters and choose transfert files/Android auto that work but never had notification pop-up for choose it
USB is a master/slave protocol. When you plug in an otg cable, your phone's USB controller switches into host mode. Your computer's USB is always in host mode. So your effectively trying to get two master devices to communicate which USB does not support.

Categories

Resources