How to permanently disable wifi? - android

How to permanently disable WiFi, so the users won't be able turn it on again?
This is a requirement of the customer of our special Android base devices.
I have renamed files in /data/misc/wifi/.
Then it is impossible to turn on WiFi in Settings.
But after reboot it is still possible to turn on WiFi again.
I have just entered new settings for WiFi routers.
Thanks!

Root the device or Build a custom ROM so that you can permanently disable wifi easily... I hope you won't find a better solution....

Related

How can I enable USB Debugging and WiFi on a locked phone?

I am on a Android 4.4 'HTC One SV' Phone. I don't know the password and it has asked me for google user and pass, but the wifi is turned off and im not sure if I know the password. USB Debugging is also off and I cant access settings since it is locked.
How can I turn wifi on through ADB with USB Debugging off and no way of accessing phone. ADB is not recognising the phone which I believe is because USB Debugging is off. Please help.
USB Debugging simply can't be enabled via root. Normally OEMs put a bypass such as swiping from the swype symbol to the letter S to open Google Now via Swype Keyboard. Also, this typically means the phone was stolen and the thief used the Recovery menu to format the device.

Turn off wps on 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.

How to prevent USB connection in Android?

I have app in KioskMode. Cannot allow user to use usb connection to remove app. Want to make sure user cannot tamper with the app at all via USB. I want to detect if user has connected via USB to the device, and if they do not have the right permissions, terminate that connection. Or not allow connection in the first place for normal users. Detecting the connection seems possible, but dont see how to prevent or terminate the connection programatically. I have not found the API to do this.
UPDATE: changing debug mode programmatically does not appear to be an option for a non-system app, SO question is can the connection be detected and then terminated?
The adb commands are only accessible in debug mode. Disable USB-Debugging and you can't execute these commands anymore.

Android Wi-fi AP hotspot - without internet

There are lots of post on SO regarding setting up AP (Hotspot) on android mobile. However, in all these cases, the AP is a conduit to the outside internet world. In my case, I just want a server application running over a mobile setup as an AP. And let all the client android mobiles connect to it, send their data and disconnect if they like. No internet connection is assumed (i.e, no gprs/3g etc).
My observations: If I setup a wifi AP (via settings -> tethering and portable hotspots) when it is also connected to GPRS, then another android phone can successfully connect to this AP and send the data to the application. However, if I disable the GPRS, even though the client shows that it is connected to the AP, it can't seem to send any data. It seems that an external internet connection is a necessity for the AP mode to work.
Is this understanding correct? Or am I setting something wrong?
I know that I am late to the party (more than 3 years late :) but I was searching for a solution to this problem and stumbled upon an easy workaround. I am using a Nexus 4 with Android 5.0.1 and I can easily configure my phone to use it as an Android Wi-fi AP hotspot - without internet. Just go to Settings / Data Usage and disable "Mobile data" option under the Mobile tab. Then enable the WiFi hotspot option as usual.
I was trying to get this working in order to play with a VirtualBox machine from VulnHub.com that asked for a Bridged Connection when I was commuting to work (no Internet, but with my laptop and my mobile phone I was able to make it :)
I think you have used the internet IPs in your code not the local IPs for communications,is'nt it?
I have the same use case and was looking for the same info as you are. I checked that some of the WiFi-only tablets do not even have a HotSpot setting. Even the devices that do have it, if I remove the SIM card, I cannot enable the HotSpot (I get a message asking me to insert a SIM first).
It looks like our use case is not supported by Android. Rather, the HotSpot feature was not designed with our use-case in mind. I mean, why would an end-user want to use an Android phone or tablet in a HotSpot mode if it didn't also provide outside connectivity?

Wifi functionality

Does anyone knows if the wifi networks for android phones are based on Access Point Names (APN) ? I ask because in my android application I plan to overwrite some fields in all APN's to disable cellular network, but I still want to have available the wifi for the user
AFAIK, WiFi is independent from APN settings, i.e., if you mess with the APN settings WiFi will still work (cf. the APNdroid application).

Categories

Resources