[Q] File recovery in root folders? (/data/) - General Questions and Answers

I just lost one off my app's data (settings, etc, ...) and I'd like to try undeleting them. I know they were in the /data/data folder.
I found some file recovery apps on the store but it seems like they only scan the /sdcard/ folder.
I looked into mounting the sdcard on my PC and running a recovery software there, but mounting the root folder doesn't seem possible.
Any idea that might make this possible?

Related

[Q] How did my sdcard get "wiped" when I installed the newest AOKP ROM?

OK, so I'm using wiped in quotes because according to my available free space, it appears my data is still there somewhere. It's just that it's really not and I don't understand why (or where it may be hiding). I've done this many times and never had this problem, so I don't think I did anything wrong, but here are the steps I took: I made a TWRP backup. I wiped my cache, then my Dalvik cache, and then did a factory reset. I installed the new AOKP ROM (aokp_d2vzw_jb-mr1_build-3), installed Gapps, and installed the flashable zip for Titanium Backup. I then booted into Android with no problem, went through the setup process, and rebooted into TWRP. At that point, I was going to install the flashable update.zip I created from Titanium Backup, but I couldn't find it or any of my normal files or folders. I booted back into Android and checked again with a file explorer and sure enough – it's only showing the basic folders you start with and none of my content is there. Like I said, it appears my data is still there somewhere according to my available free space, but I haven't been able to find it anywhere. When I was in TWRP, I hit the button to restore and it showed me my two Nandroid backups, so I feel like the files have to be hiding somewhere.
I'm not really sure what caused it, but I know the files were still there after the wiping and the factory reset, or else I wouldn't have had the zip files to then flash. Therefore, I feel like it had to be during the AOKP or the Gapps install where my sdcard got erased (I forgot to mention my Titanium Backup somehow never got installed). Oh, and just to be clear, I'm talking about the internal (emulated) sdcard, so I can't simply pull it out and put it in my PC to search the contents.
Does anyone have any idea how this happened or where my files are? I'm tempted to do a restore to see if get everything back so I can then make more backups and store them somewhere else.
On your internal SD, do you have a /0 folder? methinks all your stuff's in there....
It's an artifact of flashing 4.2.1 and it's "multiple user accounts" feature
letinsh said:
On your internal SD, do you have a /0 folder? methinks all your stuff's in there....
It's an artifact of flashing 4.2.1 and it's "multiple user accounts" feature
Click to expand...
Click to collapse
No, I don't have a /0 folder on my sdcard. I did find a /0 folder somewhere in my root, but it only mirrored what's currently on the sdcard.
I found it! It's not on my card, but in the root, under data/media. There is a /0 folder in there as well and it links to the sdcard folder. To be safe, I'm going to first copy everything to my real external sdcard before trying to put it back.
/data/media is the real path for your internal sd card. All the other paths (/mnt/sdcard0, /sdcard, /storage/sdcard0, etc) are just pointers that look at the /data/media location. If you were looking in any of those other locations, the 0 folder should have been seen...
Either way, I'm glad you found your data!
letinsh said:
/data/media is the real path for your internal sd card. All the other paths (/mnt/sdcard0, /sdcard, /storage/sdcard0, etc) are just pointers that look at the /data/media location. If you were looking in any of those other locations, the 0 folder should have been seen...
Either way, I'm glad you found your data!
Click to expand...
Click to collapse
Well, that makes sense, but I assure you it isn't showing. The only thing that's showing is the contents of the /0 folder which is inside the data/media folder.
In other words, it appears the system created a /0 folder in my internal sdcard and decided that new folder would now be my internal sdcard. So if I'm trying to browse the internal sdcard, I have no way of going up a level and getting to my old content; the system considers that part of the root. Luckily, I can use FX File Explorer to get in there and access the files.
JerseyMike4 said:
Well, that makes sense, but I assure you it isn't showing. The only thing that's showing is the contents of the /0 folder which is inside the data/media folder.
In other words, it appears the system created a /0 folder in my internal sdcard and decided that new folder would now be my internal sdcard. So if I'm trying to browse the internal sdcard, I have no way of going up a level and getting to my old content; the system considers that part of the root. Luckily, I can use FX File Explorer to get in there and access the files.
Click to expand...
Click to collapse
It's like that because of Android profiles you can create now on 4.2, so basically I'd you were to make another profile it'd be /1 and so on.
Sent from my SCH-I535 using xda app-developers app
GoonAssJuan said:
It's like that because of Android profiles you can create now on 4.2, so basically I'd you were to make another profile it'd be /1 and so on.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
That makes sense. But it would have been nice if the system "moved" my data automatically when I upgraded.

[Q] TitaniumBackup making wrong folder?

First of all, Im using a nexus 4 and this issue occurs when i install Titanium no matter what rom i am using.
When i install TB, the app works and everything but it doesn't create the Backup folder in /sdcard where all other stuff is like (the music folder, where you put your movies, roms etc etc)
Here is a screenshot of where it creates the backup folder --------> http://imgur.com/Vybd6sY <------ Also i might add, if i delete that folder, it wipes my sd card.
Here is where it creates the backup folder inside "storage" (which doesn't exist until i install TB) http://i.imgur.com/kawfvWb.png inside that folder is http://i.imgur.com/pALplDk.jpg and inside that is http://i.imgur.com/HbvTLc5.jpg
Or am i stupid and this is supposed to happen?
Depending in the Rom this is normal. Different roms set up the built in storage differently. Some do storage some do legacy/storage. This is so you can still use the device while connected to a pc
I'm coming.

[Completed] [Q] deleted file recovery in root directory

The file that has been deleted is data/data/com.kakao.talk/databases/KakaoTalk.db
The told kakaotalk.db file has been deleted and was replaced by a new kakaotalk.db
I tried use data recovery programs but those only appear to recover data that is located in either internal storage (storage/sdcard0) or sd card (storage/sdcard1)
Is there any method to recover this file? I know root explorer can access and titanium backup can back up app data located in this directory, but wondering if there are any specialized deleted file recovery program that can scan this area to recover deleted application data
wsuh said:
The file that has been deleted is data/data/com.kakao.talk/databases/KakaoTalk.db
The told kakaotalk.db file has been deleted and was replaced by a new kakaotalk.db
I tried use data recovery programs but those only appear to recover data that is located in either internal storage (storage/sdcard0) or sd card (storage/sdcard1)
Is there any method to recover this file? I know root explorer can access and titanium backup can back up app data located in this directory, but wondering if there are any specialized deleted file recovery program that can scan this area to recover deleted application data
Click to expand...
Click to collapse
There are many recovery/undeleter apps available in Play store.
Here is a thread about it: General discussion > General > Storage Card - Deleted file recovery.
Some apps are free, some not. You have to read the app description and ratings, then check yourself.
Good luck !
Tried every recovery app available on google store. Only DiskDigger undelete appears to be able to scan the root area (other apps only scans internal storage and sd card). However that app only appears to have option to scan for and restore certain file extension (only pictures images and document files), and not .db files...
Is there any way to mount the root directory as a drive that could be recognized by the PC, so I can scan it using recuva or something? When I connect the device, only SD card mounts as a removable drive. Device I use is Pantech Vega LTE-A IM-A880S
wsuh said:
Tried every recovery app available on google store. Only DiskDigger undelete appears to be able to scan the root area (other apps only scans internal storage and sd card). However that app only appears to have option to scan for and restore certain file extension (only pictures images and document files), and not .db files...
Is there any way to mount the root directory as a drive that could be recognized by the PC, so I can scan it using recuva or something? When I connect the device, only SD card mounts as a removable drive. Device I use is Pantech Vega LTE-A IM-A880S
Click to expand...
Click to collapse
Yes, recuva is good ... used it myself to restore files on an external sd card.
As I am notr sure about our device and there is no specific forum for it on xda, please post your question in the General discussion > Questions and Answers forum.
Hopefully someone there can give a better advice.
Thread closed and thank you.

[Q] Can't delete folder in internal storage

hi, im having problems deleting a folder in my internal storage.
my phone is Lenovo A328, stock rom, rooted, and running on kitkat.
i didn't do any tweaking on my phone besides rooting.
i noticed while browsing my internal folders, in Android/data there is a folder named "com.com2us.soulcollector.normal...." 16.74mb in size.
it's from the game soul seeker, and i've already uninstalled the game, i tried to delete it but cant be deleted.
here's what ive done so far:
-i used other browsing apps like root explorer and root browser
-renamed the folder and delete, but can't
-moved the folder to other location in internal (cant move to external), still cant delete
-downloaded the game again and made sure the folder name and location is the same. then uninstalled the game, still the folder is there.
-edit the permission but cant.
-reboot device
-clean junk files using clean master
i dont want to restore or reformat my device. its a pain trying to download and reinstall again all my apps.
please help!
jemzbenz said:
hi, im having problems deleting a folder in my internal storage.
my phone is Lenovo A328, stock rom, rooted, and running on kitkat.
i didn't do any tweaking on my phone besides rooting.
i noticed while browsing my internal folders, in Android/data there is a folder named "com.com2us.soulcollector.normal...." 16.74mb in size.
it's from the game soul seeker, and i've already uninstalled the game, i tried to delete it but cant be deleted.
here's what ive done so far:
-i used other browsing apps like root explorer and root browser
-renamed the folder and delete, but can't
-moved the folder to other location in internal (cant move to external), still cant delete
-downloaded the game again and made sure the folder name and location is the same. then uninstalled the game, still the folder is there.
-edit the permission but cant.
-reboot device
-clean junk files using clean master
i dont want to restore or reformat my device. its a pain trying to download and reinstall again all my apps.
please help!
Click to expand...
Click to collapse
Try remounting /data as RW.
So, if you're using ES Explorer, open menu, inside Tools, click on Root Explorer.
Then click Mount R/W. And mount all partitions as RW.
This may help
GokulNC said:
Try remounting /data as RW.
So, if you're using ES Explorer, open menu, inside Tools, click on Root Explorer.
Then click Mount R/W. And mount all partitions as RW.
This may help
Click to expand...
Click to collapse
tried it but still no good. im really not liking this kitkat.

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