This question already has an answer here:
My phone just managed to do a factory reset, all on its own. Can I somehow retrieve at least the portion of the lost data? On computer for both linux and windows there are programs that can recover parts of harddrive which have been marked empty but still contain data from deleted files.
Is there a way to do this on Samsung Galaxy with Android 4.1.2? Because I really need my contacts and some of my memo notes were really important.