I there a way in android to provide some SSID name and passwords, so the device will connect automatically when building AOSP?
So this way we can put aside a tedious job as entering wifi pass wach time I burn the ROM into device!
I haven't seen a way to do this, but I can think of a workaround.
You can call the code to save SSID from the Provision app, which is run only once during first boot.
Or add that code in the WifiService, somewhere in this method: http://androidxref.com/9.0.0_r3/xref/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiServiceImpl.java#505
Related
I am using a HM10 Bluetooth - UART module in my embedded Device. I connect to it via the UUID with an iPhone App, but I would like to activate a PIN to connect for the first time, so that not everybody with an iPhone and a App like LightBlue or something like that, can send data to my device.
Is this somehow possible with the HM10? In the manual is written, that it is possible to use a PIN to pair, but even if I activate this, I didn't need to enter this.
Thank you
I am also using the same adapter (HM-10) or basically CC41-A module, because I have just found out that my module is a clone. I do not know that it could cause authentication issue or not, but I would recommend first identify your module. Do you have also on your board a missing crystal in the position what is shown on this picture:
http://nerdclub-uk.blogspot.com/2016/02/working-with-cheap-bluetooth-btle4.html
If it is missing it is a clone module.
EDITED:
I have just found on that blog in the comments that clone is not supporting authentication.
https://blog.yavilevich.com/2017/03/mlt-bt05-ble-module-a-clone-of-a-clone/
You're trying to change the password of the HM-10 Bluetooth Chip. To do this, you can issue an AT Command.
Assuming you're using an Arduino environment to interface with your embedded device, you'll want to go to the Serial Monitor found in Tools Serial Monitor and type in the following in the textfield:
AT + PASS [YOURPASSWORD]
Press enter or send and you should see the following:
OK + Set: [para1]
You can find more AT Commands for the HM-10 chip at http://fab.cba.mit.edu/classes/863.15/doc/tutorials/programming/bluetooth.html
Use AT command for set password:
AT+PASS?
AT+PASS[parameter]
Bond mode (0: not need PIN Code, 1: Auth not need PIN, 2: Auth with PIN, 3: Auth and bond):
AT+TYPE?
AT+TYPE[parameter]
Important: if your module version is less than V515, please don't use this command.
AT+VERR?
How to verify wifi password on iphone with objective-c.I use NetworkExtension/NEHotspotHelper to set wifi Password. So I want to verify the password,set the right password and ignore the wrong password.But I do not know how to figure it out.Is there any way I can try?
I don't think it's possible to do that. Because, first of all it is not possible to programmatically connect the device to a network(unless your device device is jailbroken and you have to use third party libraries). So it shouldn't have access to network security info also, especially for Wi-Fi password.
I am trying to use the new framework but I can not understand very well the scope.
Is it possible to connect a Wi Fi automatically?
For example, when iOS call the background service in my App I can set the password and the confidence of a particular network.
[network setConfidence:kNEHotspotHelperConfidenceHigh];
[network setPassword:#"QWERTY"];
and I can see a message under the SSID but the user has to touch the Wi Fi to connect.
My question is, is It possible to do this without the user touch it? For example, When you have a known Wi Fi the iOS is connected to this automatically.
is There a way to emulate this behavior with this framework?
Thanks.
This framework only allows you to connect selecting the network (touching it).
You can´t emulate this behavior because you can´t get into settings app, it´s the extension that get into your app and do the work
If the user has already previously connected to an SSID that you are managing through NEHotspotHelper, you can automatically connect them. If the user has never connected to the SSID in the past, or has chosen to "Forget the Network", then know you can't automatically connect them without the user manually selecting the network from the settings app.
Like Fernando Garcia Corrochano said there is no way to emulate this behavior.
I want to fetch the list of near by wifi networks and able to connect to them from our App in ios, and my Application is Enterprise App so even private api's is also fine. Stuck this issue since 2 weeks, please provide me some references..
What you require will only work on JailBroken devices, the blog(blog.guvenergokce.com/iphone-wireless-scanner-ios5/170) which #Ckouta referred also has one comment from the Blog Admin,
I’m assuming that your device is already jailbroken (otherwise not possible)
You shall create release build of sample app and upload release build in to /Applications folder.
(you can use open ssh for that )
Public API allows you to have only information about the current wifi used by your device using CNCopyCurrentNetworkInfo
In order to fetch all the wifi available in your area, take a look at: Stumbler which is using MobileApple80211. I think, it handles what you are looking for. Moreover, you can also use it to connect your device to a specific wifi. You can find a good example of what you need here (answer #9)
Just keep in mind, if you are using private API, your app will be rejected by Apple.
Although it's late but have a look at this link. You can do what you want with the use of MobileWifi.framework and thanks to Cykey there are some reversed headers to use. I have done what you want myself using the link above:)
How do I set usernames and passwords for my app and they can only be used on one device at a time?
I am making an app that I will be selling as a one-click installation rather than in the app store so I need it to be extra secure. Please let me know what you come up with. I am a beginner programmer so please try to explain in a way that I would understand. Although I have decent knowledge on how to make an app, I would like some help.
P.S. - Some sort of device lock or UDID lock would work too. Whichever way will lock best on one device!
Thanks in advance!
If you get the installation worked out (which seems impossible without requesting the user to make a jailbreak), you could setup a server and implement a web socket to check that a given user has only on instance running at any time.