Turn off wps on android - android

I would like to raise the level of my security. Often, I use my Sony E2303 like a wifi hotspot, but I don't know how to turn off WPS pin implementation.
Android 5.0 lolipop (root)
patch level secured:2015-11-01
Compilation: 26.1.A.3.111.

Ok, I solved it by turn on Invisible Mode (BSSID) after the first connection to my hotspot. (next will be automaticly if you use auto-connect Network settings in your PC, or if you know BSSID you still can connect from your terminal).This is in Tethering/Hotspot settings on your android smartfon.

Related

SSID not visible on Android Things (Raspberry Pi 3B)

I'm trying to connect my Raspberry Pi's to a WiFi network without success. Ethernet connection works flawlessly, but as I attempt to connect to WiFi using ADB as mentioned here, nothing happens. I have also tried to use the Android Things Setup Utility without success as can be seen in the terminal output.
When I try to connect through the menu option while running with a monitor connected, my particular network is not visible, even though my work's corporate networks are visible in the same menu. It should be noted that other devices are able to connect to the WiFi in question, and using any corporate network is not possible the project.
I have also tried
Using a cell phone as hotspot with similar result
Unplugging the ethernet cable when attempting to find networks(through the monitor interface)
Changing between password/open network
Both 2.4G and 5G
Changing SSID from uppercase to lowercase
Manually changing the /data/misc/wifi/wpa_supplicant.conf but cannot find any OS files on the SD card.
Reinstalling OS image.
I'm running Google iot_rpi3 v1.0.3
There seems to be no documentation on this issue, has anyone else encountered this problem?
Did you trie 20MHz bandwidth for 2,4GHz? Some devices can not find wifi network with 40MHz bandwidth or 12 and 13 channel number.
Solved! Solved again!
It appears as if the Wi-Fi list in the GUI only can display at most three network SSID's. This lead to the corporate networks effectively 'jam' access to my Wi-Fi as the list appears to be sorted by signal strength, and my network's RSSI was weaker than the corporate one's.
Edit: It appears as if the device does not retain the connection setup when powered down and moved to a location where other networks are present, thus rendering any other network, with weaker signal than the top 3 present, unusuable.
Edit2: Changing the router's channel from 12 to 6 seemed to do the trick. Something appears to be wonky with Raspberry Pi and channel 12. Could not update the locale either to lose the region lock.

How to hide SSID on android phone

I am trying to hide SSID on my android phone. Can anyone please how to proceed for it? Is there any Android API available for the same?
Thanks in advance!!!
You can not hide AP SSID (stop SSID broadcasting or beaconing) through Android API!
SSID hiding depends on the kernel/wifi-driver that you have on your phone! Only few drivers (devices) support this feature! Also a few drivers support monitor mode!
Vendor-drivers have closed source :-( which makes it difficult to add these features to them! See bcmon project for example)
Android API allows you to connect to the network with specific SSID (it may be hided) programmatically. You should know network SSID and password (see this link about WifiConfiguration class and hiddenSSID, this link about WifiManager class, and these stackoverflow answers: programmatically create WiFi Configurations, connect to a specific WiFi network).
See this 3rd party App HiddenSSID Enabler for connecting to AP with hided SSID and this example: Connecting your Android tablet to a wireless network with disabled SSID broadcast
When SSID is hidden at wifi, you may not use wifi.
This software enable hidden SSID.
NOTE: This software will change wifi settings,
take responsibility by yourself.
Android App

Robotium: Wifi networks testing on Android Emulator

Is it possible to test wifi related tests on Android Emulator. That means in my application I have a scenario which will search a particular wifi network available and then connect to it entering password in the password field. Is it possible using Emulator only. Can it be done so that Emulator will access the wifi adapter of laptop and the available networks will be shown in the search list in Emulator.
N:B
I am using Robotium version 4.3 with ADT.
No, this is not possible.
There is no APIs to access the system WiFi adaptor.
Unfortunately, you can't enable WiFi on your android Emulator because the emulator is actually a virtual OS running on pc, which is using your laptop/pc WiFi connection.
If you want to search for WiFi networks, you better search on a real device.

Discovering wifi-direct device

I am trying out one example with of wifi-Direct for android.
I have run the the demo application on two different android phones.
Is it that both the application needs active wifi AP?
Is it necessary that we need to connect both the device to same wifi AP?
Is it that disabling wifi on the device will disconnect the wifi-direct session?
Can some one point me to one simple (basic) example of wifi-direct.
Android setting app can search and connect via wifi direct
4.0
setting app -> wireless setting other -> wi-fi direct (checked)
https://android.googlesource.com/platform/packages/apps/Settings/+/android-4.0.1_r1.1/src/com/android/settings/wifi/p2p/WifiP2pSettings.java
if this activity didn't shows on your device, try create shortcut app, such as
https://play.google.com/store/apps/details?id=com.sika524.android.quickshortcut
currently disabled p2psettings activity on AOSP source code.
so i'm strongly recommended 4.1 later device.
4.1 later
setting app -> wireless setting -> (menu) -> wi-fi direct
my test app shows how to use wifi direct api.
https://github.com/kensuke/WiFiDirectTestApp
According to Android docs:
Wi-Fi peer-to-peer (P2P) allows Android 4.0 (API level 14) or later
devices with the appropriate hardware to connect directly to each
other via Wi-Fi without an intermediate access point (Android's Wi-Fi
P2P framework complies with the Wi-Fi Alliance's Wi-Fi Directâ„¢
certification program).
So, you don't need to connect to any access point. just enable wifi and start to search available devices to connect.
disable wifi will disconnect wifi direct connection.
here is my app shows wifi direct connection and transfer files.
https://github.com/Youxian-Chen/WiFiDirectTransfer
hope this helps.

Connect android 4.0.3 phone to Wifly

How do you connect an Android 4.0.3 phone to a Wifly module using level 14 API function wifi direct? I configured Wifly to work in adhoc mode, and wrote the Android app as shown in the Android.developer guide but I can not find the peer.
Since Android 4.0, it is possible to connect an Android phone to a Wifly module in adhoc mode, without rooting, with the following technique:
With a helper app (available on Google Play or develop your own), create an Access Point on the phone and inspect the SSID, passphrase and IP address.
Configure the Wifly module with this info.
In your working app, communicate with the Wifly module through standard socket programming.
These 3 steps are described in the following posts:
http://sailboatinstruments.blogspot.ca/2012/10/talking-to-android-phone-through-wi-fi.html
http://sailboatinstruments.blogspot.ca/2012/11/gps-data-from-wifly-to-android-phone.html
http://sailboatinstruments.blogspot.ca/2012/11/gps-data-from-wifly-to-android-phone_28.html
The current limitation is that the SSID and passphrase are given non-editable random names, so that you have to reconfigure the Wifly when you create a new AP (but note the AP will live on the phone as long as Wifi is enabled, unless you remove it with the helper app). Let's hope that a future Android release will remove this limitation by allowing to keep a permanent SSID and passprase.
UPDATE: With Android 4.2.1, the above limitation seems to have disappeared! The SSID and passphrase remain the same when the access point is removed and recreated.
Its not possible to work with AdHoc mode devices via Android (in iOS you can) in normal ways.
Please read here: http://www.xda-developers.com/android/android-ad-hoc-wireless-network-support/
This link shows a way to work with AdHoc.
Auto-connect: https://dl.dropboxusercontent.com/u/101922388/WiflySanUSB.zip .When only the green LED of the WiFly modem is blinking, the circuit and the program has been successfully implemented.

Categories

Resources