21.10.13

Android: secure erase of your data

I'm a bit paranoid. I'm a bit prudent maybe. 
Some weeks ago I decided to sell my old Android smartphone.
Today, our smartphone are part of our life. 
Photos, videos, web history, password. A lot of personal data are saved in our smartphone today.

I want to find a way to erase securely my data on my phone before sell it.
I think everybody know that Android factory reset don't erase data.
It simply say to the operative system: "Ehi, there's no more data here".
But data are still there. 
Data are deleted permanently only when someone overwrite them. 

So, let's find a way to erase - seriously - all data.
Because of Android is Linux-based I use some Unix tools to help me in this work.

Basically, the idea is create a big file, one or more, which can fill up all device's memory.
In this way, old data are overwrite and this means no possibility to recover them.
I try to recover old data after the procedure with Recuva and I don't find nothing.
I suppose that data are really disappear. Recuva is one of the best tool to recover deleted files.

This is the procedure:
-If you are reading here, probably you have enabled developer mode on you Android phone ;)
-So, connect to your pc and open adb shell
-Now, digit this: dd if=/dev/urandom of=/sdcard/file
This command generates randomly numbers and creates a file on sdcard with these numbers.
The process may takes a while (some hours in my case) and ends when all memory is filled.
Also smartphone starts to push up a notification of "Memory full".
-Now, back to phone and do "Factory reset".
This empty the memory and the phone is like new ;)

Note:
Theoretically, also /data/ should be erased..but you need root permission to do this.

Nessun commento:

Posta un commento