Hi folks. I took an adb backup (adb -d backup -apk -shared -all -f C:\Users\Tony\backup.ab) and now only want to restore data for a few apps.
I've used the Android Backup Toolkit to turn the .ab into an openable .tar file, so I tried copying a few com.appmaker.appname folders to the sdcard, then used Es File Explorer in root mode to copy the folders to /data/data, but the app doesn't seem to use the data (it looks like it did on first run).
Can anyone outline the steps required to restore data folders?
Thanks.
Tony.
Related
Does anyone know where the App folder is on an S2?
I have installed a new ROM (CM7.2.0) and now my phone is stuck with LaucherPro constantly crashing, so I cannot access the running apps to cancel it.
I have got ADB working and I can see the folders on the phone but I cannot find the App folder (I have checked all of the folders). All I have under system is a bin folder and nothing in the data folder.
I had made an Nandroid image before I changed the ROM, but that has now has a duff MD5 checksum (no error when initially created. I have attempted to re-create the checksum as per the instructions:
adb shell
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
all seems OK with the commands because I successfully deleted and re-created the nandroid.md5 file but it is still mis-matched, so I'm trying to remove LaucherPro.
I have created a new nandroid image from the problem ROM and as expected LauncherPro crashes on that image also.
NOTE - Some of the nandroid images that were OK also now fail to pass the checksum!
I have an old nandroid image (CM 7.2.0) that I have restored to, so I have a working phone, but I would like to get back to my last set-up by removing the problematic LaucherPro app.
Hi guys, having an odd problem.
I've made some nandroid backups (about three) via CWM Recovery, and I can't seem to browse to them, or delete them.
It's definitely taking up space, and I'm not sure what to do now.
A backup that I made straight to my external SD card however, seems to be browse-able, so I'm a bit confused now.
Attached are some screenshots from ES File Browser (with root access turned on).
The last screenshot is going to /storage/sdcard0/clockworkmod/ (same directory, but now I can't seem to see anything about "backups").
I've also tried to delete these backups straight from CWM Recovery, but CWM says that it can't access the folder.
Oddly enough, if I do another backup (straight to internal), it seems to put all the files in /sdcard/Clockworkmod/backups but never to be accessed again.
Anyone have any ideas?
Delete via Windows Explorer .
jje
JJEgan said:
Delete via Windows Explorer .
jje
Click to expand...
Click to collapse
Thanks for the suggestion, but nope, that didn't work. (Obviously tried that first).
The folder was shown as empty via Windows.
After a lot of digging and trying different things (including Root Explorer and Terminal Emulator), I've managed to delete it.
I'll post the instructions so other people who may have similar problems in the future can follow it.
First, you'll need ADB and you'll need to reboot into CWM Recovery.
Once you've gotten that sorted, boot into CWM Recovery and go to "mount and storage" and then select "mount /data".
This will mount the /data structure which we need to use.
Afterwards in CMD, use the following:
Code:
adb root
adb shell
After this, you should be logged in as ~ (root)
Proceed to go into the directory using the cd function. (PROTIP: Use the ls function to check where you're going.)
You need to get to ../clockworkmod/backup/
You'll find that you can finally access the /backup/ folder, and you'll then be able to delete the files. Please note that the below command will delete ALL the files within this folder.
Code:
rm -rf *
Afterwards, do
Code:
cd ..
to get back to the ../clockworkmod/ folder and then run the below code to delete the now empty /backup/ folder:
Code:
rmdir backup
no, to be logged in as root you need to type in "su"
Hi.
My Sony won't work, I turn on, it starts, arrives to home screen and then it resets in a neverending boot loop.
Now, before the wiping, I would like to recover my contacs and SMS... there are only one message and three contacts for me importants, but they're the only I didn't backup on my Google Account.
So, I have CWM 6.0.1.2, I have also the ADB... I can mount my sd card and system folder in ADB, so I've made a backup of all the folder /system and SD with command backup /system and /sdcard.
I can't make a nandroid backup with CWM, it restart at the ending of process and makes a corrupt .img file.
I can't make a backup of /data folder from ADB...
So my doubt is there's a problem with some data file.
But I want only to copy contacts and message file!!!
Apart the elementary commands of ADB I don't know two thing:
- which are the folders and the contacts and messages files, so I don't know where I can find it in /mnt folder
- which is the ADB command to navigate in the /mnt folder to find this two folders.
Anyone can help me?
Thanks
So, I've found by myself.
1) The command I have to use for navigate and see what are inside a folder is "ls" (minus LS)
Data folder is locked and if you want to get in you have to write
:"adb shell"
"su"
now you can navigate inside and for example you write "ls /data/data/" and you can see what's inside.
SMS and Contacts are located in:
" /data/data/com.android.providers.telephony/databases/mmssms.db" for sms
" /data/data/com.android.providers.contacts/databases/contacts2.db" for contacts
I use the command "cat" to copy this file from the data folder to a SD card folder, i call Messaging, writing
" cat /data/data/com.android.providers.telephony/databases/mmssms.db > /sdcard/Messaging/mmssms.db "
and " cat /data/data/com.android.providers.contacts/databases/contacts2.db > /sdcard/Messaging/contacts2.db "
Hope it's useful for someone in the future!
Very simply, how do I browse and extract the contents of a TWRP Nandroid backup on my Windows PC?
I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
kwest12 said:
Very simply, how do I browse and extract the contents of a TWRP Nandroid backup on my Windows PC?
I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
Click to expand...
Click to collapse
Simply rename the file to data.ext4.tar and use winrar to extract it.
I'm revamping this thread because I'm...desperate!
I have a nandroid backup (TWRP 2.8.7.0) and I would like to browse it on my PC. I'm focusing on files with structure data.ext4.win000x (where x goes from 0 to 2).
I'm able to open with 7-zip (should be equivalent to winrar) every individual file but size is faulty: every file is nearly 1.5 Gb while the content of the zipped file that I see it's around 50 kb. If I concatenate the files with the command copy /b data.ext4.win000? outputfile regardless the extension I give to "outputfile" I'm no longer able to open it with 7-zip.
Any suggestion/hint please ????
Not finding entire folders/files while browsing backup
I find the same thing regardless of the mechanism I am using to browse the backup. I am looking in /data/data for my own apps' data. Here is what I have tried so far:
1. Nandroid Manager app
2. TWRP Explorer app
3. ZArchive app
4. In a terminal, cat data.ext4.win??? | tar -tv > less (and then searching for my apps' package names
I was looking inside my nightly full backup to extract and recover some files I accidentally deleted. Cannot even find folders for the package names (except for 1 app). However, when I do a full restore from the same backup inside of TWRP Recovery, the missing files are indeed restored. So I know they are in the backup.
Why can I not find them and get at them any way else? I must be missing something simple.
Thanks
BTW - in the recovery.log file in the backup folder, I see the folders/files in question being "added". Very odd.
BTW2 - at least with regards Nandroid Manager app, I noticed that I was seeing some files I know I had removed from my apps some time ago. How could that be? I decided to clear data/cache for Nandroid manager and try again. It took much longer to process the backup for exploring. But now at least that app seems to be doing the right thing and I can see all folders/files.
So my phone screen just went black and doesn't work anymore. I wanted to adb pull all files from my phone (everything takes up 17gb, so It wouldn't be a big deal to transfer everything and sort through it on my PC), but when I boot to TWRP via command line and try to decrypt the phone the fs is still encrypted, what am I doing wrong? Or maybe there's a better approach for this and I'm just stupid? (attached is my pattern drawn on a random png from google and the commands that I tried to use) Thanks in advance
AFAIK device's /data partition automatically is turned to an unencrypted state if you do a backup of this partition via the adb backup
Example:
Code:
adb devices
adb backup -shared -f C:\backupname.ab
You may use
android-backup-processor
Download android-backup-processor for free. Android adb backup extractor and packer. None
sourceforge.net
to convert the .TAR formatted backup into a .ZIP formatted file.
jwoegerbauer said:
AFAIK device's /data partition automatically is turned to an unencrypted state if you do a backup of this partition via the adb backup
Example:
Code:
adb devices
adb backup -shared -f C:\backupname.ab
You may use
android-backup-processor
Download android-backup-processor for free. Android adb backup extractor and packer. None
sourceforge.net
to convert the .TAR formatted backup into a .ZIP formatted file.
Click to expand...
Click to collapse
It requires me to unlock the phone to do that. I think i'll just buy a USB C to USB A and HDMI dongle to view my phone screen on a monitor and operate it via a mouse. That seems like the easiest way out.
Thanks for the help, though!