Closed OlivierHokke closed 10 years ago
Create notification that shows progress perhaps too?
Related to #82
While an interesting start I recommend first reading literature on best practices with this sort of thing. And make sure to take note of the differences between flash and magnetic drives. Just to have some reasoning behind the method used if nothing else. Because I know just overwriting once isn't enough in a lot of cases. As well as putting a lot of stress on the storage medium. No need to reinvent the wheel either.
Secondly, it's a bit of sidetrack right now to what we want to deliver. So I'm making this a bit for now and we can revisit this later.
I agree, but I actually did research on this :) also, I use the same method as another app does, see #82, but paid. And since this feature is apparently so easily implemented, it might be cool to add if we end up having a bit of time for it. All we'd have to do is add a fragment with a button for it and let it update a notification showing the progress while it is running. Easy peasy.
"Eagerly waiting for a merge of that pull request."
Label: Do not merge.
Stop being so confusing!
Also, why would you want to remove the entire primary storage? Even if you were to overwrite just our own data (which seems to be your suggestion?), it seems a bit overkill, especially for this version.
oh I forgot about that label :P I walt added that (which was good). Will fix now.
Not sure what you mean with removing the entire primary storage?
What I am doing is filling the free space up with random bytes, as when you delete a file a file system usually picks another location for the next file to write on. Overwriting a file, does not mean you are literally overwriting the file on the physical location of the file. Therefore overwriting a file is not enough to fully delete it. It is still recoverable. Until you overwrite the entire free space with random bytes.
I wrote this snippet that writes a file as big as your available space in order to completely fill your internal SD with random bytes so data can't be recovered. This snippet is made for the #66 branch. Eagerly waiting for a merge of that pull request.