Hot topics

Selling your smartphone? A factory reset alone won't protect your data

AndroidPIT encrypted secure security lock locked locks
© LuckyStep/Shutterstock - Montage: nextpit

Google’s built-in factory reset option can leave your data exposed even after a reset. Here’s why a factory reset doesn’t wipe all your data, and what you can do about it before you sell your smartphone.

There are various good reasons to perform a factory reset: fixing bugs following an Android update, general housekeeping for maintaining Android performance, and supposedly wiping all data from your phone.

The factory reset, we’ve always been told, will delete all data, accounts, passwords and content from your Android device. The problem is, this is only partially true.

For example, the security firm Avast bought 20 used cell phones off eBay and used readily available recovery software to recover incredible amounts of personal data from the devices, including 40,000 photos, 1,000 Google searches, hundreds of emails, and even a loan application. It's scary to imagine what others might find on your phone after you sell it.

Reset to factory settings: why doesn't it work?

The factory reset problem was uncovered by some Cambridge University researchers in the first major study of this taken-for-granted Android security feature. The researchers tested a range of second-hand Android devices running several different Android versions and found that in all cases they were able to recover account tokens – which are used to authenticate you once a password is entered the first time – from service providers such as Google, Facebook and WhatsApp. In a staggering 80 percent of cases, they were able to recover the master token.

The master token is essentially the key to the front door, the equivalent of installing a top-notch security system and then hiding the key under the doormat. Once a master token is recovered, the user’s credential file can be restored and all your data re-synced to the device: that means emails, cloud-stored photos, contacts and calendars.

AndroidPIT encrypted secure security lock locked locks 1
Factory resetting alone isn't enough to keep your Android phone safe. / © jijomathaidesigners/Shutterstock - Montage: AndroidPIT

Why is private data recoverable even after a factory reset?

There are a few reasons. Part of the blame is with the manufacturers who simply don’t provide the software required to fully wipe flash storage. Likewise, flash storage is notoriously hard to wipe, and of course, Google is to blame for not providing a more fail-safe option for users.

The researchers went on to note that while security and antivirus companies may use these findings to promote their own tools and services that the only real solution was likely to come from the vendors themselves.

Unfortunately, even devices with built-in encryption are not safe from these weaknesses. The decryption key is also left intact on a device once it has been factory reset. While that key is itself encrypted, gaining access to it would be a few days’ worth of work for most hackers, according to the researchers.

AndroidPIT android pie 0090
Even those with the newest Android phones running Pie should take extra precautions. / © NextPit

How to factory reset properly, removing all your data

The main things you can do to protect yourself is to encrypt your phone. The option to encrypt your phone will be located in different places in your device's settings depending on the manufacturer, but in general, it can be found in Settings > Security > Encrypt phone. If your phone comes with Android 6.0 or above, it may already be encrypted by default.

When you encrypt your device, use a strong, randomly-generated password that contains a mixture of upper- and lower-case letters, numbers and symbols and which is at least 11 characters long. The issue with this is that it so awkward to type on a regular basis that most users simply won’t do it.

Alternatively, once a phone has been factory reset, the flash storage can be refilled with useless data to overwrite the tokens and cryptographic keys left in flash storage. This could be done in a rudimentary way with a few large video files, or with an app made for this purpose. There are several highly-rated apps available on the Play Store, like Secure Erase with iShredder 6. (Of course, if you want to be extra safe while using an app to fill the phone with dummy data, it would need to be installed outside of Google Play to avoid a Google token being registered on the device once again.)

This solution, however, raises issues for users that find themselves with a lost or stolen device, or for those devices that have been remotely wiped with Android Device Manager. Until a legitimate solution can be found, just be careful who you sell your second-hand phone to.

Have you sold a phone in the past? Did you think a factory reset would protect your data? Share your thoughts in the comments. 

Best smartphones to buy in 2024

  The best Android phone The best iPhone Best camera phone Best mid-range 2023 Best Foldable Best compact foldable
Image Samsung Galaxy S23 Ultra Product Image Apple iPhone 15 Pro Product Image Google Pixel 8 Pro Product Image Google Pixel 7a Product Image OnePlus Open product image Samsung Galaxy Z Flip 5 Product Image
Review: Samsung Galaxy S23 Ultra
Review: Apple iPhone 15 Pro
Review: Google Pixel 8 Pro
Review: Google Pixel 7a
Review: OnePlus Open
Review: Samsung Galaxy Z Flip 5
Go to comment (44)
Brittany McGhee

Brittany McGhee

Brittany loves to keep up with the latest technology and innovation, so she is excited to have the opportunity to write about the wonderful world of Android. She thinks spreadsheets and numbers are fun, in addition to reading books and volunteering.

View all articles
Liked this article? Share now!
Recommended articles
Latest articles
Push notification Next article
Write new comment:
All changes will be saved. No drafts are saved when editing
Write new comment:
All changes will be saved. No drafts are saved when editing

  • 1
    Vandoid Jun 18, 2019 Link to comment

    Has this problem been solved?

  • CJ Brown 29
    CJ Brown Jun 7, 2019 Link to comment

    I suppose (which was already mentioned) Secure Erase from Google Play and then Factory Reset (and then hope that does the job?)

    I have donated my old phone's to charity (military personnel), without being hacked ... so I consider myself lucky.

  • Giuseppe Romano 3
    Giuseppe Romano Apr 2, 2019 Link to comment

    You can use "Secure Eraser" from Play Store

    CJ Brown

  • 20
    Reg Joo Feb 13, 2018 Link to comment

    I don't sell my old phones, I'd rather make a phone tech museum(shows me how my phone habit, and knowledge has advanced over the years, hey ya gotta have a mini hobby). From my first phone, a tracfone, that I used as a red cross worker for the Katrina flood, to today, most of my phones are in very good shape(never cracked a screen, busted a sim tray, etc..) No one will ever get my data, that way.

    Brittany McGhee

    • Brittany McGhee 21
      Brittany McGhee Jun 6, 2019 Link to comment

      This is a great idea!

  • Dillon Vanalilla 1
    Dillon Vanalilla Oct 12, 2017 Link to comment

    No matter how many times I do a factory reset I am still being asked for a password? does anyone have a solution for this?

    • 1
      cici Oct 5, 2019 Link to comment

      Once clicking on factory reset, are you going down to where it says, "clear data with all users?" I believe I had this same problem years back and I believe that is what cleared the password

  • 1
    Emerald lo Jul 7, 2017 Link to comment

    Okay I've done factory reset and my phone is still frozen. Can someone please tell me what is wrong with my phone because it was fine before?

    • Bastian Siewers 66
      Bastian Siewers Jul 7, 2017 Link to comment

      Hi Emerald, which phone are you using?

      Lary Lary

      • Lary Lary 1
        Lary Lary Jul 20, 2017 Link to comment

        Hello, I have the same problem here. I made factory reset but when I rebooted it, it doesn't open. What can I do? My device is Huawei Y625-U51

      • Bastian Siewers 66
        Bastian Siewers Oct 12, 2017 Link to comment

        Hi, what exactly is happening? Does it constantly reboot? Does it freeze?

  • 1
    Steven Mullen Jun 22, 2017 Link to comment

    So assuming someone has deleted images from their phone (obviously I know they aren't totally gone), then ran a factory reset about 15 times, what are the chances of these deleted images being found during a routine repair/system flash?

    I guess I'm asking whether these just pop back up on the phone straight a way, or whether someone has to set out to specifically look for them, and, if so, how hard do they have to look, would this would form part of a normal repair?

    I sent my smart platinum 7 off to Vodafone for repair (running android 6. something) and am now having a mild panic attack that pictures of a "personal" nature :) are going to show up,. I ran an off the shelf photo recovery app before I sent it and nothing showed up (the same app found them before I did the re-set), am I likely to be okay or are my pics going to go viral???


  • 1
    Doreen F Jun 21, 2017 Link to comment

    At last I'm finally getting a better understanding of the problem I'm having with my smartphone and Android 6! Unfortunately, the article doesn't help me in my current situation: I don't remember the google account details I used to be able to use my phone! I had to do a hard reset but I now can't resync the phone. Can anyone tell me how to totally wipe the google account information from the phone when I'm not in normal use situation? I've been going round in circles on google sites with no success.

  • Michal Horna 14
    Michal Horna Jun 9, 2017 Link to comment

    If I sell the phone, I do factory reset and play the whole sowtware via ODIN
    Then restore the settings again.
    Otherwise, it is not bad, once every three months to restore data, the phone clears and runs better.

  • My1 37
    My1 Jun 7, 2017 Link to comment

    judging the comments this seems like it was warmed up at least 2 times, way to go (/s)

    but on a more serious note, why cant they even clear out a key for encryption properly? especially since it's so much easier than wiping everything which takes ages and wears off the memory.


    • 2
      kgbme Jul 21, 2017 Link to comment

      Heh, why. Is it because dimwits worked on that particular implementation, because the supervisor said "it's good enough", or because it's a design flaw of the (operating) system - the bottom line is that it seems that Google just doesn't care.

      They couldn't care less, right? Otherwise, this and a myriad of other "facepalm" issues would've been dealt with.

  • Rizki Adrian 1
    Rizki Adrian May 27, 2017 Link to comment

    how about messages in apps like whatsapp and telegram ? they store the messages in server and not internal memory right ? so the messages cannot be retrieved this way right ?

    • My1 37
      My1 Jun 7, 2017 Link to comment

      actually whatsapp solely stores on client for telegram you have at the very least a cache which stores stuff for when you are offline and telegram secret messages are also client only.


    • 2
      kgbme Jul 21, 2017 Link to comment

      All stored locally, when displayed on screen. It depends on the application, how they scrub deleted items and whether that particular memory allocation has been written over, once freed.

  • 2
    Tyler Stockdale May 15, 2017 Link to comment

    If there's a problem with the device encrypting flash storage data, that would be due to the Android OS and not google. This is a major security flaw on Android's part because if you're someone who saves all of your passwords via an app or text document, you're security is seriously compromised!

    Let's say you sell your phone on Kijiji and it just so happens that a notorious hacker buys it. They could hack it, recover all of your data and web browsing history. Even after you delete files there is always metadata left. It's like smashing them into hundreds of tiny basic pieces. Recovering it puts these pieces back together and restores the files/data.

    If you had a password to your bank account saved on your phone, they could recover that and all of your browsing history. They would know which bank you signed into and (with a good VPN and security) they could log in and be untraceable. Then they could remotely transfer your money to a bitcoin account and would never get caught. It's very hard to do, but some people out there can. Less experienced hackers will even sell stolen accounts to more experienced hackers.

    The reason that Android does this is to protect stolen phones from completely getting wiped by people who steal them. This is called Factory Reset Protection (FRP), and while it is good for protecting yoursef against thieves, it doesn't protect you against hackers. Though there is an extremely smaller chance of this happening, it still would be far more detrimental than a stolen phone.

    Bottom line - I think Android should offer an inexpensive service that wipes all data on your device. It's a scary world in technology these days and no one's information is uncompromisable.

    Tage .Tkgbme

Show all comments
Write new comment:
All changes will be saved. No drafts are saved when editing