I have a rooted phone I'm willing to sell, but I had Personally Identifiable Information (PII) on it and I am questioning whether filling the internal storage with null bytes using dd would be sufficient to prevent data recovery by possible third parties.
I'm not fully familiar with the inner workings of the Android system and the differences it shares with the core Linux.
rm -rfafterwards via ADB Shell. The question is what's the probability of that information being still available if somebody tried to recover "hidden" data?rm -rfnever destroys the data itself but just removes the links to it from the file system. That means that it is still possible to identify removed files by searching well known patterns on the disk device.ddis of course more secure because it overwrites the data but: 1/ if you overwrite system data, you phone will not be useable any longer 2/ unless you know the specifics of the implementation of your phone you cannot be sure that there are no hidden partitions. BTW and IMHO, an ID card is personal data but not secret data