USB tethering always ON - Android Q&A, Help & Troubleshooting

I am working on Android custom device and I would like to turn USB tethering always ON. I know one way is to implement system service that will listen to USB connected and turn tether ON.
Is it possible to change this setting in AOSP in .xml configuration files, or some other way that provides AOSP and avoid implementing such a service?

Related

[Q] Cannot use bluetooth DUN tethering while mobile data active

I have an LG Optimus S on sprint, but I think its basically the same as the optimus one so I am posting this in this forum...
I am able to initiate a dial up networking (DUN) connection with my phone to tether with my laptop but it will only work if I turn off mobile data via settings>wireless networks>mobile networks>data enabled>switch to disabled. I assume that for some reason when the phone is using the data connection the tethering fails because the data connection is already in use.
I am trying to figure out some way to get this to work without having to take the phone out of my pocket and turn off the data manually every time and then turn it back on when I am done.
Anyone had any issue like this or know anything to change to fix it?
I have tried PDAnet's bluetooth DUN but it has the exact same issue...
The strange thing that I have noticed is that the bluetooth tether works OK if the phone is connected via usb to a computer. It does not even have to be the computer that I am trying to tether with, just ANY computer. It makes no sense at all...
I am running a custom ROM and even tried flashing back to stock and the issue is still there so I know it is not a ROM bug.
NOTE: I use this for work and so am possibly willing to pay some freelance dev or someone to fix this issue if it requires a custom app or rom modification or something like that. Maybe there is a better forum/site to post a request like that?

Any reverse tethering/internet passthrough app for the SGS2??!

I have tried the reverse tether app on GP by jasongong and it gives me a (Kernel not supported error) on two different ROMs (spike pure ICS and resurrection remix 2). There is another reverse tethering application on the market but its paid.
I cannot possibly imagine that such a basic functionality is not available by default let alone so rare in the GP. I just need to be able to share a LAN connection through a USB cable... is there anyway or any app to do that?
when you say reverse tethering, do you mean use your pcs internet connection??
if so then sure ya just connect ya wifi to the pc, or should i say router.
There is a program you can get for the pc, called VIRTUAL ROUTER or CONNECTIFY, both of which let you turn your pc into an internet hotspot providing you have wifi, this is how i connect my 360 to get around the firewall issues for online gaming.
Hope they may help you.
I am doing this to get internet at work. Wifi is protected by a password that I cannot know. So I need to get my PC's LAN internet connection on my phone via USB. HTC has a beautiful utility for that. I don't understand why samsung doesn't have this simple functionality... :S

[Q] Cyanogenmod-like USB tether

Is there a way to use USB tether with the Rezound similarly to how you can use USB-tethering in Cyanogenmod?
By this I mean the phone acts as a USB network card for the computer and routes all traffic through it. No need to install modem drivers or propitiatory software.
Thanks!
Yes, but you have to pay for it. Until someone releases a custom kernel for this platform, we won't see things like native USB tethering.

[Q] USB Tethering, "Always On" mobile conn. - 2.13.651.1

I'm curious as to whether anyone else has USB tethering actually working on rooted stock 2.13.651.1. I've added the 'ro.tether.denied=false' to by system/build.prop and when I connect my phone to the computer, it acts as if it's tethering but no internet is passed thru from the phone to the computer, making USB tether useless as of right now. No, I don't want to use a third party app for it.
Also, is there any way to have my 'always-on mobile connection' enabled, like what used to be available on almost all phones' settings menu?
So... nobody knows?
Guess not... that's disappointing.

[Q] Bluetooth Reverse Tethering to Windows 7 PC?

How can I reverse tether my Android phones to my PC via Bluetooth? Is this even possible?
PC is running Windows 7 x64. Phone is an HTC HD2 running JellyBean AOSP from NAND. I know Wifi would be easiest, but this is a work PC and company policy is we are not allowed to run our own Wifi networks.
I managed to connect the HD2 to the PC via Bluetooth with a PAN network, it only worked when I turned on Internet Tethering on the phone. However, this makes the HD2 into the server and PC into the client so PC can use phone's internet connection. I need the reverse! I need HD2 to be the client, PC to be the server. I found a Bluetooth PAN client from the Play store, but it can't connect via PAN to the PC. I assume because the MS BT stack only has a PAN client and not server. Is there such a thing as a PAN server for PC? I've looked at Widcomm and Bluesoleil BT stacks, but neither specifically mentions having a PAN server.
I found this tutorial that sounds promising, using DUN instead of PAN:
http://bluedunapp.blogspot.com/2012/05/bluetooth-tethering-for-android-devices.html
It's for reverse tethering an Android device to another Android device. Looks like BlueVPN on the Android side will do what I want, be a DUN client. However, similar problem to PAN, I can't find a DUN server. It's apparently not built into the MS BT stack either.
Is it even possible to reverse tether an Android phone to PC over Bluetooth?
Only other idea I can think of is to use an intermediate device as a bridge. USB reverse tether a phone to PC, and use phone's bluetooth tethering abilities to tether my bluetooth phone to it. Really round-about way to go about it though.
not exactl but it works
hi i cant find out a way to connect through bluetooth but i found some apps which can connect your mobile to internet through usb connection
but it requires root access
1.ReverseTether.Trial in google play
2.just search for "reverse tethering galaxy y in google" and select first link from "galaxyyarchive,info" worked for me but dont know about other phones
sorry i cant post links right now
bye
GnatGoSplat said:
How can I reverse tether my Android phones to my PC via Bluetooth? Is this even possible?
PC is running Windows 7 x64. Phone is an HTC HD2 running JellyBean AOSP from NAND. I know Wifi would be easiest, but this is a work PC and company policy is we are not allowed to run our own Wifi networks.
I managed to connect the HD2 to the PC via Bluetooth with a PAN network, it only worked when I turned on Internet Tethering on the phone. However, this makes the HD2 into the server and PC into the client so PC can use phone's internet connection. I need the reverse! I need HD2 to be the client, PC to be the server. I found a Bluetooth PAN client from the Play store, but it can't connect via PAN to the PC. I assume because the MS BT stack only has a PAN client and not server. Is there such a thing as a PAN server for PC? I've looked at Widcomm and Bluesoleil BT stacks, but neither specifically mentions having a PAN server.
I found this tutorial that sounds promising, using DUN instead of PAN:
http://bluedunapp.blogspot.com/2012/05/bluetooth-tethering-for-android-devices.html
It's for reverse tethering an Android device to another Android device. Looks like BlueVPN on the Android side will do what I want, be a DUN client. However, similar problem to PAN, I can't find a DUN server. It's apparently not built into the MS BT stack either.
Is it even possible to reverse tether an Android phone to PC over Bluetooth?
Only other idea I can think of is to use an intermediate device as a bridge. USB reverse tether a phone to PC, and use phone's Bluetooth tethering abilities to tether my Bluetooth phone to it. Really round-about way to go about it though.
Click to expand...
Click to collapse
So far there isn't any app that does a reverse tether through Bluetooth. Only Wi-Fi @ usb tether are currently possible.
GnatGoSplat said:
Only other idea I can think of is to use an intermediate device as a bridge. USB reverse tether a phone to PC, and use phone's Bluetooth tethering abilities to tether my Bluetooth phone to it. Really round-about way to go about it though.
Click to expand...
Click to collapse
Brilliant idea mate for the time being :good: :highfive:
texasranger770 said:
Brilliant idea mate for the time being :good: :highfive:
Click to expand...
Click to collapse
Unfortunately, I couldn't get this to work. I tried using "Bluetooth PAN for Root Users" on the client phone and it wasn't able to see the Bluetooth connection on the phone which has a Bluetooth tethering checkbox. However, my PC with bluetooth dongle was able to make a PAN connection to that phone, so I guess it's something with the "Bluetooth PAN for Root Users" which isn't compatible.
There's a way to do that using USB Tunneling. An xda member has done this, and I'm using my PC's Internet connection on my HTC Desire with a USB cable. The download below will possibly work for any phone... I'm not taking any credits for this tool and app. This belongs to someone, and I downloaded it, but can't remember who made this. Anyone who knows, please correct me...
I've actually been using that tool for awhile. Its official post is here. http://forum.xda-developers.com/showthread.php?t=1371345
GnatGoSplat said:
Unfortunately, I couldn't get this to work. I tried using "Bluetooth PAN for Root Users" on the client phone and it wasn't able to see the Bluetooth connection on the phone which has a Bluetooth tethering checkbox. However, my PC with bluetooth dongle was able to make a PAN connection to that phone, so I guess it's something with the "Bluetooth PAN for Root Users" which isn't compatible.
Click to expand...
Click to collapse
Does the android phone BT stack even support the PAN client role? I guess it may not be there. Could you clarify??
I don't know, I'm going to guess not.
I used to setup Windows on a Broadcom/Widcom bluetooth stack/driver to do this Bluetooth Reverse Tethering for Android - no rooting or apps required. Phone needs to support Bluetooth network access feature - no rooting or apps required as this is a standard/implemented protocol - Samsung S3, Sony Xperia V, Nexus 5, Nexus 4 support it, etc. To check, a phone that supports "bluetooth tethering" would likely support the "bluetooth internet access" (which is "bluetooth reverse tethering") feature. So, as an easy check - on your Android, go to Settings > More… > Tethering & portable hotspot - Now look for a “Bluetooth Tethering” item - if it is available, there’s a good chance that your device is compatible - but if you can’t find it, your device is likely NOT compatible.
As a roughly remember - the steps are like:
1. You need to enable the "Network Access Point" profile in the configuration and you'll get a new "network device"
2. Then in the control panel, go to the connection list, then ctrl-click the new bt-network-device and your LAN ethernet network device - right click and choose "bridge" to bridge it with your LAN.
3. Try pair android phone (which has the bluetooth "internet access" feature) with pc then if all is well, you'll see the bluetooth settings button for your computer - "If this inner settings page has the “Internet Access” item and checkbox shown".
If you tried on the Broadcom stack and still need help - I might try make a blog post with detailed screenshots someday if i can get some free time...
Okay, now I have a new PC running Windows 8.1 which has built-in Broadcom bluetooth, and a different phone, Motorola Droid Mini XT1030. I've installed the most recent WIDCOMM stack.
I'm able to connect a new Bluetooth PAN network device, but there is no "bridge" option. There are for other devices like the PC's built-in Wifi, but not for the bluetooth.
Am I missing something?
I've also tried using USB Reverse Tethering using an old phone as a bridge, but that doesn't work either.
http://forum.xda-developers.com/showpost.php?p=53822503&postcount=1992
ykasidit said:
I used to setup Windows on a Broadcom/Widcom bluetooth stack/driver to do this Bluetooth Reverse Tethering for Android - no rooting or apps required. Phone needs to support Bluetooth network access feature - no rooting or apps required as this is a standard/implemented protocol - Samsung S3, Sony Xperia V, Nexus 5, Nexus 4 support it, etc. To check, a phone that supports "bluetooth tethering" would likely support the "bluetooth internet access" (which is "bluetooth reverse tethering") feature. So, as an easy check - on your Android, go to Settings > More… > Tethering & portable hotspot - Now look for a “Bluetooth Tethering” item - if it is available, there’s a good chance that your device is compatible - but if you can’t find it, your device is likely NOT compatible.
As a roughly remember - the steps are like:
1. You need to enable the "Network Access Point" profile in the configuration and you'll get a new "network device"
2. Then in the control panel, go to the connection list, then ctrl-click the new bt-network-device and your LAN ethernet network device - right click and choose "bridge" to bridge it with your LAN.
3. Try pair android phone (which has the bluetooth "internet access" feature) with pc then if all is well, you'll see the bluetooth settings button for your computer - "If this inner settings page has the “Internet Access” item and checkbox shown".
If you tried on the Broadcom stack and still need help - I might try make a blog post with detailed screenshots someday if i can get some free time...
Click to expand...
Click to collapse
Hi ykasidit,
could you please provide more detail explanation on how to enable the "Network Access Point" profile in the configuration to get this new "network device"?

Categories

Resources