Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
2
votes
1
answers
5019
views
Force USB Host Mode
I am trying to use an USB-serial device that has USB-A connector via USB OTG. How do I "force USB host mode" so I can use USB-A to USB-C cable instead of using OTG adapter? OTG works fine with other devices such as sd-card to type c adapter Rooted Pixel 1 with Android 10
I am trying to use an USB-serial device that has USB-A connector via USB OTG.
How do I "force USB host mode" so I can use USB-A to USB-C cable instead of using OTG adapter?
OTG works fine with other devices such as sd-card to type c adapter
Rooted Pixel 1 with Android 10
Phalelashvili
(21 rep)
Apr 11, 2020, 12:32 PM
• Last activity: Dec 20, 2024, 03:00 PM
1
votes
1
answers
3087
views
Share Android cell phone network connection over USB OTG to Wifi Android tablet
How do I share my cell phone's network connection with a Wifi tablet? Specifically I'm using a Samsung Galaxy S6 and a Nexus 7. I bought a USB OTG cable. Which end do I plug the USB into, and which end do I plug the micro USB into? How do I share my cell phone connection with the Nexus 7? I didn't s...
How do I share my cell phone's network connection with a Wifi tablet? Specifically I'm using a Samsung Galaxy S6 and a Nexus 7.
I bought a USB OTG cable. Which end do I plug the USB into, and which end do I plug the micro USB into?
How do I share my cell phone connection with the Nexus 7? I didn't see a USB setting in either direction for sharing the connection.
Is rooting required?
Hoppe
(123 rep)
Jun 30, 2015, 08:43 PM
• Last activity: Sep 4, 2024, 10:04 PM
2
votes
0
answers
781
views
Access denied on external storage: application not found
I purchased an Android car head unit (K4811) and I cannot access a USB storage device that I plug in (32 GB, FAT32 or exFAT). I think that this comes from the absence of a program allowing elevation of rights, because by downloading FileManager+, when I select the USB key, I obtain this message: [





deltonio2
(121 rep)
Jan 9, 2024, 10:42 AM
• Last activity: Jul 1, 2024, 01:01 PM
1
votes
0
answers
198
views
How to Plug and Play a USB Barcode-Printer in android devices
We are trying to print Barcode using USB Barcode Printer from an android device. The available printer model is GODEX EZ520, we used printer-share app from Playstore and it detected the printer-device but they do not have supporting drivers for this printer. Do we need to write separate drivers for...
We are trying to print Barcode using USB Barcode Printer from an android device.
The available printer model is GODEX EZ520, we used printer-share app from Playstore and it detected the printer-device but they do not have supporting drivers for this printer.
Do we need to write separate drivers for printers to print from android or Is there any other ways to connect android device and Barcode Printers via usb.
Umesh D
(11 rep)
Sep 30, 2015, 03:09 PM
• Last activity: Sep 19, 2022, 09:40 AM
0
votes
1
answers
1247
views
Unlocking Droid XT912 with a Fully Broken Screen/Digitizer
I am trying to pull data off a Droid Razr XT912 with a broken digitizer and screen from last summer which has been under pattern lock since then. I purchased a Micro-to-HDMI cable, which successfully displays the phone's unlock screen on my TV. I also purchased a Mini-to-USB cord so I could enter th...
I am trying to pull data off a Droid Razr XT912 with a broken digitizer and screen from last summer which has been under pattern lock since then. I purchased a Micro-to-HDMI cable, which successfully displays the phone's unlock screen on my TV. I also purchased a Mini-to-USB cord so I could enter the pattern on the screen with a USB mouse. The phone, however, is not recognizing the mouse, regardless of whether it is wired or wireless.
Interestingly, plugging the Mini-to-USB into my XT907 which I got to replace the old phone makes the mouse boot right up, even though that phone has its own pattern lock.
I'm completely lost as to why the newer model cannot recognize the device when the older one can. My only guesses are as follows:
1. The operating platform has been updated since last year to support the USB mouse connection. The XT907, having been in operation until April 2014, would have received the update while the XT912 was locked with no SIM since August 2013.
2. The phone does not support a simultaneous connection to the HDMI (via Micro) and the USB Mouse (via Mini).
3. The phone does not supply adequate power to the mouse.
Any thoughts on how I might solve this riddle? If #3 is the culprit, does anyone know which adapter do I need to supply external power to a USB mouse in "on-the-go" mode? Last, is this a fool's errand and should I just ante up for a new digitizer?
Thank you in advance!
Joe
(1 rep)
Aug 22, 2014, 06:22 PM
• Last activity: Mar 14, 2022, 09:01 PM
1
votes
1
answers
1873
views
Enabling Android as USB host on Galaxy Nexus or Nexus 10
I'm trying to develop applications that talk to USB devices, but nothing works. I installed a USB Host Diagnostics app, and it tells me that there's no OS support for device detection on the Galaxy Nexus or the Nexus 10. I'm running Android 4.2 on both. I tried the AdbTest sample application, but th...
I'm trying to develop applications that talk to USB devices, but nothing works. I installed a USB Host Diagnostics app, and it tells me that there's no OS support for device detection on the Galaxy Nexus or the Nexus 10. I'm running Android 4.2 on both.
I tried the AdbTest sample application, but that doesn't respond when I connect the devices together. I tried updating the files in
/system/etc/permissions
as discussed [here](https://stackoverflow.com/questions/11183792/android-usb-host-and-hidden-devices) , but that doesn't do anything.
Can anyone get USB device detection to work on these devices? Thanks!
user934904
(111 rep)
Jan 6, 2013, 09:49 PM
• Last activity: Mar 5, 2022, 10:00 AM
2
votes
2
answers
15632
views
Connecting a HDE keyboard to a Kindle Fire
I brought a HDE keyboard: >Connects to your 7" tablet via USB 2.0 A-Type Male Adapter. Please make sure your tablet has a USB Type A Female to accept this plug type. Also, your device must have a USB host in order for the keyboard to function. Please consult the manufacturer of your tablet for those...
I brought a HDE keyboard:
>Connects to your 7" tablet via USB 2.0 A-Type Male Adapter. Please make sure your tablet has a USB Type A Female to accept this plug type. Also, your device must have a USB host in order for the keyboard to function. Please consult the manufacturer of your tablet for those details.
for my Kindle Fire 1st Generation. I got the adapter to connect the A female to USB micro on the Kindle. Of course I didn't read all the through on this one, because I now need to have a host USB connection in order for the keyboard to work with the Kindle.
Any advice or do I have to ditch the keyboard and mark it as a bad deal?
Roxi Cotton
Jan 20, 2013, 02:50 PM
• Last activity: Feb 15, 2022, 04:41 PM
1
votes
2
answers
2116
views
USB to ethernet not working on Samsung Galaxy S
I have Samsung Galaxy S Blaze with the following specs - Samsung Galaxy S Blaze 4G SGH-T769 - Android version = 4.0.4 - Baseband version = T769UVMB1 - Kernel version = 3.0.8-perf-T769ULVH5-CL990184 - Model Number = SGH-T769 I am following [this thread on XDA](http://forum.xda-developers.com/google-n...
I have Samsung Galaxy S Blaze with the following specs
- Samsung Galaxy S Blaze 4G SGH-T769
- Android version = 4.0.4
- Baseband version = T769UVMB1
- Kernel version = 3.0.8-perf-T769ULVH5-CL990184
- Model Number = SGH-T769
I am following [this thread on XDA](http://forum.xda-developers.com/google-nexus-5/general/result-usb-otg-ethernet-t2509382) as I had the same problem reported on page 4.
I am using AX88772 compatible USB to Ethernet adapter (pluggable USB 2.0) and have successfully compiled drivers for Android ICS. I have also put the
asix.ko
into /system/lib/modules
directory and loaded it with insmod
.
I have connected the Samsung phone with Inateck USB 3.0 four-port hub where I have also connected pluggable USB 2.0 ethernet adapter. But the ethernet is not working:
root@hammerhead:/ # netcfg eth0 up
netcfg eth0 up
action 'up' failed (No such device)
1|root@hammerhead:/ # netcfg
netcfg
rev_rmnet8 DOWN 0.0.0.0/0 0x00001002 72:21:40:52:3e:20
rev_rmnet4 DOWN 0.0.0.0/0 0x00001002 9e:5b:78:bd:4b:89
rev_rmnet2 DOWN 0.0.0.0/0 0x00001002 a6:e7:62:d2:fc:c5
rev_rmnet3 DOWN 0.0.0.0/0 0x00001002 8e:9d:a8:c7:cc:94
rev_rmnet7 DOWN 0.0.0.0/0 0x00001002 ea:82:2f:72:9d:fc
rev_rmnet5 DOWN 0.0.0.0/0 0x00001002 82:db:fe:b7:a9:1d
rev_rmnet6 DOWN 0.0.0.0/0 0x00001002 be:db:eb:ab:b3:17
rev_rmnet1 DOWN 0.0.0.0/0 0x00001002 ae:87:e2:c4:c8:4e
rev_rmnet0 DOWN 0.0.0.0/0 0x00001002 4a:49:58:b0:1d:e4
rmnet4 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet2 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet3 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet7 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet5 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet6 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet1 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet0 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
p2p0 DOWN 0.0.0.0/0 0x00001002 8e:3a:e3:4c:21:28\
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00\
wlan0 DOWN 0.0.0.0/0 0x00001002 8c:3a:e3:4c:21:28
root@hammerhead:/ # ifconfig eth0
ifconfig eth0
eth0: No such device
There is no mention of OTG driver and USB host driver. Are they installed by default? How do I check if I have these installed? Or, are they not needed?
user2979872
(143 rep)
Dec 31, 2014, 08:04 PM
• Last activity: Jan 21, 2022, 02:33 PM
1
votes
1
answers
10891
views
Successfully activated USB host mode using terminal emulator; now mass storage won't work
I have a Huawei u8160 running Cyanogenmod 7.2 . I've recently been digging into USB host mode and I finally activated it. However when I connect my phone to the PC it doesn't give me a notification about "USB connected". It only charges the phone (that means it's connected). ---------- How I activat...
I have a Huawei u8160 running Cyanogenmod 7.2 .
I've recently been digging into USB host mode and I finally activated it. However when I connect my phone to the PC it doesn't give me a notification about "USB connected". It only charges the phone (that means it's connected).
----------
How I activate USB host mode :
su
insmod /system/lib/modules/ehci-hcd.ko
or by using Module Loader App .
----------
How I tried to deactivate USB host mode (which failed):
su
rmmod ehci_hcd
and when I list the mods using
lsmod
it returns that ehci_hcd mod isn't there
My question here is how can I deactivate the mode in a way that USB Mass Storage would work?
----------
**NOTE:** I saw USB Mass Storage Not Working question and it doesn't work.
Mohamed Essam
(734 rep)
Sep 13, 2012, 07:45 PM
• Last activity: Jan 26, 2021, 02:23 AM
0
votes
2
answers
3658
views
Suppress "autoplay" when external USB drive connected
On some phones, when an external USB drive is connected to the phone, there is sort of an autoplay function where it automatically brings up the "My Files" screen. Is there a way to suppress this? This occurs on my Note 2 with Android version 4.1.2, but not on my Note 1 with version 4.0.4. Just to b...
On some phones, when an external USB drive is connected to the phone, there is sort of an autoplay function where it automatically brings up the "My Files" screen. Is there a way to suppress this?
This occurs on my Note 2 with Android version 4.1.2, but not on my Note 1 with version 4.0.4. Just to be clear, I want the drive to automatically mount in the background as usual, but just not bring up the "My Files" screen. I have an app that expects a USB drive to be plugged in and searches for specific file types and this behavior is annoying because it takes the screen away from my app.
andreiscv
(11 rep)
Oct 15, 2013, 11:49 PM
• Last activity: Oct 16, 2020, 04:08 PM
14
votes
2
answers
35691
views
Using an OTG cable while charging
Most Android devices have a single port for both connecting to the computer (USB) and charging. I have to use this OTG small cable to transfer data, but also to use a real keyboard. However, when I connect the keyboard, I cannot recharge my device while I work. Since they both use the same port, is...
Most Android devices have a single port for both connecting to the computer (USB) and charging. I have to use this OTG small cable to transfer data, but also to use a real keyboard. However, when I connect the keyboard, I cannot recharge my device while I work. Since they both use the same port, is there a way to split an OTG cable to introduce power on it, but keep the existing port so I can connect a keyboard ?
jfmessier
(475 rep)
Nov 27, 2012, 07:31 PM
• Last activity: Sep 20, 2020, 11:50 AM
5
votes
4
answers
15431
views
SD card readers don't work via USB OTG but USB thumb drives do, any ideas?
I have a Huawei Ascend G6 LTE (G6-L22) and bought a little USB OTG cable so I could read full sized SD cards while out and about. Only, it doesn't work, on either of the SD card readers I've tried - both of them small USB2 based readers. When I plug in USB thumb drives to the adapter, they work fine...
I have a Huawei Ascend G6 LTE (G6-L22) and bought a little USB OTG cable so I could read full sized SD cards while out and about.
Only, it doesn't work, on either of the SD card readers I've tried - both of them small USB2 based readers.
When I plug in USB thumb drives to the adapter, they work fine and I can browse files and photos. But no go on the card readers.
What will happen is the phone either doesn't see the drive at all, or it sees it momentarily then it disappears with a "your SD card was disconnected" notification. The LED on the card reader lights up when you first plug it in, but then goes into a fast blinking pattern which seems to indicate a problem.
Any ideas? I wouldn't have thought an SD card reader would exceed the normal power supplied via USB OTG ports, and its LED lights up. Could the phone just not have a driver that supports card readers?
Edit: the filesystem on the SD card was FAT32, as it was a 16GB card I use in my DSLR. I use the stock ROM but am rooted.
thomasrutter
(156 rep)
Jan 5, 2015, 01:39 AM
• Last activity: May 4, 2020, 10:40 AM
1
votes
1
answers
11953
views
How to read ext4 filesystem without mounting on a non-rooted device?
I perfectly know it is not possible to mount an `ext4` partition from a USB key without root. But in my case, I just need to read a password inside a `.txt` file (I don't have a PC right now and in the following weeks). **This doesn t requires mounting it**. I know there's a [Paragon plugin][1] whic...
I perfectly know it is not possible to mount an
ext4
partition from a USB key without root.
But in my case, I just need to read a password inside a .txt
file (I don't have a PC right now and in the following weeks). **This doesn t requires mounting it**.
I know there's a Paragon plugin which allows acessing NTFS partitions without root inside Total Commander but it only works on exFAT and NTFS filesystems. But it proves it should be possible to do the same thing on ext4
without root.
So how to access my password right now without being able to root my device?
user2284570
(501 rep)
Dec 17, 2019, 12:05 PM
• Last activity: Jan 4, 2020, 12:36 AM
1
votes
0
answers
1207
views
Accessing a USB device in phone in absence of compatible drivers / modules
My android device has an MTK6797 Soc(Xiaomi Redmi note 4x mtk version), and the company never released the kernel source, now I want to connect a USB device through OTG and control it from a chrooted Linux environment inside android, the problem is that the precompiled kernel that ships with the and...
My android device has an MTK6797 Soc(Xiaomi Redmi note 4x mtk version), and the company never released the kernel source, now I want to connect a USB device through OTG and control it from a chrooted Linux environment inside android, the problem is that the precompiled kernel that ships with the android device doesn't include the driver for the USB device, the kernel also has
CONFIG_MODULES
disabled so I can't compile the driver as a module and load it to the kernel, so now my only option is to run a completely emulated Linux VM(kernel and userspace) inside android and connect the USB device to the VM and load the required module from there(just like you would do on a PC with something like Virtual Box).
The problem is that I can't find an arm emulator that runs on android, I found Limbo PC emulator which is based on Qemu but it emulates X86 and not arm, running an X86 VM inside Limbo PC is very slow so I instead I want to run Arm VM hopefully that would provide a bit of performance push compared to emulating X86.
I can't seem to find any thing that can emulate Arm inside android, Qemu is an open source project so It's hard to imagine that no one ever though of running Qemu arm emulator inside Android.
Regards
MOHAMMAD RASIM
(171 rep)
Mar 29, 2019, 11:36 AM
• Last activity: Sep 9, 2019, 04:53 PM
0
votes
0
answers
664
views
Connect Android to OTG cable and PC
**TLDR:** I'm wondering if it's possible to connect a android device to a device(lets say usb flash drive) while staying connected to the computer. I'm developing a app that requires a ftdi chip to be connected to my device via USB. I connected a OTG cable and everything works just fine. The problem...
**TLDR:** I'm wondering if it's possible to connect a android device to a device(lets say usb flash drive) while staying connected to the computer.
I'm developing a app that requires a ftdi chip to be connected to my device via USB. I connected a OTG cable and everything works just fine. The problem is that I want to do some debugging(i use android studio) and i need the PC connected to the tablet at the same time.
I tried multiple ways to connect to a adapter using a otg cable and normal cable
At this point i'm wondering if it's even possible to do that.
qwertyAndroid
(1 rep)
Jul 31, 2019, 08:35 AM
3
votes
4
answers
6027
views
Can I use an USB Ethernet adapter to connect Sony Ericsson Xperia Active to a wired Ethernet LAN?
Due to my profession I have to connect to wired-only LAN-attached devices (like managed switches, routers set-top-boxes, etc.) frequently to access their configuration interfaces via Telnet/SSH/HTTP. I am totally tired of carrying a bag with a laptop with me wherever I go. Now I am planning to buy a...
Due to my profession I have to connect to wired-only LAN-attached devices (like managed switches, routers set-top-boxes, etc.) frequently to access their configuration interfaces via Telnet/SSH/HTTP. I am totally tired of carrying a bag with a laptop with me wherever I go.
Now I am planning to buy an Android smartphone and feel like I'd like it to be Sony Ericsson Xperia Active which is pretty tough (I need it very much as my phones fall from my hands/table/pocket hundreds times a year), reasonably robust and stylish.
It would simplify my life significantly if I could connect it to wired Ethernet networks.
Is this possible?
I don't mind using a hack or a custom firmware like Cyanogen Mod. I've already got a USB NIC based on ASIX AX88772 chip (which is detected by Ubuntu out of the box and, AFAIK, is also compatible with XBox, PS3 and Apple Macs).
Ivan
(683 rep)
Feb 23, 2013, 08:39 PM
• Last activity: Mar 23, 2019, 06:50 PM
2
votes
0
answers
455
views
How to prevent external USB HID devices enable without confirmation
Android support USB HID devices like keyboard and mouse. If you have a USB-C keyboard, or connect via a USB hub. The USB keyboard will have control to the system, without on-screen confirmation. I see it is a security risk that public USB charger might have potential access. Even the USB connection...
Android support USB HID devices like keyboard and mouse.
If you have a USB-C keyboard, or connect via a USB hub. The USB keyboard will have control to the system, without on-screen confirmation.
I see it is a security risk that public USB charger might have potential access. Even the USB connection mode is "charge-only".
A hacker might have a USB hub, and add a HID to control your phone with a idle delay.
Back to by question.
It there a way to disable that at all at OS level?
If there is no way to have a "pairing confirmation" like BT devices have.
Dennis C
(344 rep)
Feb 22, 2019, 02:23 AM
22
votes
3
answers
97366
views
Is it possible to boot an Android phone from a USB drive?
Is there any way to boot an Android phone* from a bus-powered USB drive**? If so, what are the steps to achieve this? *\* E.g. one with USB OTG functionality.* *\*\* E.g. a flash drive.*
Is there any way to boot an Android phone* from a bus-powered USB drive**? If so, what are the steps to achieve this?
*\* E.g. one with USB OTG functionality.*
*\*\* E.g. a flash drive.*
user15074
Feb 27, 2013, 12:26 PM
• Last activity: Dec 22, 2018, 08:21 AM
0
votes
1
answers
1028
views
Huawei P20 Pro charging in USB host mode
I'm seeing several related questions here. However, most of them are ancient (as in 2012) and refer to micro USB and maybe the USB-C standards are different with regard to host mode charging. I'm using my P20 Pro as a tactical flight computer with two connected devices. The first one is a single row...
I'm seeing several related questions here. However, most of them are ancient (as in 2012) and refer to micro USB and maybe the USB-C standards are different with regard to host mode charging.
I'm using my P20 Pro as a tactical flight computer with two connected devices.
The first one is a single row mini usb keyboard and the second a flight vario which sends position and elevation data to the software.
P20Pro
|
mini USB-Hub
/ \
KBD Vario
What I'm missing in this setup is how to power the phone.
I would need something like this:
P20Pro
|\
| \Portable Power Bank
|
mini USB-Hub
/ \
KBD Vario
This is just some background info. The question could also be *How to charge the P20 Pro while a usb keyboard and mouse is connected?*
Basically (at least according to Huawei's online chat support) the device supports charging in host mode since their MateDock 2 adapter also charges the phone.
However, the MateDock 2 would be an overkill since I don't need a HDMI/VGA port.
In addition I'm not sure what the MateDock is exactly and if it also redirects *non standard* USB devices.
Another solution would be wireless charging but the P20 doesn't support this technology.
So what is the the 2018 answer to charging in USB OTG host mode ?
gollum
(103 rep)
Jun 26, 2018, 03:20 PM
• Last activity: Nov 20, 2018, 12:39 PM
2
votes
4
answers
27040
views
How can I configure an OBD ELM327 cable to work with an ICS tablet?
I bought an OBD ELM327 USB cable in order to use it with Torque Pro since Ice Cream Sandwich USB host capabilities and the Torque website claims that it works. The problem is that when I connect the OBD adapter to my tablet it simply doesnt do anything, but I expected the choose application window t...
I bought an OBD ELM327 USB cable in order to use it with Torque Pro since Ice Cream Sandwich USB host capabilities and the Torque website claims that it works. The problem is that when I connect the OBD adapter to my tablet it simply doesnt do anything, but I expected the choose application window to pop up. I downloaded a usb device app and I can see that it is connected, but it doesn't recognize it. How can I configure it so when I connect it the choose app window pops up?
Chris Tsagarakis
(21 rep)
Sep 16, 2012, 10:40 PM
• Last activity: Aug 14, 2018, 12:54 PM
Showing page 1 of 20 total questions