Deleting Hardware files leads sometimes to brick the phone - General Questions and Answers

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!!

Related

[ROOT][GUIDE] Permanently Disable WiFi

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.

Honor 6 L04 issues with the Lollipop update

After downloading and flashing the official B521 update, sure there was no usable keyboard app, so I had to voice search to a 3rd party site to download one, but other than that all was well... or so I thought. I happened to switch my phone's mobile data setting to 3G only, during a spot of bad reception (the constant switching made it impossible to do anything), after which I realised that this update had removed all the LTE options from the dropdown menu.
My first instinct was to go to the "project act menu" from the dialler, but that would not load at all, when typed in correctly and confirmed...the phone just clears the number input area and doesn't open any menu. At this point, I did not know how I was going to sort out the issue, I thought maybe a .prop or .db file would be the answer. I have edited such files on other phones to do a number of things, should be simple right? Boy was I wrong.
Before beginning to poke around I did some searches of course, and found that you can get the 4G options back, by editing a value in the /data/data/com.android.providers.settings/databases/settings.db ...So I unlocked my bootloader, rooted, and did just that. Put the file back in place, swell, guess I'll reboot. Then it froze on the Honor logo, impossible to turn off, with good timing--I was able to access the stock recovery and fastboot modes.
Since then I have been able to get my phone to boot by deleting the settings.db, so that Android created a new one, only problem is... this new file of course has so much hardware specific things missing from it...It's kind of a joke. All I wanted to do was allow myself to freely switch between 4G and 3G on the Lollipop update, and in trying to do so, bricked the device and had to lose all the stock settings in order to get it working again.
I changed the permissions and ownership of my edited settings.db (as best as I could in root explorer) after replacing it, but nothing seems to help as far as I can tell, if the settings stay I cannot boot.
How exactly am I meant to get the original database back? I assume if I can downgrade to the Kitkat, that will sort that side out, but even if I do that...and then reflash Lollipop... I'm still going to be losing the 4G option, unless I never change it from auto--ever.
This is just silly and frustrating... Literally all I want is the official settings.db for this phone on lollipop aside from: the network modes changed so that I can switch between 2G/3G/4G, 3G only, and 4G only modes. I cannot for the life of me figure out how to do this on my own, and I wish I made a backup before trying...
Please help, thanks~

[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.

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.

WIFI AND BLUETOOTH GONE CRAZY. MAC ADDRESS CHANGED TO 02:00:00:00:00:00. HOW TO FIX?

THE ORIGIN OF THE ISSUE:
Everything began 1 month ago. I was using my Nexus 5 like I always did. I had my WiFi turned on because I was chatting with my friends on Instagram and I left my smartphone charging. There were notifications and the notification light turned on showing me that I had two texts from Instagram app. When I tried to turn it on the screen, I pressed the power button, but the screen did not turn on. I pressed the power button again and again and again, but still the same. I tried to force-reboot my device and that's what I did. When the screen started again, my WiFi was stuck at "turning WiFi on...", also, my Bluetooth was not working properly too, because when I tried to turn it on, it automatically turned back off.
ATTEMPT TO FIX #1:
First thing I tried was unrooting and reinstalling stock using Nexus Root Toolkit. That didn't work... I tried doing a simple factory reset from the phone settings, also didn't work...
After those fails, I noticed that my MAC address was corrupted, showing this: 02:00:00:00:00:00 so I searched the Internet for stuff related to this MAC address error and found people with similar problem just like mine. I found solutions like deleting /persist/wifi folder (my friend did not recommended me to do so after I did this). So, I did the thing, AND IT DID NOT HELP. Tried returning to stock using Nexus Root Toolkit AND IT DID NOT HELP. I had an idea to delete my entire system using TWRP and I thought that reinstalling it would fix the problem. But I was noob at the moment, didn't know how to flash after deleting it. Anyway, I went on, and deleted system, but I didn't know how to reinstall and I was without a smartphone for 3 weeks. I was sooooooooo sad cause this was the worst issue I had to deal with... No smartphone... No WiFi.... life sucks (still does, I am sooo depressed for a stupid smartphone)... Well, obviously, NOTHING HELPED.
ATTEMPT TO FIX #2:
After those 3 weeks, I finally managed to find a way to reinstall OS on my smartphone again (using Nexus 5 factory image found in Google site for developers). I was sooo happy because at least I managed to turn the smartphone back on. So, step two was to check if WiFi worked. Well... not as I expected things to be. It didn't work... Obviously... Well, after doing simple experiments, I tried to do "the thing again". After deleting file .macaddr from /persist/wifi folder, without deleting the folder, only the file, WiFi turned back on!!! I went in tears thanking God. Sooooo much happiness!!! I desided to insert WiFi APs that I prevously saved in a wpa_supplicant.conf file, and guess what.... I F***** UP WIFI AND SENSORS!!! I was sooooo mad!
ATTEMPT TO FIX #3:
Well, the next day, I attempted to do a system delete again, but this time, I used another computer device, my family laptop. I deleted system, and this time, I didn't flash anything using Nexus Root Toolkit, but I used this Nexus 5 factory image again. WIFI WAS BACK ON!!! YEESSS!!! I was crying soooo hard!! I again thanked God!!! But it didn't last long... After two days, I turned on my WiFi to check my messages from Instagram, sadly, my WiFi was again stuck on "turning WiFi on..." and my smartphone rebooted by itself (again). So... guess what. I DEAR YOU TO GUESS WHAT HAPPENED NEXT!!! MAC address was back to this STUPID 02:00:00:00:00:00. I had enouch. I installed Termux, I installed a packet called "macchanger" and tried to change my MAC address to something random. I used command "macchanger -r wlan0" and I rebooted. This changed my MAC address to something random. Now, WiFi turns on and when I open an application to use WiFi with, it turns off immediatelly... Also, my MAC address is on changing again with command "macchanger -r wlan0" and is stuck in the previous randomized MAC address. Using "macchanger" command, I also noticed that my "permanent" MAC address is now: 00:00:00:00:00:00 (something that was never valid).
WHAT DO I DO?
DO I NEED TO BUY A NEW SMARTPHONE BECAUSE THIS ONE IS PRETTY F***** UP?
DO I NEED TO REPLACE THE ENTIRE MOTHERBOARD?
IS THIS EVEN A HARDWARE ISSUE?
IS THIS A SOFTWARE ISSUE?
DO I NEED TO REPLACE FIRMWARE? IF SO, HOW DO I DO THAT?
DOES THIS HAVE SOMETHING TO DO WITH /PERSIST?
WHAT DO YOU PROPOSE? BECAUSE I AM TIRED OF THIS STORY, REALLY...
SPECIAL URL: https://forum.xda-developers.com/t/...y-are-and-how-to-get-it-back-if-lost.3307793/
Retr0.Hacker said:
THE ORIGIN OF THE ISSUE:
Everything began 1 month ago. I was using my Nexus 5 like I always did. I had my WiFi turned on because I was chatting with my friends on Instagram and I left my smartphone charging. There were notifications and the notification light turned on showing me that I had two texts from Instagram app. When I tried to turn it on the screen, I pressed the power button, but the screen did not turn on. I pressed the power button again and again and again, but still the same. I tried to force-reboot my device and that's what I did. When the screen started again, my WiFi was stuck at "turning WiFi on...", also, my Bluetooth was not working properly too, because when I tried to turn it on, it automatically turned back off.
ATTEMPT TO FIX #1:
First thing I tried was unrooting and reinstalling stock using Nexus Root Toolkit. That didn't work... I tried doing a simple factory reset from the phone settings, also didn't work...
After those fails, I noticed that my MAC address was corrupted, showing this: 02:00:00:00:00:00 so I searched the Internet for stuff related to this MAC address error and found people with similar problem just like mine. I found solutions like deleting /persist/wifi folder (my friend did not recommended me to do so after I did this). So, I did the thing, AND IT DID NOT HELP. Tried returning to stock using Nexus Root Toolkit AND IT DID NOT HELP. I had an idea to delete my entire system using TWRP and I thought that reinstalling it would fix the problem. But I was noob at the moment, didn't know how to flash after deleting it. Anyway, I went on, and deleted system, but I didn't know how to reinstall and I was without a smartphone for 3 weeks. I was sooooooooo sad cause this was the worst issue I had to deal with... No smartphone... No WiFi.... life sucks (still does, I am sooo depressed for a stupid smartphone)... Well, obviously, NOTHING HELPED.
ATTEMPT TO FIX #2:
After those 3 weeks, I finally managed to find a way to reinstall OS on my smartphone again (using Nexus 5 factory image found in Google site for developers). I was sooo happy because at least I managed to turn the smartphone back on. So, step two was to check if WiFi worked. Well... not as I expected things to be. It didn't work... Obviously... Well, after doing simple experiments, I tried to do "the thing again". After deleting file .macaddr from /persist/wifi folder, without deleting the folder, only the file, WiFi turned back on!!! I went in tears thanking God. Sooooo much happiness!!! I desided to insert WiFi APs that I prevously saved in a wpa_supplicant.conf file, and guess what.... I F***** UP WIFI AND SENSORS!!! I was sooooo mad!
ATTEMPT TO FIX #3:
Well, the next day, I attempted to do a system delete again, but this time, I used another computer device, my family laptop. I deleted system, and this time, I didn't flash anything using Nexus Root Toolkit, but I used this Nexus 5 factory image again. WIFI WAS BACK ON!!! YEESSS!!! I was crying soooo hard!! I again thanked God!!! But it didn't last long... After two days, I turned on my WiFi to check my messages from Instagram, sadly, my WiFi was again stuck on "turning WiFi on..." and my smartphone rebooted by itself (again). So... guess what. I DEAR YOU TO GUESS WHAT HAPPENED NEXT!!! MAC address was back to this STUPID 02:00:00:00:00:00. I had enouch. I installed Termux, I installed a packet called "macchanger" and tried to change my MAC address to something random. I used command "macchanger -r wlan0" and I rebooted. This changed my MAC address to something random. Now, WiFi turns on and when I open an application to use WiFi with, it turns off immediatelly... Also, my MAC address is on changing again with command "macchanger -r wlan0" and is stuck in the previous randomized MAC address. Using "macchanger" command, I also noticed that my "permanent" MAC address is now: 00:00:00:00:00:00 (something that was never valid).
WHAT DO I DO?
DO I NEED TO BUY A NEW SMARTPHONE BECAUSE THIS ONE IS PRETTY F***** UP?
DO I NEED TO REPLACE THE ENTIRE MOTHERBOARD?
IS THIS EVEN A HARDWARE ISSUE?
IS THIS A SOFTWARE ISSUE?
DO I NEED TO REPLACE FIRMWARE? IF SO, HOW DO I DO THAT?
DOES THIS HAVE SOMETHING TO DO WITH /PERSIST?
WHAT DO YOU PROPOSE? BECAUSE I AM TIRED OF THIS STORY, REALLY...
Click to expand...
Click to collapse
You said you were rooted.
Any chance you made a backup, especially a backup from the efs partition?
User699 said:
You said you were rooted.
Any chance you made a backup, especially a backup from the efs partition?
Click to expand...
Click to collapse
What is EFS? What backup do I do. Cause, I'm a noob and all, and I am not the type of a developer... But, I guess I am able to do a backup using root. But how will this work? How will this help the situation. Could you explain to me friend? (If you are willing to do so of course)
Retr0.Hacker said:
What is EFS? What backup do I do. Cause, I'm a noob and all, and I am not the type of a developer... But, I guess I am able to do a backup using root. But how will this work? How will this help the situation. Could you explain to me friend? (If you are willing to do so of course)
Click to expand...
Click to collapse
Maybe you want to have a look on this thread: https://forum.xda-developers.com/t/...y-are-and-how-to-get-it-back-if-lost.3307793/
EFS stands for Encrypted File System. […]
It contains your IMEI, lots of files revolving around your SIM card and Wifi/Bluetooth (this includes your MAC address for all the radios of your phone), and lots of other things that should never ever under any circumstance be deleted or touched. […]
If you lose your EFS folder, you lose pretty much any chance of your phone being able to use data, Wifi, Bluetooth […].
Click to expand...
Click to collapse
If you had done a backup (e.g. via twrp) prior to rooting you might have also done a backup of that efs partition.
And if you had a backup you could restore that partition. Don't know if you somehow managed to mess this partition up (or if its related at all in your case. Someone with more knowledge hopefully sees your thread) but if you did, there would be no point in backing up that partition now (if its damaged, there is no use to backup a damaged partiton to restore it afterwards).
You can ask me everything you want, don't worry. But I don't know if I'll be able to explain it.
You could try to follow above mentioned guide. If it works, please upvote that guide so others find that helpfull content too.
User699 said:
Maybe you want to have a look on this thread: https://forum.xda-developers.com/t/...y-are-and-how-to-get-it-back-if-lost.3307793/
If you had done a backup (e.g. via twrp) prior to rooting you might have also done a backup of that efs partition.
And if you had a backup you could restore that partition. Don't know if you somehow managed to mess this partition up (or if its related at all in your case. Someone with more knowledge hopefully sees your thread) but if you did, there would be no point in backing up that partition now (if its damaged, there is no use to backup a damaged partiton to restore it afterwards).
You can ask me everything you want, don't worry. But I don't know if I'll be able to explain it.
You could try to follow above mentioned guide. If it works, please upvote that guide so others find that helpfull content too.
Click to expand...
Click to collapse
I did not mess with any partitions. I do not like to mess with my system. I never did. I always made a backup if I had to do something with the system. Before the incident, I never EVER messed with the system. I only started some experiments after the thing happened. I first deleted the whole content of /persist folder (which I restored, because I had a backup), then I deleted .macaddr file inside /persist/wifi folder which actually turned on my WiFi access again, only to f*** things up after doing something stupid, which is to replace wpa_supplicant.conf file inside the /data/misc/wifi folder with one I had with my previously saved WiFi Access Points and their passwords, which resulted to the corrupted MAC address again (02:00:00:00:00:00). No, my WiFi can be scanned successfuly and I am able to connect to it, but still, it does not work properly, because when it connects, it automatically disconnects when I try to use apps like Chrome and Instagram and other apps that need Internet to use. I am currently deleting and re-installing my Factory Image and this will be the last time...
Also, I will attach your URL for sure.
Thanks.
Retr0.Hacker said:
I did not mess with any partitions. I do not like to mess with my system. I never did. I always made a backup if I had to do something with the system. Before the incident, I never EVER messed with the system. I only started some experiments after the thing happened. I first deleted the whole content of /persist folder (which I restored, because I had a backup), then I deleted .macaddr file inside /persist/wifi folder which actually turned on my WiFi access again, only to f*** things up after doing something stupid, which is to replace wpa_supplicant.conf file inside the /data/misc/wifi folder with one I had with my previously saved WiFi Access Points and their passwords, which resulted to the corrupted MAC address again (02:00:00:00:00:00). No, my WiFi can be scanned successfuly and I am able to connect to it, but still, it does not work properly, because when it connects, it automatically disconnects when I try to use apps like Chrome and Instagram and other apps that need Internet to use. I am currently deleting and re-installing my Factory Image and this will be the last time...
Also, I will attach your URL for sure.
Thanks.
Click to expand...
Click to collapse
Another thing which would be helpful:
If your problem is still present you might want to have a look at the logs. That way it's easier to see what causes this behavior.
Code:
adb logcat > log.txt
Run this and try to reproduce the error.
Don't worry about messing with anything. We don't know what happened and sometimes the best of us do things they shouldn't do.
And it seems that also other things (like installing a custom OS) messed with partitions somehow.
But yes, doing a backup prior to modifing is extremly wise – keep up that habit!
I would suggest to try this solution I found:
Aniki43 said:
My Solution {Nexus 5 stuck on "Turning wifi on"}
MY Nexus5 got the same problem today WiFi just stopped working suddenly. The mac got some stupid address like 2.00.00.00. I tried every thing still nothing. I have already rooted my nexus so tried different roms but issue still remains.
Then i just remembered about the ROM UBUNTU Touch i have installed it and WiFi in Ubuntu start working again with original mac address. I am currently using Ubuntu touch and didn't try to reinstall or reset the android rom again.if some one try this and got WiFi working like me please inform me that if the WiFi still works if i reinstall android system.
If you want to download Ubuntu touch download it ubports
Click to expand...
Click to collapse
It is said that the "fix" stays after Android is reinstalled afterwards.
momojuro said:
I would suggest to try this solution I found:
It is said that the "fix" stays after Android is reinstalled afterwards.
Click to expand...
Click to collapse
I saw this thread before. I did not try to flash other OS than the one I use now. I was also thinking downgrading to Android 5.1.1 (because I am currently using 6.0.1 with MOB30H build) and I might try some time.
BTW there is another problem now. I installed a packet from Termux called "macchanger" and I used the packet in order to - what else - change my MAC address. The packet seems to work. It DID change my MAC address and I am now able to scan for local WiFi. But the thing is that every time my I try to connect ti the Internet, WiFi automatically closes, and the randomized MAC address is permanently stuck ( I think, because I can reset it sometimes, but still, it changes back the the one who got randomized first)
I may get a new smartphone for WiFi, calls and stuff and use my Nexus 5 in order to try and find a fix for it. Idk...

Categories

Resources