Is it possible to recover overwritten files from Android Studio?

自古美人都是妖i 提交于 2019-12-13 15:25:24

问题


For a mistake i've overwritten my two project that has same names from android studio and i've dismissed that action today i've tryed to open the main project and i've found no Java classes in it and just the layout's files.

While in the second project to which i was overwritting there is a huge confusion of files and trying to recover the project version by using history of Android Studio even those files has disappeared.

Is it possible in anyway to recover the whole project?

Ps: all that remain from that project is a generated apk.


回答1:


Hopefully you used source control such as git or svn and it is a simple matter of reverting to the last commit you made, however that is done in your chosen source control. If you don't use source control, perhaps this will serve as a lesson to do so in the future.

I've not used Android Studio, but as a JetBrains product like IntelliJ, it will have a local history record of changes. But that would only record very recent changes.

If that doesn't work, you may have to find out if your chosen operating system backed up the files in a restore point etc.




回答2:


If you have turned on the file history, you can use that to go to a previous version of the folder. Can also use system restore to go back to a previous date. Can also use third party softwares such as Recuva to get deleted files back.
Make sure to keep a copy of current state somewhere before trying these out.




回答3:


I have some solutions that may work.

Candidates are:

  • Search for $AppData$ folders
  • Search for registries
  • (Hardest) you may have to preserve the disk state and carve the files yourself..

Cheers, and hope it helped..!

To use the third method(file carving), you may not cause many file operations occur!!(The system may overwrite the previous data)



来源:https://stackoverflow.com/questions/53540156/is-it-possible-to-recover-overwritten-files-from-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!