USB OTG and charging at the same time (ACA mode) with LineageOS? - Xiaomi Mi A1 Questions & Answers

Does LineageOS support ACA mode, i.e. simultaneously charging the phone and using OTG devices via an ACA enabled USB OTG hub?
This adapter works well with Samsung Fold2 and Note10. It is possible activate ACA
Tried compile kernel with
Code:
#
# USB Power Delivery
#
CONFIG_USB_PD=y
nothing helped.
Found it POWER_SUPPLY_TYPE_USB_ACA how to activate it or check is it working?

Related

[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

USB OTG

Help needed! I've a kernel that supports USB otg # Matr1x # & the necessary lead, with external power. How do I get it up and running? Thx
Sent by reversed alian technology.

[Q] RT2800 USB vs Monitor Mode

Hi,
I have just picked up a Note 3 on Three UK.
Am I right in assuming that the wireless chipset BCM4339 which is the same as on the Nexus 5 is still not able to use bcmon mode to allow us to enable monitor mode?
Would a specific ROM be necessary to allow a TP-Link WN722n (RT2800usb) to work on OTG cable?
I have tried both bcmon on my note 3 and also my TP-Link via USB OTG cable and neither have had any results.
Thanks
Toby
I've installed USB Host Check to confirm that USB host support is enabled on my note 3.
(android.hardware.usb.host.xml OK)
(handheld_core_hardware.xml OK)
I then installed USB Host Controller.
Both devices recognised but obviously not working. (Atheros USB 2.0 WLAN for TP-WN772n) and (ASIX Elec Corp AX88x72A) for USB ethernet.
When I run USB Host Controller I get the following error message:
"s3c usb host driver not found".
Another member on XDA posted a link to the Halaszk Kernel on the N9000 apparantly having OTG USB host support for S3C
(Original post http://forum.xda-developers.com/showthread.php?t=2599045)
Halaszk Kernel for the N9000
http://forum.xda-developers.com/showthread.php?t=2590320
Toby
I'm still hitting a brick wall on this one search wise.
Would stil love to be able to use my WN722N on my Note 3.
Has anyone any experience in modifying the Kernel Module to allow the ath9k to work on Note 3?
Getting a wireless adapter to work on Ubuntu or any form of Linux can be difficult if the manufacturer doesn't provide direct driver support or at the very least a "Tar" which would allow an end user (with sufficient skill) to compile the drivers them self. My understanding of this is limited but from what I can remember Android is JavaScript VM running on a Linux kernel. So you need the Linux source code for the driver which usually comes in a "Tar". Feel free to correct me if I am wrong.

usb host / otg work with d800 and CM 10.2?

hi, I have a lg g2 d800 (att) with CM 10.2. I'm thinking of buying a otg micro usb cable: http://www.amazon.com/gp/product/B00KILQLKE/ref=gno_cart_title_0?ie=UTF8&psc=1&smid=ATVPDKIKX0DER
does anyone know if it will work? i'll be connecting a garmin edge 500 to get files off of.
edit: I installed a app called usb host check. it says:
android.hardware.usb.host.xml
Not found
handheld_core_hardware.xml
USB host not enabled
tablet_core_hardware.xml
Not found
it says "usb host support is not enabled. a fix attempt can be performed."
EDIT2: just a update. it works. I got the cable I linked from amazon. and I didn't use usb host check to perform a fix.

[Android 9] OTG Charging on Krieg Kernel

Has anybody successfully charged the OP5 (the phone, not external devices) while using OTG? This is supposed to be possible based on the Krieg Kernel description (see "OTG power supply support"). It doesn't work for me using a USB-C (male) to HDMI/USB-A/USB-C (female) adapter like this. Is there something that needs to be done to enable the charging while using OTG?

Categories

Resources