[GO] Problem to find and copy contacts/messages folders - Sony Xperia P, U, Sola, Go

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!

Related

[Q] Adb pull failing on a file

I am trying to backup my phone with "adb pull /mnt/sdcard/ SDCARD20121115" but i keep having it fail in the middle of the backup with
cannot create 'SDCARD20121115\Folder\Folder2\Folder3\File.ext'
: No such file or directory
Ideas?
Still having issues with this and not sure how to backup my entire SD card...
Anyone?
Ok so i think i found the two different solutions to my problem.
First what actually was causing the problem was a folder with a $ sign in it. Using the command it looked like it failed on the file right before that folder so it didnt jump out right away.
Second i used a program called android commander that gives a gui. while this wasnt an actually solution i was able to select all but the folder tree structure that was failing instead of doing hundreds of directories by hand.
If anyone has any questions let me know.
*EDIT*
Looks like i had another failure on a folder. The folder had a trailing space "/storage/sdcard0/folder /file.ext"
Possible the $ sign works but to lazy to test.

[Q] Can't delete CWM Nandroid backups

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"

[Q] Where is my TWRP backup files located

Before I get started, yes, I've googled, and yes, i've looked in all the directories that have come up in the google results.
/sdcard/TWRP/ is empty except for a single .twrps file
/storage/emulated/0/ is same as /sdcard/
/storage/emulated/legacy/ is same as /sdcard/
/storage/sdcard0/ is same as /sdcard/
I know the backups exist, as when I'm in TWRP, I can hit RESTORE, and see my backups listed there, but if I goto ES File Explorer, and try to do a search for that same filename, I get no results.
Any ideas?
Zxurian said:
Before I get started, yes, I've googled, and yes, i've looked in all the directories that have come up in the google results.
/sdcard/TWRP/ is empty except for a single .twrps file
/storage/emulated/0/ is same as /sdcard/
/storage/emulated/legacy/ is same as /sdcard/
/storage/sdcard0/ is same as /sdcard/
I know the backups exist, as when I'm in TWRP, I can hit RESTORE, and see my backups listed there, but if I goto ES File Explorer, and try to do a search for that same filename, I get no results.
Any ideas?
Click to expand...
Click to collapse
check in extsdcard and if not found download this file exolorer and setting show hidden folder. link
http://forum.xda-developers.com/showthread.php?t=1523691

[Q] [ROM] [4.4.2] CyanogenMod 11.0 Cant write files to internal storage.

I installed [ROM] [4.4.2] CyanogenMod 11.0 from here
everything runs fine,but i cant write files to the internal storage.
For instance if i start the gallery app it tells me "No internal storage available",another app tells me it "cant write to the cache folder" because the sd is full,mounted,or write locked.Root explorer sees all the files but cant delete,move or copy/paste anything.
Apps that save/download files like podkicker or reddit act normal when trying to save the file but after the download starts the notification disapears and the file is simply not downloaded.Apps that stream content work fine,like youtube,or the stream feature of podkicker.
I have over 2gb free space so its not that,and if i plug into my pc i can move and delete files no problem.I like the rom and like i said everything else seems to work fine.
Thanks in advanced for any help.
I installed [ROM] [4.4.2] CyanogenMod 11.0 from here
everything runs fine,but i cant write files to the internal storage.
For instance if i start the gallery app it tells me "No internal storage available",another app tells me it "cant write to the cache folder" because the sd is full,mounted,or write locked.Root explorer sees all the files but cant delete,move or copy/paste anything.
Apps that save/download files like podkicker or reddit act normal when trying to save the file but after the download starts the notification disapears and the file is simply not downloaded.Apps that stream content work fine,like youtube,or the stream feature of podkicker.
I have over 2gb free space so its not that,and if i plug into my pc i can move and delete files no problem.I like the rom and like i said everything else seems to work fine.
Thanks in advanced for any help.
EDIT:
YAY i got it,
thanks stevemp and Quallenauge,a couple of the things needed to be a bit different though like the "# rm -rf data/*",and the push location line,heres what i did
Plug in the tablet with usb debugging enabled
run cmd and get adb going
type
adb shell
stop
rm -r data/*
mkdir data/local
mkdir data/media
exit
then push the rom file with [adb path]/adb push [rom path] /mnt/storage
when the push finished type adb reboot hold the volume down button and press enter
once rebooted into sde go to dev menu remove android kernel if necessary then choose flash kernel and initramfs
copy the files over
reboot
Everything seems to be working now i can read write files all day.
THANKS AGAIN!!
I'm having the same problem, with both CM11 and 10.2.0 on Verizon LG G2. Could it be a permissions problem?
lalalalas said:
I'm having the same problem, with both CM11 and 10.2.0 on Verizon LG G2. Could it be a permissions problem?
Click to expand...
Click to collapse
Its weird because i can write to the root directory but not any folders in it.Root explorer and es file manager say that its read only but neither will let me switch to read/write.
I made a logcat from boot[at least i think i made it rite,never had to do one before]
But i cant post the link because i dont have 10 posts just add this rpqjxGhG to pastebin
This all also happens with external sdcards as well it turns out,i just tried to make a new file with the built in file manager on the external sd and it said it requires elevated permissions,
root explorer just says file creation failed.
I also get constant "unfortunately,Trebuchet has stopped" messages when doing any thing.
I have also tried terminal emulator for kicks.
I gave it su then tried
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system]
didnt change a thing
then i tried
adb remount
this said error: device not found
Im pretty sure its not my tablet as i can can go back to stock/stock root and write files perfectly fine,ive also re-downloaded the rom twice just to make sure it wasnt bad,and ive probably flashed it around 20 time by now all with the same result.
I hope someone can figure something out.
leadtk said:
Its weird because i can write to the root directory but not any folders in it.Root explorer and es file manager say that its read only but neither will let me switch to read/write.
I made a logcat from boot[at least i think i made it rite,never had to do one before]
But i cant post the link because i dont have 10 posts just add this rpqjxGhG to pastebin
This all also happens with external sdcards as well it turns out,i just tried to make a new file with the built in file manager on the external sd and it said it requires elevated permissions,
root explorer just says file creation failed.
I also get constant "unfortunately,Trebuchet has stopped" messages when doing any thing.
I have also tried terminal emulator for kicks.
I gave it su then tried
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system]
didnt change a thing
then i tried
adb remount
this said error: device not found
Im pretty sure its not my tablet as i can can go back to stock/stock root and write files perfectly fine,ive also re-downloaded the rom twice just to make sure it wasnt bad,and ive probably flashed it around 20 time by now all with the same result.
I hope someone can figure something out.
Click to expand...
Click to collapse
When installing the CM11 firmware, did your format/reset your "android+storage" in "format device" recovery menu?
Storage files should be /mnt/sdcard/ (internal storage) and /mnt/media_rw/sdcard1/ (extern sdcard).
I'm able to create files in both directories as well on the file explorer.
If you want to "unlock" the root ( / ) partition you have to use this one inside the shell:
Code:
mount -o remount,rw /
but this don't have some effects to the mounted storage files.
Quallenauge said:
When installing the CM11 firmware, did your format/reset your "android+storage" in "format device" recovery menu?
Storage files should be /mnt/sdcard/ (internal storage) and /mnt/media_rw/sdcard1/ (extern sdcard).
I'm able to create files in both directories as well on the file explorer.
If you want to "unlock" the root ( / ) partition you have to use this one inside the shell:
Code:
mount -o remount,rw /
but this don't have some effects to the mounted storage files.
Click to expand...
Click to collapse
I was updating by putting the firmware file on the the device then rebooting and flashing the zimage and initramfs,
The reason being if i reset the "android+storage" dosnt that mean the firmware is deleted?
adb dose not see the tablet when its in recovery,it does see it when its on[am i doing something wrong there?],so i cant push the files,and if i export the data partition in windows a pop up and says it needs to be formatted before it can be used.so how am suppose to get the file to the device if i format everything?
leadtk said:
I was updating by putting the firmware file on the the device then rebooting and flashing the zimage and initramfs,
The reason being if i reset the "android+storage" dosnt that mean the firmware is deleted?
adb dose not see the tablet when its in recovery,it does see it when its on[am i doing something wrong there?],so i cant push the files,and if i export the data partition in windows a pop up and says it needs to be formatted before it can be used.so how am suppose to get the file to the device if i format everything?
Click to expand...
Click to collapse
From the guide, install using adb. http://forum.xda-developers.com/showthread.php?t=1871912
Originally Posted by surdu_petru
Installation : Now should be work on all devices Gen9 !!!
...connect USB cable to PC and ( you need to use a Rom with root access ) :
> adb shell
# stop
# rm -rf data/*
# mkdir data/local
# mkdir data/media
# exit
> adb push archos.ext4 /local/ ( need to wait about ~150 seconds ) !
> at the same time do : adb reboot & press and keep volume down ; in SDE -> DEM-> Remove Android Kernel ( if exist ) -> Flash Kernel & Initramfs -> copy here zImage & initramfs.cpio.gz -> OK -> wait to reboot !
Click to expand...
Click to collapse
If you are a Linux user. http://forum.xda-developers.com/showpost.php?p=48731942&postcount=1
YAY i got it,
thanks stevemp and Quallenauge,a couple of the things needed to be a bit different though like the "# rm -rf data/*",and the push location line,heres what i did
Plug in the tablet with usb debugging enabled
run cmd and get adb going
type
adb shell
stop
rm -r data/*
mkdir data/local
mkdir data/media
exit
then push the rom file with [adb path]/adb push [rom path] /mnt/storage
when the push finished type adb reboot hold the volume down button and press enter
once rebooted into sde go to dev menu remove android kernel if necessary then choose flash kernel and initramfs
copy the files over
reboot
Everything seems to be working now i can read write files all day.
THANKS AGAIN!!
leadtk said:
YAY i got it,
thanks stevemp and Quallenauge,a couple of the things needed to be a bit different though like the "# rm -rf data/*",and the push location line,heres what i did
Plug in the tablet with usb debugging enabled
run cmd and get adb going
type
adb shell
stop
rm -r data/*
mkdir data/local
mkdir data/media
exit
then push the rom file with [adb path]/adb push [rom path] /mnt/storage
when the push finished type adb reboot hold the volume down button and press enter
once rebooted into sde go to dev menu remove android kernel if necessary then choose flash kernel and initramfs
copy the files over
reboot
Everything seems to be working now i can read write files all day.
THANKS AGAIN!!
Click to expand...
Click to collapse
I do not know what i am doing wrong but when i type adb shell ..all i get is BUSYBOX v1.7.2 (2012-10-19 CEST) built in shell (ash) Enter help for a list of built in commands ...
I did have ics blue v04 rom on my tablet that i was trying to go from to 4.4.2 ..
I did this before and had the write problem . any help you can give would be appreciated

Help! THL w200s in recovery mode -- What is full filesystem path to "DCIM" folder?

Help! THL w200s in recovery mode -- What is full filesystem path to "DCIM" folder?
Hello,
I have accidently killed my THLw200s phone. Now when it boots up, the "THL" screen appears and the little music jingle plays... but the screen never continues to the android finger swipe page. It displays the bootup THL screen forever.
So I don't know what to do. My wife is very very very upset and worried that all her pictures are gone (of the kids, etc.. and she has no backup).
I have been able to access the Android Recovery screen by holding the "up-volume" and power button together for around 10 seconds. I did the "backup user data" process, and it says that it created a backup file. However I have no idea how to download that file to my computer.
I am scared that if I do a "wipe data/factory reset" it will destroy all my wife's photos. (Does anyone know if that will happen? Or does a factory reset only change system folders and leave "DCIM" folder unchanged?)
I can not see the phone on my computer when I plug it into my USB port. How do I get access to that backup file? How can I download it to my computer? Can I download the "DCIM" folder?
I tried connecting to the phone using adb drivers, to do a "pull" of the "DCIM" folder... but I get this error:
# adb pull /mnt/sdcard .
remote object '/mnt/sdcard' does not exist
Click to expand...
Click to collapse
I have also tried:
/sdcard
/sdcard2
/mnt/sdcard2
How can I find out what is the full path to the DCIM folder, so that I can pull all the files in it?
When I try to do a folder listing with adb, it tells me this:
#adb shell ls -al
exec '/system/bin/sh' failed: No such file or directory (2) nRet(-1)
Click to expand...
Click to collapse
Any ideas?
Thanks!

Categories

Resources