[Q] How and Where Android Hotspot / Tether Name located in code? - Android Q&A, Help & Troubleshooting

Hi everyone!
I just found out inside the stackoverflow,
that some of our android developers are experiencing the difficulty
of switching ON / OFF the Wifi Tether programatically. :fingers-crossed:
Until then, it's fully discovered here.
But my case here is quite similar.
How to set the Device Tethering name?
Because as far as I know, we could go to Settings | Wireless Network | Tethering Portable Hotspot | Setup Wifi Hotspot
There we could set the Device tethering name straight forward.
so,
1. But how to do it by programatically (in code)?
2. And where did Android stored that value actually?

Why not take a look at the WifiManager API and/or ConnectivityManager API?

Related

[Q] New question... Do any of the ROMs support Proxy wifi settings?

I didn't get much response on my previous question about proxy support for the stock rom, so I was wondering if any of the alternate roms include it. I would very much like to have access to the internet at work, but the school district requires loggon through a proxy server (content filter) before you can access the WiFi network. I realize that port restrictions that the district places on the network will likely prevent me from accessing the market, gmail, or voice search. But at school, I would most like to just access flash based educational website for kids.
Any thoughts on this? The district is moving toward ipads as the tablet platform of choice because of the lack of proxy support with Android. But the ipads lack of support for flash really hinders what I want a tablet to be able to do for me. (Yes, I want my cake and eat it too!) Is this too much to ask?
I connect my gtab to my schools wirelesss that is using 802.1x EAP for wireless security. I had to install a mod that changed the settings app and allowed advanced wireless settings. That allowed me to put in the authentication type, domain name, password, etc. Once connected, I ran a mod that set it back to the original settings apps. I asked in your previous post as to whether you are having problems actually getting on the wireless or once on, you can't bet by the web filter. We use websense here. Once I got on the wireless, there was an websense authentication dialog that popped up. Once I put my domain\username and password in, it works fine.
It won't even let me connect to the district network because I don't have anywhere to enter the proxy settings in the wifi set up box.
Assuming you have Pershoot's or Clemsyn's Kernel (or one of the better ROMs), you need something like ASProxy. I use it at work all the time and it does the job. There is a free program called TransParentProxy which is more limited but does allow you to quickly test settings without spending any money.
I do not see a proxy settings in the wpa_supplicant.conf file. My understanding of this file is it lists all possible settings settings available for Wi-Fi configurations.
# This file describes configuration file format and lists all available option.
Click to expand...
Click to collapse
Previously I've only needed to access a proxy after connecting to the network. Perhaps you have run into a problem getting connected to your network using the tablets Wi-Fi settings manager. So connecting to the network might be your first step and then connecting to the proxy your 2nd.
I found the free Wifi Advanced Config Editor (WifiACE on the Android Market) to have a GUI to easily configure advanced Wi-Fi settings not found in the tablet's settings. I realized when trying to set up an advanced configuration I needed to create a new connection in the tablets WiFi Settings with the security of NONE to avoid having some of the wrong settings configured by default. Then using the information from the my network admin I manually set the options via the WifACE GUI, un-checking NONE, and bingo I got connected.
I recommend WiFiACe with one caveat: make sure you have a way (like adb) working and know how to backup, delete, and restore files and that you make a back up of all wpa_supplicant.conf files on your tablet.
My caveat comes because my first reboot after I got connected to the Enterprise network at work the Wifi would not start or run. It would only display "error" and do nothing. Several reboots later it still wouldn't start and without Wi-Fi running there is no way to make configuration changes either through WifiACE or the tablets Wi-Fi Settings. I had to use the adb shell to delete the newly configured wap_supplicant.conf and create a new connection via the tablets Wi-Fi Settings and then make the necessary changes through WifiACE. Once that was done it ran and connected. Now after multiple reboots it still works and connects. Without the ability to delete the file I'm afraid I would have had to re-flash my tablet to get Wi-Fi to work again.
I don't think you've ever mentioned what ROM you're running. If you're running stock, you will have a very difficult time, in fact it may be impossible. If you're running a different mod, there's hope. Now, assuming that you got ClockWordMod (CWM) installed, you can probably be successful in at least connecting to the wireless. If you don't have CWM installed, here's a good place to start:
http://forum.xda-developers.com/showthread.php?t=865245
Once you have CWM installed, go to this thread:
http://forum.xda-developers.com/showthread.php?t=857939
This will give you the zips for installing a differernt wireless config tool that will allow you to put in the 802.1x EAP config. Once you can successfully connect, you back out the the tool you installed.

[Q] X10 WB 2.3.3 rev4.04 Wi-Fi not connecting to hidden SSIDs

Background:
ROM Used - Wolfs TW Gingerbread | Unlock the full Performance | get 4.0.4 now: http://forum.xda-developers.com/showthread.php?t=1192988
Also used 4.0.4 Stock update
Addons Used - Sony Home Launcher v2.0.A.0.22
http://www.mediafire.com/?4khhnle8lyysp
All files and updates sucessfull. No errors.
Problem:
Wi-Fi only connects to SSIDs that are visible. When using 2.1, there was no problem connecting to a hidden SSID. I'd rather not have to down grade to 2.1, but I'd rather that than leaving my SSID visible. I'm using a D-Link DIR-655 with WPA2 AES encryption.
I haven't been able to find this specific problem in the forums so I'm hoping someone can help. How do I correct this problem?
I hate bumping this but this problem is hard to find a solution for.
So I found an app that enables you to connect to hidden wi-fi. It's called HiddenSSID Enabler in the Android Market.
(I don't have enough posts to post the link.)
The problem seems to stem from this post in Google Code. It's been an apparent problem since around 2008.
(Issue #1041 in the Android Google Code page.)
Enable connection to hidden SSID:
1. Download/install above mentioned app.
2. Make sure your Wi-Fi connection is currently visible and you are connected to it.
3. Open HiddenSSID Enabler.
4a. Enter the name of your SSID.
4b. It will appear as if nothing has changed or been done. Don't worry, this is supposed to happen.
5. Disable Wi-Fi on your phone.
6. Go to your Wi-Fi AP or Router and make your SSID hidden/invisible.
7. Enable Wi-Fi on your phone and it should connect.
8. Wipe hands on pants, enjoy favourite beverage.

[Q] Wireless profile provisioning

Hi there!
I'm trying to find a way to provision Android devices with a predefined profile to simplify the wireless connection.
There are such a feature on the iPhone (i'm unable to refer you the link due to my low post count) but i'm wondering if there's anything similar on Android without an extra app.
Thanks!

[Q] How / Where Android set Hotspot / Tether Device Name?

Hi everyone!
I just found out inside the stackoverflow,
that some of our android developers are experiencing the difficulty
of switching ON / OFF the Wifi Tether programatically. :fingers-crossed:
Until then, it's fully discovered here.
But my case here is quite similar.
How to set the Device Tethering name?
Because as far as I know, we could go to Settings | Wireless Network | Tethering Portable Hotspot | Setup Wifi Hotspot
There we could set the Device tethering name straight forward.
so,
1. But how to do it by programatically (in code)?
2. And where did Android stored that value actually?

Unlimited Tethering: N950U t-mobile Observations/Suggestions?

To the point
I have been working on getting tether working on my phone.
I really want Android Native, or even Linux Native via scripts.
I would also like to better understand why this works as it does (as far as function, not manufacturer/carrier policy)
What Works...
- [VPN servers] and [Proxy Servers] that are hosted on the phone
- DHCP servers (Wifi Tethering Router/etc...) if the network to be accessed is WLAN 192.168.0.x
What doesn't...
- Anything else involving a DHCP server, Wifi(or USB) and through LTE data
# Confirmed something on the ROM due to my having a CM Remix phone that had full ability.
What can i DELETE or ADD to cease this limiter of bandwidth "70KB/s"
EDIT:
- - - Solved tether: Client side ttl set
I haven't found anything on mine. Although Wifi Tether Router by Fabio Grasso I think it is has been the most consistent solution.
jameslapc2 said:
I haven't found anything on mine. Although Wifi Tether Router by Fabio Grasso I think it is has been the most consistent solution.
Click to expand...
Click to collapse
Usually I do use his app.
even bought his new one.
However these is something specific thats locking down the bandwidth
I use the T-Mobile One plus international plan and it gives you unlimited high speed LTE hotspot included for $25 a month

Categories

Resources