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

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.

Related

Any way to backup & restore WiFi Profiles?

Hi! Is there any way possible to backup WiFi profiles (SSID & passcodes) from device and be able to restore them?
Every time I install a new ROM, I have to enter all the profiles manually, which is a major pain in the rear, specially when around mates houses!
Surely these profiles should be stored in the /data/data partition right?
I'd prefer not to install any more apps that I'll only just use to backup / restore WiFi profiles! I have heard that Titanium can backup these, but I already have My Backup Pro, Backup Everything & I have touch recovery too, so everything is fully backed up apart from my Wifi Profiles, PLEASE can anybody help?
Thanks in advance!
Arty.
Teh_Tech said:
Hi! Is there any way possible to backup WiFi profiles (SSID & passcodes) from device and be able to restore them?
Every time I install a new ROM, I have to enter all the profiles manually, which is a major pain in the rear, specially when around mates houses!
Surely these profiles should be stored in the /data/data partition right?
I'd prefer not to install any more apps that I'll only just use to backup / restore WiFi profiles! I have heard that Titanium can backup these, but I already have My Backup Pro, Backup Everything & I have touch recovery too, so everything is fully backed up apart from my Wifi Profiles, PLEASE can anybody help?
Thanks in advance!
Arty.
Click to expand...
Click to collapse
Hi,
All my WiFi profiles are backed up and restored when I use ROM CLEANER
SOLVED
Never mind, I have found the file that stores all the WiFi profiles, the location is:
Code:
/data/misc/wifi/wpa_supplicant.conf
Also, the Bluetooth profiles (paired devices) are saved into:
Code:
/data/misc/bluetoothd/YOUR-BLUETOOTH-MAC-ADDRESS/
Here you will find a few files (7 for me) which relates to your Bluetooth devices, I think 1 file contains the MAC addresses of paired devices, while another has the MAC addresses WITH the devices Bluetooth name!
So in future, before I reboot into recovery to flash a new ROM, I can copy the WiFi & Bluetooth files locations to my SD card, then I will never lose my profiles & devices when I change ROM's! No need for Titanium Backup here
If you enabled Google Backup then Wi-Fi access points should be backed up and then restored when signing into a new ROM.
k0zmic said:
If you enabled Google Backup then Wi-Fi access points should be backed up and then restored when signing into a new ROM.
Click to expand...
Click to collapse
As has been said by quite a lot of people whilst googling this, it does not work!!
Stock & rooted ROM's tested but no go, and the way I posted above is a sure-fire way to keep them!
Also, would you *REALLY* trust Google with your personal data such as SSID's & WiFi passwords with everything that has come to light about Google? not me! Better to be safe than sorry!
EDIT: thought just came to me; I'd need internet access to register my google account for it to restore, and without that I'd need mobile internet, which defeats the point of using WiFi!!! Also, I ONLY use my mobile data when I'M not near WiFi being as I have a very small data allowance per day...
Teh_Tech said:
As has been said by quite a lot of people whilst googling this, it does not work!!
Stock & rooted ROM's tested but no go, and the way I posted above is a sure-fire way to keep them!
Also, would you *REALLY* trust Google with your personal data such as SSID's & WiFi passwords with everything that has come to light about Google? not me! Better to be safe than sorry!
EDIT: thought just came to me; I'd need internet access to register my google account for it to restore, and without that I'd need mobile internet, which defeats the point of using WiFi!!! Also, I ONLY use my mobile data when I'M not near WiFi being as I have a very small data allowance per day...
Click to expand...
Click to collapse
What would they do? Go to your house to steal your bandwidth?
Wifi password backup location
Hello all, i recently formatted my galaxy note 2, with the backup option on (including the wifi password), however, the wifi password did not restore and now, i want to know the location of the wifi password backup location, so that i can manually punch in it. any help would be greatly appreciated.
Joseph
Wifi password backup location
Hello all, i recently formatted my galaxy note 2, with the backup option on (including the wifi password), however, the wifi password did not restore and now, i want to know the location of the wifi password backup location, so that i can manually punch in it. any help would be greatly appreciated.

[Q] Philips GoGear Connect3 Wifi won't connect

I picked up a new GoGear last Saturday.
This is my first Android based device, and I do not have a cell phone. Thus in that sense I am a noob.
I was initially able to connect to my home network; however, after figuring out how to root the device and adding a sound file to the the media/alarms folder I was not longer able to use songbird. I fixed that, and now I am no longer able to connect to my home wifi. I have tried a reset, a complete wipe (using the built in privacy erase function etc.) and also tried using the repair function on Songbird - it was fail during the install of the firmware.
I have eliminated issues with home wifi security by setting the network to broadcast, and removed security functionality. Despite that the network search finds the network, displays a message that it is obtaining an IP address, and then after a few minutes it stops, and reports disconnected. The process restarts, and then eventually the message of disabled comes up.
This morning, I tried using the idea of installing a new ROM hoping that would solve the issue: (From this thread).
http://forum.xda-developers.com/showthread.php?t=1396085
Still the same issue, everything seems to work, except for the wifi not connecting.
Any help, ideas, suggestions, etc. would be appreciated.
Thank you.
Update
Problem Solved,
Not quite sure how, but here is what I did.
1) I re-rooted the GoGear again
2) I removed the sound files that I put in the alarm folder.
3) I downloaded FXR Wifi Fix and rescue apk to the sd card:
I cannot post the link but it is from appbrain.
4) I installed this app, and ran it.
5) Reboot
6) It worked- alas, I do not know what the cause was.
If this helps anyone else, great.
Thank you to all who viewed my first post!

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

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.

Whatsapp backup restoring

I'm actually in a very serious problem as I have a problem with restoring my whatsapp messages please help me asap I uninstalled my whatsapp on 16th July and last I backed up it on 7th July. Now when I try to restore the messages after reinstalling it shows my google account but it doesn't show the size of backup and also it says no Internet connection please help me. Also my whatsapp images and whatsapp videos folders have disappeared. I really want to get back my chats. Hope someone will really help me as it means alot to me now
Connect to a wifi or a hotspot, or get better signal then H+
Kenora_I said:
Connect to a wifi or a hotspot, or get better signal then H+
Click to expand...
Click to collapse
I'm already using WiFi and I tried using mobile data as well both didn't help and I tried reseting network settings and all still it didn't work out
ruinaaaa said:
I'm already using WiFi and I tried using mobile data as well both didn't help and I tried reseting network settings and all still it didn't work out
Click to expand...
Click to collapse
Did you check your google account the backup.
It could be app problem, try resetting and other stuff.
Kenora_I said:
Did you check your google account the backup.
It could be app problem, try resetting and other stuff.
Click to expand...
Click to collapse
Hey yes I checked it as well in google drive it shows the backup I can't restore it locally because I deleted the whatsapp databases like or two months ago will it affect this
Try clearing the data and cache of whatsapp or reinstall it.
Kenora_I said:
Try clearing the data and cache of whatsapp or reinstall it.
Click to expand...
Click to collapse
I tried this too and tried so many things.I watched so many youtube videos and searched a lot in google as well still couldn't find any possible way to recover
Albert83BCN said:
Hi guys!
I have been facing this issue this whole week while trying to move all my chats to a new phone I just bought as with the old one the charging port was dying and I could not bear it anymore. So almost everything restored smoothly from Google Backup and it was like being in my phone again with a few wizard steps but then I Installed WhatsApp (WA) and gone through the typical activation and restoring process and. as many, I got stuck at the 24% sometimes, some others 31% and 39%, and never got past the 39%.
I Tried almost everything: restoring from Google Drive, transfer all WhatsApp directory to internal storage and trying to restore from there, etc. Going back to the old phone to create fresh backups just in case they were corrupted as many people suggests, getting every time more delay to be able to activate WhatsApp again up to 12h for both SMS and call activation... just to mess again and feel back at square one, I guess you all feel the pain.
Well, the good news is that I finally managed to restore all the chat history!!! (well, cannot be certain that 100% was restored but I do not miss anything ATM and I can go back up to 2012 chats so I guess that qualifies as "everything" hehe).
So, I'm posting here because I've been searching a lot on the forums and the reddit and for all the people that is having this issue recently, almost no body came back to report success and I know it feels really discouraging It certainly gives the impression that this issue has no fix at all, and that you should accept losing all the chat history and starting from the start again. But from all the data I've been gathering during this week, at least two or three people reported to eventually being able to restore the chat; they fell in one of these two categories: they either transferred to a different phone where the backup seemed to restore okay, and then exported and restored in the target phone with success (something like a "bridge" restore mode, most of the cases I've read did it this way) or they finally succeeded by sheer brute force by trying again and again and again.
I fall in this 2nd category. In the most recent attempt I was doing what I've been doing again and again and again with just minor variations in the workflow and finally succeeded. TL; DR; I think in reality in many cases attempts could succeed by just letting the phone restore the backup endlessly, by not giving up and assuming the restore process went wrong when it has been stuck forever at either 24, 31 or 39% and force closing..
But I know in the midst of desperation OCD kicks in and you want step-by-step success case scenario reproduction so I will tell you all the steps that I followed that I can remember that got me to finally have the backup to end successfully:
0. First of all, in the winning attempt I had already uninstalled WA from the new phone and removed totally the WA folder in the internal storage / sdcard storage. Not sure this is mandatory but just to tell this was the case.
1. Since I got WA working perfectly on the old phone at every moment, I backed up locally for the Nth f%!?&·( time. This left me with the latest local backup plus a few others in the databases folder as a result of keep messing up.
2. I copied the full WhatsApp directory from the internal storage of the old phone to a safe place. This could be the PC or whatever, but PC transfer via USB seems too sloppy. You maybe could do it via ADB, whatever, I went by the route of coping it to the external SD with some random explorer utility like ES File Explorer. It does not matter, the point is to be able to backup the full WhatsApp folder in order to restore it as similar as possible as the original. What we are more interested right now is in the database folder but having all images, videos etc in place will help in getting it like before the easiest way. (Disclaimer: Ok guys sorry if some steps are too obvious to XDA users which usually are highly educated in the matter, but I was thinking of sharing/linking this text on the reddit and others, so please bear with it).
3. I installed latest WA in the new phone, opened the app (I intended to not open but I somewhat forgot) and got to the welcome screen, immediately closed the app at that step.
3. I restored the full folder to the new phone internal storage, pure copy/paste style (as said, in my case via the SD since both phones have SD slot and was very convenient, but via USB, cloud, etc. can be done).
4. I went to the databases folder and only kept the msgstore.db.crypt12 file and the latest backup with a date (ie: msgstore-2019-11-21.db.crypt12), deleted the rest. Honestly I do not think this is crucial but I somewhat wanted to make it easier for WA to know which one to target, I thought about keeping only the msgstore.db.crypt12 but some random dude pointed that the one with the date was needed. I was under the assumption that file structure is identical in both but just wanted to get done with this and keep both, just in case.
5. Before opening again the WA to try to activate and restore with this full local copy, I opened the Android settings app and went to applications > whatasapp > storage, as suggested by user redweaver, thanks for the tip! by keeping looking at the storage usage of the app during the restore process we could get insight about if it was really doing something or the app was really stuck. Keep open for now. In my case, I saw also on the old phone that my data used for the app was 780+ MB, so I had an idea of what should be on the new phone by the time it finished (if it did!).
5b. I don't think this is really necessary but I did it just in case. I was planning to go to work and let the thing running as long as it would need, and I would make sure that the process would get maximum uptime and nothing would get in the way. So I went to Applications > WhatsApp > Battery usage (or something like it) and disabled the battery optimizations for this app. I also went to the developer mode settings and enabled do not lock the phone while it is charging and everything that looked like it might be relevant. Again, most likely this has nothing to do, but reproducible steps, right?
6. Now open WA and activate it as usual, but when it seems that the activation step ended and you go to the next screen, immediately put the phone in air plane mode or disable data/WiFi, whatever. The goal is that it cannot reach Google Drive to look for the online backup. Honestly maybe in the end is not the culprit of GDrive but many people states that the GD backup is broken at this time and suggests going the local route, so we will do it like this.
7. WA should tell you that looking for the backup is going too slow and to skip this step (sorry to not have exact message, I have it in Spanish, but something in these lines, BTW excuse my somewhat limited English ). The point here is to click on the link that says skip the step and when you are prompted with a popup, click also on Skip.
8. WA will display the typical restore / transfer-like screen where the process starts. At this point you have to enable again data plan / WiFi at least or exit air plane mode, don't know really but even if restoring from local it complains about not having internet connection, maybe needs it to encrypt with the key or something? don't know.
9. Now is the feared moment! Even this time, I got somewhat stuck at 31% again. I left it do its thing, and some time later, it prompted for the popup that has a progress-bar from 0 to 100 (honestly, what is the difference between both?!) which also got stuck at 31%. If you let it be, it starts going back and forth many times, I guess maybe its going chat per chat and the progress-bar represents each one? Dunno. Thing is, even in the prior attempts I got at this point and the backup did not finish successfully. But this time I was decided to let it do its thing as much time as it would take, until the end. In the process the phone might display a pop up saying that WA does not respond. I clicked a few times in the 'keep waiting' option, then I just forgot because I did not have time to mess with it and hoped that it was still working on the background, which bring us to step 10.
10. While we are contemplating the backup process, we can go to the settings app again and look how the internal data is going for the WA. In my case, after some time under the restore process, when I went there I saw WA had occupied 0.91 GB of data space. After going back and forth again between WA and settings, the usage keep growing: 0.96, 1.03, 1.10... I thought it was on the right track, and encouraged me to keep waiting. Maybe in the end the process is too slow for old databases. Note that some people speculates that having messages from very long ago might be the culprit here due to changes in the table structure and that this might be the reason breaking the restore process. And maybe it is the case, but even if it is, in my case I finally succeeded where previously I didn't and without deleting anything, so this does not seem to be a deal-breaker or I would have never succeeded. I say it because some people reported that deleting old conversations and trying again finally made them succeed. Now I suspect the true reason was simply that by making the database smaller the process finished earlier, but YMMV.
11. Cannot be totally sure, but in my case, I noticed that leaving WA on the background and clicking on the WA icon again might stop the process for true and bring a message about not being able to recover the chats, I got this previously, do not try to open the WA normally, only leave it temporally to look to the space usage in the settings to get back to it by swyping between recent apps to keep the same instance open and working, this was a key point in my success trial that did not happen during the previous ones.
12. And finally, while I kept switching between WA and the settings and when I last saw like 1.30GB of space used (almost twice the space compared to the old phone, maybe it leaves a lot of temp data) I don't know if I either messed with the app-switching or it really finished, but then I got prompted to the screen where you enter your name or nickname. And when I completed this step, I finally got to the chats screen and everything was like in the old phone! Where previously I would get to a lot of empty chat rooms with maybe 40 total messages restored according to WA. Hurray!
Notice that in my case it was still reporting 31% on the WA background screen under the progress bar popup when it finished!! so it seems that is not really mandatory to experience the 100% complete to have it work in the end, but YMMV.
OK, maybe not the most elegant "guide" out there but I wrote it in a hurry and my english sucks, I just hope it might help someone to not lose their WA chats forever.
Good luck!
Edit: I almost forgot but, for the sake of completeness. I also tried a certain script that can backup WA from the phone and retrieve the encryption key, it will also leave an unencrypted copy of the chats database that can later be viewed with a WhatsApp viewer like this. The script is called WhatsApp Key/DB Extractor, and it still works as of 2019, just look at the latest posts in the thread. Guys here on XDA most likely know about it but if not, you might give it a try. I tried it because I assumed that maybe I could circumvent the restore issues by going that route and pushing the backup via ADB, but turns out the legacy WA won't prepare the database due to the time out of sync issue, or at least the data seemed to be lost after performing the restore process, and the unencrypted database on the PC cannot be digested by WA latest versions by just putting it into the internal storage directly according to what other users commented. But, if you finally give up trying the restore process, it still could be relieving to know that you keep a local copy in the PC that can be viewed with another PC tool, at least you get a backup and the conversations are there, in a different way though. Maybe in the future there's a process that can restore them again to a different phone, and you could then merge the new chat database with the older backup with tools like Merjeapp.
Click to expand...
Click to collapse
This has the solution
Kenora_I said:
This has the solution
Click to expand...
Click to collapse
Thank you but today I read this in the afternoon. This guy has solved it through whatsapp databases but I don't have a way go backup locally as I deleted my whatsapp databases two months ago. All I can do is recovering from google drive but the thing in this guy's scenario his chat was actually being restoring but I can't even do that since it says that I have an Internet connection problem

Categories

Resources