[Q] How to restore app's data? - General Questions and Answers

Hi I have an file with .apk extension and it's data folder (I don't have dalvik cache file, but I supose it will be made after running my app). How can I restore my app to previuos state? I tried pushing apk file and data folder to their directories (/data/app and /data/data) and setting permissions to 777, but it didn't work.

I restarted my app and everything is fine. Sorry for posting. Next time I will take my time before asking.

Related

Google Map Cache location?

Is there a way to back up those cache tiles? Could be useful for me when switching roms.
If I remember correctly theyre located in the /data directory... You could back that folder up with Root Explorer but I dunno if restoring it would work.

Files .asec in .android_secure folder - Safe to delete?

Is is safe to delete files .asec inside .android_secure folder in our internal SD? I have 1.46GB files in it. I believe, it's a files where A2SD stored when we moved the application to SD Card. I'm doing a fresh ROM installation to my phone. Wipe everything. Internal/External SD is not touch in this process.
I had perform a backup to every application and data using Titanium Backup. Is it safe to delete these files. I still can restore it using Titanium Backup with setting "restore to original location" right?
Thanks.
Hello, answering your question, yes, it's safe to delete these files, and also, it's recommended to delete these files when you will perform a clean ROM installation, so don't worry when you restore your applications with titanium, automatically the files will restore in that folder, if not, just move the desired application to your SD and no problem
Cya!!
Sent from my LG-P920 using XDA App
Ok. Thanks.
Are they some kind of temp files or are they used for storing app data/settings?
What i'm getting to is, can i safely delete them and not lose any data stored in associated apps?

encrypted files after flashing rom

I flashed the rom (wiping only cache and data partition) and when i open my file manager, I see those strangely named folders. After a google search, i found that the files were encrypted. I do not want to lose those files. Is there a way to bypass that and restore the files?

Problem with Samsung My Files App

It's a strange problem. Whenever I delete a large file from Samsung My Files (File Manager), the file gets deleted on the app. But the file still remains hidden somewhere in the system and occupying the space. No, it's not in Recycle Bin. I clear that too. I tried to dig in and find it. I couldn't.
Then I tried to clear the app data of My Files. The data reflects the file size of the file I deleted (2.7GB). After clearing the data (3MB), the data size reverts to the same size (2.7GB) within a second. It seems the deleted file is refusing to go from my system and hiding somewhere
Can someone help me with this issue? I am running out of memory space on my S8. I have root.
Thanks in advance

How to reinstall /data/app

I have read that /data/app is where all apps are stored. So, I copied /data/app but when i try to copy the folder over, after a restart, it is gone, even if I try the same inside TWRP. I can see the directory in the TWRP file manager but after a reboot it is gone as well. Can I somehow install those /data/app directories I have saved on my PC?
This should help
https://forum.xda-developers.com/t/how-to-get-install-back-uninstalled-apps-apks-with-adb.3894235/
hmm, no, sadly doesn't work. The folder still gets deleted and the app not installed
You better mention your phone manufacture and model.
And then go to the specific forum to ask for help.
Different phones have different encrypting methods to restore, and not always success.
PalanixYT said:
I have read that /data/app is where all apps are stored. So, I copied /data/app but when i try to copy the folder over, after a restart, it is gone, even if I try the same inside TWRP. I can see the directory in the TWRP file manager but after a reboot it is gone as well. Can I somehow install those /data/app directories I have saved on my PC?
Click to expand...
Click to collapse
Unless you have your device's Android rooted, you cannot see the contents of this directory and it will appear to be empty. This is because Android does not allow access to this location within the file system. Android uses the /data/app directory for managing app data, and any tampering with files in this location could cause problems.
Therefore: To access directory /data/app you must mount it as RW what requires Android is got rooted.
Yes, I do have root, it's just that I can't put any apps there, because they will get deleted after reboot. That's all there is. I just ended up installing the apps manually
PalanixYT said:
Yes, I do have root, it's just that I can't put any apps there, because they will get deleted after reboot. That's all there is. I just ended up installing the apps manually
Click to expand...
Click to collapse
Try migrate app.
https://forum.xda-developers.com/t/3862763/
It will generate a zip file to restore.
You can try manually alter the zip file with your data you backup and hope it restores.

Categories

Resources