But that is not the main solution, he wants to know how he can make sure he deletes all the data stored on the phone. I know by deleting the data from the phone, the data has not been deleted on the UFS or the eMMC of the phone.
He needs how he can permanently delete all the data on his phone.
If he wants to ensure that all data will be deleted without the possibility of recover, then honestly the best thing that he can do is to destroy the storage but when I say destroy, I mean complete destruction, like burning it in a fire, which will make it completely impossible to recover because it will be melted.
By the way, for any average and above average person, it's completely enough and more than enough to do the following: Encrypt your device, then perform a factory reset. Then overwrite the data yourself, i.e. download random data from the internet, like install apps, games & download movies, images and so on. Then do a factory reset again (your device should be encrypted). Do it 3 times in a row and there is no way anyone will be able to have access over your friend's old data. I don't think that someone will spend billions of dollars and the time to try to recover his data
