android-wifi

How to update an already created Wi-Fi configuration (or “UID XXX does not have permission to update [Wi-Fi] configuration error”)?

佐手、 提交于 2020-08-02 10:48:36
问题 I am developing an app which manages the Wi-Fi connections. My scenario is as follows: Let's say, the entire building has a Wi-Fi network named “testing-tls”. My app should be able to connect to only selected access points (based on BSSID or MAC ID). We use TLS authentication mechanism to verify the user (Custom CA Certificates). I am able to establish a connection through the app, but failing when I try to connect to a different access point (different BSSID). Even though I created the Wi-Fi

Android 10 / API 29 : how to connect the phone to a configured network?

给你一囗甜甜゛ 提交于 2020-07-05 03:19:27
问题 I am working on an application in which one the user has to follow these steps : connect the phone to a wifi ; connect the phone to a dedicated hotspot from a connected object. When the user is connected to the dedicated hotspot of the connected object, the application does some HTTP requests in order to configure it. Then, I would like to reconnect automatically the application to the global wifi of the step 1. From API 21 to API 28 this feature is very easy to implement because I know the

ServerSocket.getLocalSocketAddress() returning empty

筅森魡賤 提交于 2020-06-16 17:27:07
问题 I'm trying to create a local server with Wi-Fi P2P between an Android phone and a Raspberry Pi, with the Android as the host. I have been able to successfully establish a P2P connection using wpa_cli on the Pi, but now I am trying to use a C client socket to connect to the phone and transfer data. However, the line Log.d("Socket waiting", serverSocket.getLocalSocketAddress().toString()); spits out D/Socket waiting: ::/:::8888 . It doesn't seem to have an address at all, so how am I supposed

ServerSocket.getLocalSocketAddress() returning empty

二次信任 提交于 2020-06-16 17:26:09
问题 I'm trying to create a local server with Wi-Fi P2P between an Android phone and a Raspberry Pi, with the Android as the host. I have been able to successfully establish a P2P connection using wpa_cli on the Pi, but now I am trying to use a C client socket to connect to the phone and transfer data. However, the line Log.d("Socket waiting", serverSocket.getLocalSocketAddress().toString()); spits out D/Socket waiting: ::/:::8888 . It doesn't seem to have an address at all, so how am I supposed