[ROOT][GUIDE] Permanently Disable WiFi - Android General

When you buy a new phone for your child. You want it must be a cool phone, but you also don't want your child uses WiFi function.
I have seen many people wondering here and there to Disable the WiFi permanently in their device. So i thought to make a thread regarding this.
I have seen many posts asking to remove or rename the WiFi Modules to Disable the WiFi but when i tried that unfortunately it failed to delete the Module.
So i moved on for another step and found easy steps to Disable WiFi permanently
Tested & worked in HTC M8 (4.4.2) & Nexus 5 (5.1)
This is a simple trick played in Build.prop which can disable the WiFi of your device for ever.
All you need is :
Rooted Device
ES File Explorer
RB Text Editor
First of all i recommend you to make a system backup with TWRP
here we go :
1. Open ES File Explorer and get Root access
2. Go to system folder and open Build.prop using RB Text Editor (i recommend you to backup original file)
3. Remove the below mentioned lines in Build.prop
Code:
[COLOR="red"]wifi.interface=
wifi.supplicant_scan_interval=[/COLOR]
4. save it and reboot!!
You can notice that WiFi buttons are no longer in use
Warning!
Im not responsible for any damage caused. Always Make Backup
Disclaimers:
PM me before you post!​

#Reserved

Does this cause problems with broadcasting a Hotspot?

olearius said:
Does this cause problems with broadcasting a Hotspot?
Click to expand...
Click to collapse
No i guess
did not test that yet

please before i install new version of cm 12 how i can edit wifi to not turn on auto

Is there any Way to Disable Mobile Network Internet also ? Like 2G Edge , 3G ,4G etc.,
There is manual option to Disable Data Usage.
Is there any permanent Solution ?

Yes you can disable data permanently....
ashu55 said:
Is there any Way to Disable Mobile Network Internet also ? Like 2G Edge , 3G ,4G etc.,
There is manual option to Disable Data Usage.
Is there any permanent Solution ?
Click to expand...
Click to collapse
From my experience you have three options: 1. go into settings and disable your data that way, 2. download an app that allows for easy data on/off switching or 3. which I'm going to do myself when I buy a new (used ebay) phone in the next couple weeks for someone: contact my prepaid carrier and ask them to "disable the data". They can do this at the carrier-level. This will prevent a child for example from re-enabling the data just by clicking a button on their phone. I just verified with my carrier today that they can in fact do this. Good luck!

Hello .. sir ... I had seen that file in that text editor .. i dont found that coding... Nw what i can do.. pls tell me...
[email protected]

This did not work for my phone, as those program lines are not present in my build.prop folder, but I found a solution for my Samsung Galaxy S5 Neo (6.0.1) that I know many others are looking for, it will probably work for all the galaxy models or at least some of them. Here it is:
1. Root your phone using "oneclickroot.com", they will do everything for you, including installing TWRP and SuperSU. Be sure to pay attention to how to access TWRP (Team Win Recovery Project)... for me it was by holding down the volume up, home, and power keys simultaneously and then releasing the power key on seeing red letters. It might vary phone to phone.
2. Make a system backup with TWRP after rooting by accessing TWRP and simply clicking "backup" and then swipe. In the event that you need to restore just access TWRP and click and swipe "restore".
3. Use a file managing app like "Root Browser" by JRummy from google play to go into these file folders: "system/etc/wifi"
4. In the Wifi folder delete the first four files:
bcmdhd_apsta.bin
bcmdhd_ibss.bin
bcmd_mfg.bin
bcmd_sta.bin
4. Now reboot your phone by simply turning it off and back on again.
5. All done, your phone's wifi will no longer work.
6. If for whatever reason you don't want to be able to get it back ever again, just go delete your system backup in TWRP and you won't be able to get it back.
If you don't see these files in your phone after rooting, don't be discouraged. I figured it out with a little experimentation and I knew absolutely nothing about programming or androids... I still don't. Just make a system backup with TWRP and experiment by deleting different files that have "Wifi" in their name. Only delete one at a time or a small group of files at a time, and restart the phone every time as programming changes will not take effect until you do. Every time you brick (disable) the phone, just use TWRP to restore your OS (Operating System) using your TWRP backup. It only takes about 2 minutes to restore every time. I bricked my phone about 4 times in the process of figuring this out. Very simple and easy.
Also, your carrier will usually be willing to apply a "data block" to your account if you call them. For $2/month Koodo will apply a data block that makes it impossible to access data.

Hello,
I couldn't find neither the file "Build.prop"
neither these files.
I have an intel tab with android 5.0

me too
I have android 6.. didn't find any of them...
Jasmin74 said:
Hello,
I couldn't find neither the file "Build.prop"
neither these files.
I have an intel tab with android 5.0
Click to expand...
Click to collapse

And to enable it whats the number Code ?? I have lenovo Vibek4 note , my wifi configured interface is Disable, Please help

If I did this to disable wi-fi on my child's phone, could they simply undo it by doing a factory reset of the phone?

Disable Wifi on Moto G6 / Pie
I recently had to do the same thing with my child's phone. She was just too good at circumventing the usual child protections and getting on the internet to surf adult material and chat with random stalkers halfway around the planet.
She has a Moto G6 with Android 9.0 PIE.
1. Rooted it
2. Loaded a file manager and after much trial and error found that wifi could be disabled with name changes on:
/vendor/lib/modules/wlan.ko -> wlan.bak
/vendor/lib/modules/pronto_wlan.ko -> pronto_wlan.back
Then, reboot the phone.
The user can attempt to start wifi, but it fails. No boot issues.
thedude06 said:
If I did this to disable wi-fi on my child's phone, could they simply undo it by doing a factory reset of the phone?
Click to expand...
Click to collapse
Yes, they could. That's why I also used Google Family Link to set up a minor child account for her and made it the main account for the phone after I changed the file names above, but before rebooting. GLF prevents a factor reset from within the phone or changing the user. She could try to boot into recovery and perform a factory flash, but then it's going to want the same google account as before....and she doesn't have the password. Fastboot is locked as well. The only issue you might have is that google somehow thinks all 14 yr-olds should be independent enough to remove supervision, but I guess you could do the same thing that the kids do to get around age limits - change the birth date.
I also shut off data at the wireless provider.
Now, she's got a smart phone that calls and texts, but can't get on the internet or play store. Also, without the internet, no updates that will wipe out these changes.

Does not work for me
Hi
I have a Samsung Galaxy Grand Prime with LineageOs, rooted. I didnt find the files you were speaking about.
Except build.prop, but the mentioned lines didnt even exist in my phone files. Is there any other way to disable wifi permanently ?
Thanks

Sorry for the bump, but I really need to disable wifi in a Android 10 LineageOS based rom, but none of this solutions works...
How can I do this?

How to find Driver Files to disable the Wifi
There were a couple of bumps on this thread regarding driver files for wifi and how people weren't able to find these files on their phone.
The answer is that if you don't see the driver files mentioned in the thread above, it's because they're called something else, if they exist at all.
For the Moto 6, I spent a fair amount time doing trial and error renaming of system files until something worked. It took me some time and research to determine that for PIE, the .ko files represented some sort of driver files. Then, I went searching for .ko files with wifi in them, and then finally, I located the two files mentioned in the thread above. For your phone, they may be in a completely different directory, or named something different.
I knew that I had figured it out when I booted the phone, and was unable to get the wifi to work or even detect any signal.
Maybe there's a parameter file on your phone that controls the wifi settings, or maybe you rename driver files like I did.
I've done this a couple of times now on my kid's phones, and for each phone, the driver files were different. The last phone I did, I went ahead and posted to this forum so maybe someone else can get some benefit.
Best of luck!
-Oldguy51

An alternative solution for this issue is to assign a wrong universal local IP address for all wifi connections and the final user cant change it... Just Saying.

Wrong Universal Local IP Address
Orbitv said:
An alternative solution for this issue is to assign a wrong universal local IP address for all wifi connections and the final user cant change it... Just Saying.
Click to expand...
Click to collapse
That's in interesting concept. How would you do this on an Android phone?

etienne_9000 said:
Does not work for me
Hi
I have a Samsung Galaxy Grand Prime with LineageOs, rooted. I didnt find the files you were speaking about.
Except build.prop, but the mentioned lines didnt even exist in my phone files. Is there any other way to disable wifi permanently ?
Thanks
Click to expand...
Click to collapse
mdio said:
Sorry for the bump, but I really need to disable wifi in a Android 10 LineageOS based rom, but none of this solutions works...
How can I do this?
Click to expand...
Click to collapse
Well Well Well, I'm just 2 years late bumped on this thread .
It's Andoid 11 minimum in these times or even 12 & now 13 is also available.
But I managed to keep Wifi off while keeping Bluetooth Pairing & BT file transfers On, Hotspot On & Data On specially because Flight Mode no longer Disables WiFi, Bluetooth & Hotspot (only keeps Data off) since andoid 9 i think.
------------------ Worked on Andoid 11 GSI, Galaxy M-Series -----------------
I] If you just want WiFi disabled permanently, then Here are the steps that worked :
> Install Magisk or SuperSU And Optionally TWRP/Any Custom Recovery
> Install any Root Exploration app & grant it Root permissions
> Create a Backup (nandroid or anything that can backup your data)
> Using the Root Exploration app navigate to (vendor/etc/wifi)
> Look for the file ( wpa_supplicant_overlay.conf ), Tap and select Text Editor option
> Change to this -> [ p2p_disabled=0 ] , [ update_config=0 ], [ pmf=0 ] then tap Save.
> Reboot.
> Go to Settings >> Apps >> Bluetooth MIDI Service >> Reset the app
> Go to Settings >> Apps >> Bluetooth >> Reset the app
> Reset Network Settings (Settings >> System >> Reset Options >> Reset WiFi, Mobile & Bluetooth)
> Reset Firewall Settings(AFFirewall+, Netguard etc.)
> Reboot to Recovery
> Wipe Dalvik/ART Cache & Cache
> Reboot to System
Now WiFi & Location should be permanently disabled but you can still connect BT wireless & send/receive BT files (mp3, jpeg etc. but not apk, exe etc.) also Hotspot, Data , Manual Location (Not GPS Location) works.
#BUGS: Windows does not Connect Automatically to phone Hotspot, manual reconnect needed everytime. GPS Location breaks but Manual Location entry can be picked-up by apps like Opera Browser etc.
II] There is also another same way to get WiFi, BT, Hotspot Disabled while keeping ONLY Data Enabled but that was not the original question on this post so no need I guess.

Related

HELP!! S640 users need files!!!

I think I screwed up and overwrote something in the windows directory.
I think it's one of these three files - netbios.dll, netui.dll or redir.dll
I put those files in the windows directory, then installed HTC network rom
and now my wifi shows the icon in the top, won't go away won't connect.
and for WLAN settings I only have -> 1. Connection Status
2. LEAP
3. Enroll
4. Power Mode
I am missing the options that is usually 1. WIFI ,where you can search and connect to networks.
any ideas? or do you have those files I can have?
thanks in advance
Never mind I just hard resetted it. then brought my backup back.
first time I used my backup so It's good to know it works!!!!

[Completed] Can't change/delete wifi network in marshmallow.

Hi,
I don't know exactly where to look for help. Because, it could be a CM13 problem, a Oneplus One problem, a Titanium Backup Problem or a general Marshmallow problem. Please guide me in the right direction, where I could ask! (Or if you know the answer, I would be even happier).
///(writing this after everything followingWow, I really wrote A LOT. tl;dr: I can’t edit/delete my wifi connections on Marshmallow. I think, it’s because a new rule of Android 6, which prevents other apps (in my case my network settings) to change stuff (See paragraph 6). I have 2 assumptions (paragraph 7+8) but I still don’t know, how to change/delete my wifi connections. help!///
I also want to say, that I already asked in some german boards (hence I'm from germany), where I was immediately dismissed, because quote: "It's your fault if you install nightlies. You don't get help, if you are so stupid". Well I can't understand this point of view to some extend, but I still don't know, if its really a "nightly problem" or one of the other suspects. Please don't dismiss me directly. If you have a clue, please point it out.
Please also note, that I have under 10 posts, which prevent me to post links. I really don't want to spam and I hope I don't break any rules, but I included links to pictures in my posts. Not to spam, but because I think it's helps understanding my problem.
So lets get to it:
The used status: I was on the official CM12.1 nightly and have done updates 1-2 times a week. At university I use a TTLS/PAP connection with a certificate and my credentials (eduroam -> eduroam. org/index.php?p=faq#technology). At home and work I used a normal WPA2 connection.
What I did: I updated yesterday to official CM13 nightly with OpenGapps for Android 6. Not via the updater, but via Recovery. I did a full system backup beforehand with Titanium Backup. Booted into recovery (TWRP), wiped the usual stuff (factory reset + system partition), installed CM13 and OGapps, rebooted and setup the phone. Then I did a full restore (all data + missing apps, cause I didn't want titanium to overwrite the new Gapps). Everything worked out great. Phone runs great, my daily apps run great, no crash so far. Quite nice for such an early nightly.
Now my problem: I went to my university library 2 hours ago to work on some things in the evening. My phone is was not able to connect to the wifi (authentication problems). Than I tried to edit the network and saw, that the settings were lost (as well as the certificate). I downloaded and installed the certificate and set everything up in the edit network panel. On save, it just gave me the message: Couldn't save network (imgur. com/fBDctvE.png). So I tried to delete the network, to set it up from scratch, but I can't delete it (imgur. com/2I29bSR.png).
I did some research I found people who had (It looked like at that moment) the same problem, of not be able to edit or delete a wifi connection. So one pointed out, to settings -> backup and restore -> and reset all network connections to factory state. I did that, but all the saved connections are still there. It can't delete them. Then somebody else with such a problem, said, he couldn't delete his network setups, but with an external app (WiFi Manager) he was able to delete the networks.
Which brings me to my current point in time: I tried the app, it was not able to edit or remove my networks, but it gave me one valuable information, which is maybe the key to my problem: imgur.com/ t2JmYml.png . It says, that: "Under Android 6 only the application, which created the network, is able to edit and to remove it."
Now I have 2 assumptions:
1) It’s a problem because I restored my data via Titanium Backup. If I look at my saved networks, than I also see, that the „owner app“ is now indeed Titanium Backup (imgur. com/I44ys5s.png) and NOT network settings. Which, if I understood correctly would prohibit network settings to change or delete networks, because of: "Under Android 6 only the application, which created the network, is able to edit and to remove it.“
2) It has nothing to do with Titanium, but instead is a problem, because the networks were created with the older version of Network settings (Gapps for Lollipop). And I did a fresh install of Gapps for Marshmallow. So maybe „new“ Network settings thinks, that it didn’t create the networks, but instead they were created by „old“ Network settings.
Either way, thats it. I really don’t want to install Lollipop again just to delete the networks and than again install Marshmallow and recover everything and setup stuff.
Did I miss something? Do you have different ideas, what I could try? I have root and busybox installed, could I maybe delete the networks „manually“ via Terminal Emulator, or could I adb into my phone and search and delete these settings? I was not able to find them, but honestly: Without somebody here pointing me at the right direction, where the network profiles are stored, I would not mess around on my own. Can you help me?
Thank you!!!
Hi,
To better assist you, please post your device model number and I will guide you to where you may find your answer.
Thank you.

Help... My *rooted* Pixel won't stop downloading damn system updates

System updates are generally good, but not for my phone, for now. As you all know a rooted phone cannot just simply be updated through settings app, and FlasFfire Pixel support isn't quite there yet. BUT the thing is every freakin' time I connect to the Internet it just downloads the update automatically despite the fact itself not being able to install it, and then the phone just deletes the update then try again and again... (I have turned off automatic system updates under dev settings the moment phone booted up after rooting). It has used 6 GIGABYTES of cellular data in 2 days and is really freaking me out.
I have come up with some possible solutions, but I don't know how to realize them exactly:
1. Freeze the app which detects system updates, but I don't think there's a dedicated app just for that; so I'll have to disable apps like settings to do so, which is not practical at all.
2. Change the permission of the directory to read-only in which system update files reside, but I have no idea which one either. (the whole cache partition only contains empty folders and some small files wth)
3. Block all connection requests to Google system update servers, but apparently, I once again have no idea what the host name(s) or IP(s) are.
Xposed could probably do the job... But it's not for Android N devices yet.
So please help; could anyone give me some suggestions?
EDIT: Problem solved, I captured the traffic. If you guys also have this problem and need a temporary solution, just block all traffics to *.gvt1.com.
I followed this guide to stop the updates, but still got them so then I used this to stop the notifications and it has worked so far.
Thanks! You just help me discovered a gem of an app called "my android tools"

Delete hacker in Android core

Good day, dear forum!
For long time i tried to clean my hacked samsung smartphone. But no luck.
I perfomed FRP in Samsung service center in my town. Situation the same.
Symptoms of hacking:
1. Gmail account hacked. I registered from my email but in registration form i see completely different email, not mine.
2. In my smartphone I see to apps with the same name ("email" and so on).
3. All my apps got all possible permission to acsess my data (network, sd card, system etc). Some of my important files is deleted and destroyed by hacker.
4. When i take affort for defend from hacker (for example, using privacy guide etc), privacy guide panels and factory reset panel become untouchable after 20 min,
although they work well in first minutes after installing OS.
5. I blocked wi-fi and bluetooth connections. I have no wi-fi connection at home. But i see that NFC is running, all my apps connected to wi-fi, phone working very slowly.
I see that phone maked 5 calls during 30 min when it was turned off (!). I think, my phone use hacker's wi-fi.
What i did:
1. Performed FRP in samsung service center. No luck.
2. I installed 4 files service firmware via Odin. The same.
3. I did FRP and installed TWRP, SuperSu, LineageOS v.14. During installation i cleaned Dalvik/ART Cache, Data, Internal Storage, System, Cache.
Also i skiped google and samsung verification. But also no luck.
Finally, i understand that hackers files, apps, peaces of code etc exist not in firmware, but deeper in core.
I think there is another one superuser and he has much more permissions in system then mine.
So, my question is:
-- where i can find and delete extra superuser on my phone,
-- where i can find and delete dangerous app permissions, added by hacker,
-- where i can find and delete dangerous changes (apps, files, pieces of code) added by hacker,
-- what extra actions i can perfom to deleted hacker from my phone (exept FRP and custom OS/firmware)?
There is similar post but i don't see decisions for me
https://forum.xda-developers.com/general/security/trojan-infected-recovery-phone-partition-t3762962
Sorry for long post and my English mistakes. I will be greatly appriciated for any advice!
Yours sencerely, Olga
I cleaned partitions and installed Lineage OS again. Phone changed MAC address Wi-Fi and now use NFC connection and wi-fi. I can't block NFC and Wi-Fi, button is not working. Can you explain me how phone can be hacked if dring the installation i didn't use sim-card or wi-fi? How i can change core settings/use custom core?
OlgaMar said:
I cleaned partitions and installed Lineage OS again. Phone changed MAC address Wi-Fi and now use NFC connection and wi-fi. I can't block NFC and Wi-Fi, button is not working. Can you explain me how phone can be hacked if dring the installation i didn't use sim-card or wi-fi? How i can change core settings/use custom core?
Click to expand...
Click to collapse
it is possible that the hacker installed the software on a partition and updating will not help that. You would need to check all the partitions their size and what are their permissions and compare it to stock, wiping the phone with dd if you have a full software image (the entire hard drive image) will also work but it is a take no chances command.

Deleting Hardware files leads sometimes to brick the phone

Hey there,
I started recently to look up for a way to permanently disable my wifi, bluetooth, NFS, Network and GPS. Unfortunately I didnt find a proper method to do that. There was the option to physically break the hardwares, but I didnt want to risk that, if I get something wrong there I wouldnt have a 2nd chance. Except of that, there was only some ways to disable the wifi but it was easy to re-enable it again.
Anyways I figured out, that I need to root my device in order to remove hardware files, but the problem is I dont know WHICH files would be okay to remove.
I'm using a samsung galaxy s8 with Android 9 Pie
Till now I rooted my device twice and deleted hardware files,
the first time I deleted wifi hardware files from the system/etc/permissions folder. That lead to brick my phone.
The second time I deleted hardware files of bluetooth and nfc from:
system/lib
system/lib64
system/vendor/etc/init
system/vendor/etc
system/vendor/lib64
system/vendor/permessions
surprisingly it worked, I totally disabled bluetooth and nfc.
Then I wanted to proceed to remove gps (I figured out S8 aint using gps but gnss) so I removed the gnss files and folders. But this time, it bricked my phone, so I had to reinstall the samsung firmware again and now I rooted my device again.
Before I start trying again, I would like to ask you, if any of you have some knowledge about this and if there is any no-go files, which I should never remove or smth.
I dont really just want to try out over and over, it is taking much time to do all this... I hope somebody can help me out.
Additionally, do any of you know how the network hardware is called? basically the hardware which lets you call people or just the hardware which connects to a network provider.
--------------------------------------------------------------------------
The reason why I want to do this shouldnt be important right? but if you want to know why:
I want to keep my privacy. I want to be able to connect to the internet only via ethernet cable and also I want to use my device more as a map to plan routes, camera, calc etc.
ALOT of other people want to do this too, but nobody (after searching for over 20 hours) had the right solution. Every way I found, it was possible to reenable it easily.
Thank you for taking your time and reading my issue! I hope you can help!!
I will give an update about this anyways!
I'm using a samsung galaxy s8 with Android 9 Pie
Model: SM-G950F
Update:
----------------------------------------------
I found a way to disable the following hardware:
(disclaimer: there is probably tons of methods to permanently disable hardware, but this is how it worked for me)
Ofc you need to root you device, I used TWRP as boot loader.
MAKE A BACKUP OF YOUR DEVICE
you could loose your data forever!! and dont do the same mistake I did, not backing up the contacts.
Contacts are NOT in the internal storage, therefore you need to do a back up while rooted!!!
Tip: every file you edit or delete, make a backup of the original one and name it differently. If your android bricked, then you can use TWRP and delete the modified file and rename the backup again to the original name. This would help you to prevent wasting much time.
Bluetooth:
Delete the following file:
/system/vendor/lib64/hw/[email protected]
WiFi:
Delete the following file:
/system/vendor/lib64/[email protected]
GPS:
Delete the following file:
/system/vendor/etc/gnss/gps.xml
Some files I just edited them, these are permissions file, if you delete them completely, android wont work anymore.
You need to delete everything between <permissions></permissions>
You can edit the files using text editor
GPS:
Edit the following file:
/system/vendor/etc/permissions/android.hardware.location.gps.xml
NFC:
Edit the following file:
/system/vendor/etc/permissions/android.hardware.nfc.xml
Telephony:
I tried to dial emergency numbers, which should be actually possible with or without a sim card, but it didnt work.
Edit the following file:
/system/vendor/etc/permissions/android.hardware.telephony.gsm.xml
And that's it, now just restart your android and it should work with no problems.
I would recommend to download everything you want to have on your phone, before you get rid of wifi.
WARNING:
Most google applications like google map wont work, after you get rid of the gnss/gps. Google doesnt like it, if you turn off your location lol
The network data (LTE, 4G ...etc) is not tested and I am not sure if it is even disabled, I have the feeling that Telephony is not the same. I dont use a sim card anyways, so yeah. But if I found out a solution for that too, I will post it here for sure!
have fun!!

Categories

Resources