[Q] Android and WIFI supplicant - Android Software/Hacking General [Developers Only]

In "android.net.wifi.WifiNative" class there are several function calls in form of "xxxCommand()" (as an example doBooleanCommand();) to talk to the wifi supplicant daemon. Does any one know where these functions are defined and whether it's possible to modify them or not?

Related

Android WIFIMANAGER tweak

I have a very unique situation where I need the wifimanager to scan every 10-20 seconds for a new WiFi Access point, and be able to determine by the RSSI value to either stay connected or switch to the stronger Access point.
We have a routed Mesh network, where the AP's all can are DHCP, but they run through tunnels. So during a VOIP call, it would be nice to have the wifimanager be able to scan and handle that handoff. The asterisk server we are using holds the calls as the handoff is taking place, and when using a windows mobile device I have been able to modify an app to make WM6 make the transition in under 5 seconds.
I am in no way an Android programmer, but my client wants to switch to Android, and I need to see what kind of Mountain I am tackling.
The handheld we are using, is strictly wifi b/g no cellular
Thank you in advance for any help you could offer.

[Q] list devices connected to android wifi hotspot

Hey Guys,
I need a little guidance from you.
I am developing an app that connects to a medical device(an RTOS) using a certain port over Androids Wi-Fi hotspot feature.
This is how the app works:
1) it has to find all connected network devices to the Phone.
2) ping and/or examine remote device/port to identify remote device.
3) if everything is fine get stuffs done using this connection.
I am facing problem with step 1, later steps are working fine.
My question is:
a) how do I find all Wi-Fi network devices connected to a phone?
I have read that we can connect up to 5 devices to a Wi-Fi hotspot. I can just ping 5 of them but knowing which IP address range is assigned to remote devices is important.
Since Wi-Fi works in a different layer, I cannot always rely on IP address. However given the fact that dnsmasq(andys own DHCP server) is always running, I came up with a possible solution.
Lookup arp cache in /proc. But its true that arp entries will timeout, which makes my solution unreliable at any given moment.
Here comes the other question,
b) can I ping Wi-Fi hotspot broadcast IP and wait for the remote devices to reply? I have read somewhere that network devices connected to Android hotspot won't reply back as expected, is it true?
I need to support general public who cannot root their device, so using /data is out of my option. Since I cannot re-design the remote RTOS device, sending beacon packets to Android is not an option too.
c) Is there any APIs that I can use directly?
Any help would be greatly appreciated.
how to find wi-fi hot spot connected devices??
I hav d same question as nixtalker, that how to find devices connected to our mobile hot-spot ??? is there any android apps??? plz reply.
Wifi Problem Solve
Hi buddy you can use wiifimanger class that call by Services class.
1)
WifiManager mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo mWifiInfo = mWifiManager.getConnectionInfo();
ConnectivityManager myConnManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
NetworkInfo myNetworkInfo = myConnManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
getDeviceIpAddress();
this can give you wifi connected device IpAddresses.

[Q] Support for ad-hoc

I have a 3G Xoom (umts_everest) without a SIM card (yeah, it's dumb. It's a long story).
I'm currently on Codename Android 1.5.5 (ICS 4.0.3), but I accept suggestions if it can solve my problem.
Has anyone successfully connected to an ad-hoc connection? I'm trying to tether my Samsung Galaxy Spica (old warrior!) via any tethering app available but my Xoom won't see the network. I used to do that using Froyo's regular Hotspot feature, but this is not available on my current ROM on the Spica (the only usable ROM I've found), so I have to use one of these tethering apps.
Doing some research I found that ICS does not support ad-hoc natively, so has anyone released a ROM/patch to work this out? I found some topics for the Adam (none for the Xoom), even tried one of the wpa_supplicant from one, but no luck.
No need to modify wpa_supplicant binary
I changed data/misc/wifi/wpa_supplicant.conf instead of wpa_supplicant. I added ap_scan=2, then set the adhoc network to
priority=1
mode=1
then pushed back the modified file. chown ownership back to system.wifi.
I had root access through adb. So root wasn't necessary for me.
Advantage: Safer than modifying system/etc/wifi/wpa_supplicant binary. Saves you the trouble of compiling modified wpa_supplicant or finding a compiled one for your platform.
Drawback: This is just a temporary solution.You'll have to repeat this process for every new adhoc network as it doesn't enable adhoc forever. It is good for connecting to your home network or other know networks, but if you want to connect to any adhoc network you scan,then this is not your method. Because, wpa_supplicant.conf will be overwritten every time you scan a new network.

[Q] WiFi forwarding

I am looking for an app that can stand as a proxy for devices on a WiFi connection.
The problem:
1) School has changed from an open WiFi connection to MAC address filtering.
2) They allow certain tablets, but not phones.
3) I have a tablet (a500, rooted, Lightspeed 4.8) that is able to access the Wireless.
4) Phone (Unrooted Galaxy S3, JB) is now unable to access due to the filter
Intent:
Access WiFi to do app updates, use wireless in-app, and other operations from the phone
The challenge:
Find or compile an app or script to route data traffic from the phone, through the tablet, to the school's WiFi (or suggest an alternative)

Wifi Internet Repeater (Relay or Extender) and Router for Android

My Samsung SM-T350 Galaxy Tab A running 6.0.1 (BPI2) has two wifi radios (2.4GHz and 5GHz). I can view the radios (wlan0 and wlan1) in the console by using commands ifconfig -a or netstat. Is there an Android app that relays the active internet connection (in my case, wlan0 was connected and assigned an IP address) to the unused radio (wlan1 was not being used).
When my iPad was jailbroken, I commonly used MyWi (available on Cydia) to perform this function. MyWi would share whatever connection available on the first wifi radio (usually 2.4GHz) to the unused wifi radio, using WPA2 security and generating DCHP IP addresses for the connected devices. MyWi had more flexibility: if the iPad was connected using wlan0 (assigned a local IP address) and connected to a VPN (assigned a remote IP address), MyWi could either share the local connection (wlan0) or the remote connection (ppp) over the second radio wlan1. Or it could share the selected connection through USB or Bluetooth. There is also a Windows equivalent that works equally as well called Connectify.
I lost my iPad jailbreak due to a repair and I need to replace MyWi in the meantime. It seems this should be straightfoward on the Android.
I got a dual-radio (2.4GHz and 5GHz) iOS device running 9.3.3 jailbroken and running MyWi. Seems a shame that this utility is not available on the Android platform, but easily obtainable with Windows (Connectify), Linux (various tools), jailbroken iOS (MyWi), but not rooted Android. Certainly there are toolsets that can achieve this?
Fq.router supposedly does wifi repeating, but I don't know if it uses cross-band communications (single band repeating kills WiFi performance)

Categories

Resources