Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
4
votes
4
answers
15020
views
How to disable RIL on Android?
As soon as I connect a USB modem to Android device, the system grabs ttyACM0 and ttyACM1 in an attempt to open connection. As a result, the ports are blocked and can not be opened by other services. I have tried making the following changes in `init.rc`, as well as deleting ril-deamon service entry....
As soon as I connect a USB modem to Android device, the system grabs ttyACM0 and ttyACM1 in an attempt to open connection. As a result, the ports are blocked and can not be opened by other services.
I have tried making the following changes in
init.rc
, as well as deleting ril-deamon service entry.
setprop ro.radio.noril yes
setprop hw.nophone true
How, if possible, can I disable RIL on Android to avoid having it block ttyACM0 and ttyACM1 as soon as modem is plugged in? Is it doable without having to rebuild Android?
jM2.me
(283 rep)
May 11, 2014, 02:08 AM
• Last activity: Mar 19, 2025, 09:07 PM
3
votes
1
answers
2226
views
Use phone as USB modem by ADB
I want to use the phone as a backup line for my Linux server. Can I do this by using the ADB? I mean, forward everything to a socket and route the traffic there. I also need some port forwarding, would be great if it could be transparent. Or do I have to use the tether option on the phone and config...
I want to use the phone as a backup line for my Linux server. Can I do this by using the ADB? I mean, forward everything to a socket and route the traffic there.
I also need some port forwarding, would be great if it could be transparent. Or do I have to use the tether option on the phone and configure an interface?
wiresinmyhead
(31 rep)
Feb 1, 2020, 08:33 AM
• Last activity: Jun 29, 2023, 03:30 AM
0
votes
0
answers
723
views
How to customise Android or LineageOS build and add own drivers
I am trying to build kinda car computer for my own use. As hardware I am using a [Raspberry Pi CM4][1]. There is an awesome build by [KonstaKANG][2] of LineageOS for Raspberry Pi and it generally is working ok. There is also an [Automotive version of Android][3] (haven't tried it yet) and an other s...
I am trying to build kinda car computer for my own use. As hardware I am using a Raspberry Pi CM4 .
There is an awesome build by KonstaKANG of LineageOS for Raspberry Pi and it generally is working ok.
There is also an Automotive version of Android (haven't tried it yet) and an other similar more or less successful approaches.
My problem is that I'd like to use an LTE modem (Sierra Wireless MC7700 miniPCI with an USB adapter) and none of those distros do support it by default.
Am I correct in my assumption that USB at Android isn't working the way it does work on Linux/MacOS/Windows and each device needs to be explicitly supported by the particular Android build.
If so, how can I add own driver and do I need to add it to my custom build or can I compile those drivers for a running instance?
Any help would be appreciated.
Regards,
Radek
Radek Suski
(131 rep)
Jan 4, 2023, 09:35 AM
0
votes
0
answers
157
views
Can a WiFi modem be directly connected to an android and use the android phone's usb tethering (via an adapter)?
I have an old wifi modem which lacks usb port. I was wondering if we could an rj45 to usb adaptor to use the internet connection from the android device via usb tethering? Or if there is any other way to achieve the said task, I'd be more than happy to know that.[![the connectors][1]][1] [1]: https:...
I have an old wifi modem which lacks usb port. I was wondering if we could an rj45 to usb adaptor to use the internet connection from the android device via usb tethering?
Or if there is any other way to achieve the said task, I'd be more than happy to know that.

Anonymous
(1 rep)
Jul 10, 2021, 12:48 PM
7
votes
3
answers
18910
views
How to switch(not only on or off) the mobile data and wifi using adb?
First main question: is it possible to switch(not only on or off) the state of the mobile data and wifi using adb? (for example for wifi: if you don't know the state of the wifi now. you send several commands and then you are sure that the wifi state changed.) if this is not possible then the questi...
First main question:
is it possible to switch(not only on or off) the state of the mobile data and wifi using adb?
(for example for wifi: if you don't know the state of the wifi now. you send several commands and then you are sure that the wifi state changed.)
if this is not possible then the question is how to find out the state of wifi and mobile data using adb?
second:
is it possible to switch the state of the wifi-hotspot and the usb-modem via abd?
**what can I do:**
I'm use
adb shell svc data enable/disable
adb shell svc wifi enable/disable
To turn on/of wifi and mobile data. But I don't know a way to switch the state with one command like "adb shell svc data toggle". Maybe there is a command that returns the state of the Wi-Fi or mobile data? Like
shell svc data state
. and it returns "on" or "off".
is there a way to switch it when the phone is locked?
I also use such commands to switch the wifi-hotspot and usb-modem
(unlike first two commands above the screen may be off, but the phone must be unlocked):
adb shell am start -n com.android.settings/.TetherSettings
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 66
first line opens the settings page. keyevent 20 - simulates key press down, keyevent 66 - enter. it's for usb-modem. for wifi-hotspot i use same first line,key20 key66 key20 key66.
i have samsung a50(android 10) and ubuntu 20. the modem state switching bash script is located at /usr/local/bin so I can run it from the console just by writing the filename.
NikolayFR
(161 rep)
Aug 10, 2020, 02:31 PM
• Last activity: Jun 10, 2021, 06:53 PM
0
votes
0
answers
461
views
USB Tethering in host mode
Using Android 9 running on a Quectel SOC with 1 USB port, I want to share the Android SOCs internet connection via ethernet over USB with another system (embedded Linux), but also allow USB host functions such as communicating with USB storage etc via a USB hub interface. Is this fundamentally possi...
Using Android 9 running on a Quectel SOC with 1 USB port, I want to share the Android SOCs internet connection via ethernet over USB with another system (embedded Linux), but also allow USB host functions such as communicating with USB storage etc via a USB hub interface. Is this fundamentally possible (even if some AOSP modification is required on my part)?
From what I understand, native support is offered for the Android SOC to provide ethernet over USB as a USB device. What I want to achieve is provide ethernet over USB (and provide internet connection to peripherals) as a USB host. Is this support natively provided?
makepeace
(1 rep)
May 17, 2019, 04:44 PM
• Last activity: May 18, 2019, 09:59 AM
0
votes
0
answers
73
views
To use the internet of my phone for PC
I have a Smartphone with cellular internet and I tried to use this internet with a PC, with a USB cable, as I made in the past with a cell phone. It doesn't work: Not in Ubuntu 16.04, nor in window 7. Someone can give me a good advice? My phone is a GINI e6 (e 6_0301_V5765); Android 5.1
I have a Smartphone with cellular internet and I tried to use this internet with a PC, with a USB cable, as I made in the past with a cell phone.
It doesn't work: Not in Ubuntu 16.04, nor in window 7.
Someone can give me a good advice?
My phone is a GINI e6 (e 6_0301_V5765); Android 5.1
kouty
(225 rep)
Sep 1, 2016, 01:31 PM
• Last activity: Sep 1, 2016, 09:08 PM
1
votes
0
answers
7418
views
How can i run At-commadns with the ADB?
I'm trying to communicate with the modem of my Samsung Galaxy S3 GT-I9300 over the ADB tool. My galaxy is rooted and is accessible through adb. **I'm attempting to execute AT-commands over the adb-tool.** I already tried a few AT-commands but the modem doesn't respond. 1. First of all I was running...
I'm trying to communicate with the modem of my Samsung Galaxy S3 GT-I9300 over the ADB tool. My galaxy is rooted and is accessible through adb.
**I'm attempting to execute AT-commands over the adb-tool.**
I already tried a few AT-commands but the modem doesn't respond.
1. First of all I was running
cat /proc/tty/drivers
to get the right driver. my output:
root@m0:/ # cat /proc/tty/drivers /dev/tty /dev/tty 5 0 system:/dev/tty /dev/console /dev/console 5 1 system:console /dev/ptmx /dev/ptmx 5 2 system /dev/vc/0 /dev/vc/0 4 0 system:vtmaster rfcomm /dev/rfcomm 216 0-255 serial g_serial /dev/ttyGS 250 0-3 serial usbserial /dev/ttyUSB 188 0-253 serial s3c2410_serial /dev/ttySAC 204 64-67 serial serial /dev/ttyS 4 64-67 serial pty_slave /dev/pts 136 0-1048575 pty:slave pty_master /dev/ptm 128 0-1048575 pty:master unknown /dev/tty 4 1-63 console2. Consequently my driver address is
/dev/ttyGS0
, so I run the next command echo -e "AT\r" > /dev/ttyGS0
but the modem doesn't respond and nothing happens:
root@m0:/ # echo -e "AT\r" > /dev/ttyGS0 root@m0:/ #3. So I quit the tool and tried another command
service check phone
:
130|root@m0:/ # service check phone Service phone: found root@m0:/ #It looks like it at least found a kind of a modem. 4. So, I Google a bit and I find a nice tool called microcom, which is included in busybox. I installed busybox and tried
busybox microcom -t 5000 /dev/ttyGS0
, but the output was
root@m0:/ # busybox microcom -t 5000 /dev/ttyGS0 microcom: applet not found 1|root@m0:/ #**I really hope you can help me to find my problem with my code or suggest some better commands.**
Franz
(11 rep)
Dec 11, 2014, 12:32 AM
• Last activity: Jun 15, 2016, 10:31 AM
1
votes
0
answers
335
views
IP address using 3G/4G modem (USB on the go)
If I use a 3G USB (on the go) modem on my Android device, do I get the IP assigned by the Carrier as the SIM card was inside of the device? Does it appear as usb0 in ifconfig? Thank you. PS I would like to avoid what happens on the pc when you use usb tethering: the phone has its IP assigned by carr...
If I use a 3G USB (on the go) modem on my Android device, do I get the IP assigned by the Carrier as the SIM card was inside of the device?
Does it appear as usb0 in ifconfig?
Thank you.
PS
I would like to avoid what happens on the pc when you use usb tethering: the phone has its IP assigned by carrier (usually 10.*.*.*) while the pc gets a different address (usually 192.168.*.*) as in a local network with the phone only
the structure
(71 rep)
Aug 19, 2015, 07:22 PM
• Last activity: Aug 19, 2015, 07:46 PM
0
votes
0
answers
1048
views
How to use usb modem to connect to Internet on Sony Xperia Z Ultra running Lollipop?
I have a `Tata Photon+` internet usb modem. But I am not able to access internet through it when connected my device. Whenever I connect the modem to my android device nothing shows up that you are connected to modem's internet. I connect my modem using my `micro-usb` converter. I watched some video...
I have a
Tata Photon+
internet usb modem. But I am not able to access internet through it when connected my device. Whenever I connect the modem to my android device nothing shows up that you are connected to modem's internet. I connect my modem using my micro-usb
converter. I watched some videos on YouTube but they all had a rooted method to connect to Internet. I have Sony Xperia Z Ultra
with Android Lollipop 5.0.1
. So if somebody has a technique to connect USB modem to my android device please answer.
Tom
(101 rep)
Jun 25, 2015, 06:18 AM
• Last activity: Jun 25, 2015, 06:57 AM
0
votes
1
answers
1359
views
How to conect USB modem dongle to tablet AOC Breeze
I have a tablet AOC Breeze model MW0712 with Android 4.1.1. I want to connect with USB modem dongle Huawei E303C in order to have internet connection, but with no success results. I try with this [link][1] (in spanish, because I'm peruvian and the APN settings is for my ISP), but I can't save any AP...
I have a tablet AOC Breeze model MW0712 with Android 4.1.1.
I want to connect with USB modem dongle Huawei E303C in order to have internet connection, but with no success results.
I try with this link (in spanish, because I'm peruvian and the APN settings is for my ISP), but I can't save any APN settings as I explain here .
I try with this widget , but always give me a "No driver found" message.
Then I try with this tutorial (rooting the tablet) and supporting me with this one (in spanish) that I think is better explained (but in both tutorials doesn't says that you need the BusyBox app installed). But I could also not connect.
Finally I try with this APP , but the connection is very unstable.
Galled
(121 rep)
Feb 26, 2014, 04:27 AM
• Last activity: Mar 22, 2015, 07:24 PM
3
votes
2
answers
13240
views
Connect a portable USB modem (data card) with Samsung Galaxy S II
Is it possible to connect and use portable USB modems such as Reliance net connect, MTS, etc., using an [OTG][1] cable with [Samsung Galaxy S II][2] and use it? I went through many forums and haven't got any promising answer. I'm currently using Android version 4.0.3 along with [SiyahKernel][3] 3.0....
Is it possible to connect and use portable USB modems such as Reliance net connect, MTS, etc., using an OTG cable with Samsung Galaxy S II and use it?
I went through many forums and haven't got any promising answer. I'm currently using Android version 4.0.3 along with SiyahKernel 3.0. In this kernel, I'm able to connect flash drives, mouse and keyboard.
Varun kumar
(141 rep)
May 1, 2012, 02:56 PM
• Last activity: Oct 21, 2014, 07:18 AM
3
votes
1
answers
3176
views
How can I use external modem for voice calls on Android tablet?
My tablet doesn't support calling/messaging function by default and also it doesn't have an app for that by default. Is it possible? In my case I use Micromax Infinity P275 tablet and Huawei E1732 modem. ICS is my OS. I can connect to the internet with that modem.
My tablet doesn't support calling/messaging function by default and also it doesn't have an app for that by default.
Is it possible? In my case I use Micromax Infinity P275 tablet and Huawei E1732 modem. ICS is my OS. I can connect to the internet with that modem.
AH.
(141 rep)
Apr 20, 2013, 03:47 PM
• Last activity: Sep 14, 2014, 12:01 PM
0
votes
0
answers
195
views
WonderMedia 8650 ICS 4.0.3 - what is "3g_server"
I'm trying to understand how a WM-8650 based Android tablet running ICS 4.0.3 manages its 3G connection using a USB modem. I've used OpenWRT-based linux routers in the past, and these use usb_modeswitch to kick the modem out of "CD" mode into "modem" mode, and then pppd starts up and uses chat to se...
I'm trying to understand how a WM-8650 based Android tablet running ICS 4.0.3 manages its 3G connection using a USB modem.
I've used OpenWRT-based linux routers in the past, and these use usb_modeswitch to kick the modem out of "CD" mode into "modem" mode, and then pppd starts up and uses chat to set up the connection, though I've never quite got to the bottom of how the USB hotplug system kicks things off when the dongle is first plugged in.
With Android I can see similar things happening - usb_modeswitch kicks the dongle into the right mode, and a renamed pppd (called ppp3g) sets of the point-to-point protocol. However, this is all done under the control of a process called "3g_server" which I've been unable to find any information on.
I'm trying to debug a problem where a dropped connection fails to come back up very quickly, so I'd like to understand how 3g_server works and what options I have for tuning that behaviour. A configuration document would be handy, source code would be better.
I tried going to http://www.wondermedia.com.tw/en/support/ but, despite the "en" in the URL, the page is in Chinese. Can anyone help?
kbro
(253 rep)
Jun 28, 2013, 12:50 PM
Showing page 1 of 14 total questions