How can I extract contacts from Android files ? - HD2 Android Q&A, Help & Troubleshooting and Genera

If I saved all my Android files on my computer from a previous build, can I somehow get the contacts out of them files ? perhaps there's a file that contains all contacts ?

log into your gmail and extract them that way

That's the weird part, for some reason the number I'm looking for wasn't logged by Gmail, and that's why with the current build I didn't have his number imported as the rest.

The contacts are stored in a SQLite3 database file so the file format is ".db"
The development tool Android Debug Bridge (ADB) can be used to extract the file from an EMULATOR
ADB can also extract the file from a phone but it must be rooted first AND the ADB drivers must be installed on your machibe as well
(Rooting is NOT for beginners though)
The contacts.db file is stored in the protected system memory, the file path is:
data/data/com.android.providers.contacts/databases/contacts.db

itsme_4ucz said:
The contacts are stored in a SQLite3 database file so the file format is ".db"
The development tool Android Debug Bridge (ADB) can be used to extract the file from an EMULATOR
ADB can also extract the file from a phone but it must be rooted first AND the ADB drivers must be installed on your machibe as well
(Rooting is NOT for beginners though)
The contacts.db file is stored in the protected system memory, the file path is:
data/data/com.android.providers.contacts/databases/contacts.db
Click to expand...
Click to collapse
If I understood correctly this file should be in the SD card, but I cannot find one, nor the directory /com.android.providers.contacts/ .

Your phone doesnt think its on the sdcard. It thinks its on the phone itself.
For my adb uses I use a program called android commander. It will allow you to navigate to that file.

Try using root explorer app, it will get you there...

My issue is not with the contacts on my working phone system, but on the files I copied before I've change to a new build. I thought there may be a chance it's on one of those files, but it sound much complicated then that.

If you don't want to try itsme_4ucz's solution, why not copy the files back to your phone and sync again with Gmail?

Because for some reason the build didn't load, that was the reason why I switched builds in the first place.
I don't want to root my phone for that, I'm pretty noob

I could be wrong, but...
Wouldn't that file be in the data.img file system image? If so, you can mount that file in Linux, or most likely Windows, then browse to the location mentioned above.
That'll at least get you there, but you still have to get the data out. Perhaps copy that one to the phone's current file system. If not, I'm sure someone will come up with something if the above posts don't work.

Related

[Q] Is it spossible to chnge the system.ext2 file?

Hi,
I really like all the Android builds that use the Desire ROM as I really like the HTC Sense. However, my language isn't really supported there (The fonts exist but the formatting is bad).
I have some files that should fix the formatting, but they are meant for the original HTC Desire and are installed by going to the ROM Manager/Recovery Mode and then choosing an option called: "Install Zip from SD Card".
Since I can't go to this ROM Manager nor get into Recovery mode with the HD2 Builds I am looking for an alternate way to change the system files on the Android build I am using.
The thing is that I am having difficulties doing so.
At first I tried using EStrongs File Explorer to get root access and copy over the new files I want to change but it gave me an error that it failed.
After I couldn't make it work I started looking for ways to open and edit the system.ext2 file in Windows.
I couldn't find any program or driver that would let me change the files, but only view them so I decided to install Linux and do it from there.
I used VMware workstation to install Ubuntu on my system.
On Ubuntu I mounted the system.ext2 following the mentioned instructions here: http://forum.xda-developers.com/showpost.php?p=8001443&postcount=8
It mounted okay but it said there was 0 bytes free when I tried to overwrite the files I wanted to change.
In addition it gave me permission errors, the error was that I did not have permission to copy the files.
I am not that familiar with Linux and I tired googling for answers but couldn't find anything useful.
I would appreciate if anyone can explain how to do it, or direct me to somewhere with more details as I'm kinda stuck at the moment.
The files I wanna change are:
/framework/framework.jar
/app/.DS_Store
/app/Gallery3D.apk
/app/Mms.apk
And a few font files to /fonts
Thanks a lot!
It is best to mount the ext2 file as you suggest but instead of trying to modify the file, copy the contents into a new folder and use the genext2fs command to recreate the system.ext2 file!
Hey man, it worked perfectly.
Thanks a lot!!
By the way, is there a recommended file size for the system.ext2? Or should I just keep the original size?
Is it worth setting it bigger? Will it benefit somehow?

[GUIDE] Extract files from Nandroid backups

I have seen this asked a few times recently so I figured I would try to put together a quick and easy guide to extracting files from Nandroid backups. This guide only covers Windows, I assume if you are running Linux you can download unyaffs and compile/run it without my assistance. If you are adventurous you can install cygwin and compile unyaffs on your own (or download it at any number of sites across the internet), however I have included all the files needed to extract the files from the img files.
1. Download unyaffs along with the cygwin1.dll
2. Extract the files to a new folder.
3. Copy the system.img file from the ROM or your Nandroid backup to the folder you extracted unyaffs.exe and cygwin1.dll to.
4. Open a command prompt and cd to the folder containing the three files. If you are on Windows 7 you can just navigate there with Windows Explorer and in the URL bar type cmd to open a comman prompt in that location.
5. Type unyaffs system.img
You have now extracted all the files from the system partition of your Nandroid backup. The APKs are in the /app folder and some apps require library files that can be found in the /lib folder. For example: Swype.apk requires that libSwypeCore.so be in the lib folder for it to work properly.
I get an "end of image" message and no folder is created with the extracted files.
I am trying to recover some photos from my Gallery, which I presume is in data.img - but no matter what I try to extract, I get "end of image"
any ideas?
Is the system.img the only thing you can open with this or can you open the data.img or the wimax.img also?
Lock-N-Load said:
I get an "end of image" message and no folder is created with the extracted files.
I am trying to recover some photos from my Gallery, which I presume is in data.img - but no matter what I try to extract, I get "end of image"
any ideas?
Click to expand...
Click to collapse
Your photos should be on your MicroSD card, not on one of the system partitions. Look in SDCARD:\DCIM\100ANDRO, your photos should be there.
cruise350 said:
Is the system.img the only thing you can open with this or can you open the data.img or the wimax.img also?
Click to expand...
Click to collapse
I want to know this also
Seems to work ok for me for data.img and system.img, but not wimax.img or boot.img.
Yep, I tried that too...worked.
Is there a command to repack the system or data image after you have unpacked and played around with them???
I am pretty sure that my issue is within the data file...I removed what I think caused the problem but how do I repack it all to put it on the sd card and try it out?
thanks
Does anyone know a command to repack the files???
Worked for me.
Pretty much my whole family has Evo's. theyre all rooted too thanks to me but in my experimenting, i lost the 4G keys to mines. so i troubleshooted. i put Amen Ra's recovery on my brothers phone, and nandroid'ed only the wimax. put the entire folder for that backup on my sdcard on the spot where u would find ur backups, ran Amen Ra on my Evo. and bam. working 4G. u just cant use them at the sametime cuz it interfears.
Oh ok cool.
Is there anyway to pack the files on windows
I want to see if my phone will boot now that I got rid of some programs I believe to be causing it to bootloop
Stupid question. Don't mind me.
Awesome this works Thanks allot
how can I extract /data/system to then package back as either
* SBF
or
* update.zip
to write to another identical phone?
re
http://forum.xda-developers.com/showthread.php?p=17217163#post17217163
ubuntu fyi
I've extracted *.smg files from a SBF Rom File. I'm willing to extract Stock Apk's from it.
Now, my Unyaffs is in the same folder of the SMG files such as cygwin1.dll, however when i try to execute "unyaffs cg39.smg" I receive the following:
8 [main] unyaffs 5960 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO
N
2790 [main] unyaffs 5960 open_stackdumpfile: Dumping stack trace to unyaffs.e
xe.stackdump
the log says:
Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=444E1A20 ebx=0000001A ecx=FFFFFFE4 edx=00801322 esi=0040130E edi=610E21A0
ebp=0022EE88 esp=0022EE50 program=C:\Motorola\unaffys\teste-extracted\unyaffs.exe, pid 4708, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022EE88 004010B0 (0022EEE9, 00000000, 00000000, 00401333)
0022EEB8 004013AF (00000002, 00800180, 00800090, 610A5E22)
0022EFA8 61004DD2 (0022EFC0, FFFFFFFF, 77A651CE, 00000000)
0022FF58 6100594F (00000000, 00000000, 00000000, 00000000)
End of stack trace
I've tried to regsrv32 the DLL and also receveid error as a invalid Dll. Does anyone have an idea?
I'm looking for stock Phone, Contacts and the keyboard apk, by the way, anyone knows the keyboard apk file?
thanks
Thanks
Sent from my PC36100 using Tapatalk 2
hi guys,exist a new link for this tool or another tool for open .img files?
thanks in advance

[Q] Can IMG Files be edited?

Hi All, i have a HD2 Leo, with Android installed on a memory card. this has been working fine, but i have recently, re-configured my exchange email account and the calendar no longer syncs, but does on other handsets, so i think i need to edit the "USERDATA.IMG" File that is on the Android files.
Does anyone know how to edit this file?
if you have any file manager that can access root, the userdata.img contents are the ones arouns the system folder. So when you're viewing root contents, the System folder is your system.img and almost everything else is the contents of the Userdata.img
but you'll have to look for a long time to find the settings you want. My advice is to back up everything and start over with a new userdata.img
MJMSRI said:
Hi All, i have a HD2 Leo, with Android installed on a memory card. this has been working fine, but i have recently, re-configured my exchange email account and the calendar no longer syncs, but does on other handsets, so i think i need to edit the "USERDATA.IMG" File that is on the Android files.
Does anyone know how to edit this file?
Click to expand...
Click to collapse
You need the unpackbootimg binary, which will extract it; then you can use mkbootimg binary to make it into an img file
I have this compiled already in http://cyanogenmod.arif-ali.co.uk/tools

I can't transfer files from pc to phone (just inside the folders)

Hi! i did a root with motochopper..and after it when i wanted to transfer a file from pc to a folder of the s 4 i saw a message like this the device stop responding or is disconnected...but when i transfer a file outside the folders i can and its all ok.So i did a reset and i installed the original german firmware that there is on net but after the reset and after i installed this firmware....i cant still transfer files inside the galaxy s 4 folders..but outside them i can.So i guess, is not the root? is a characteristic of the s 4? if not how can i solve this..i have windows 7.
Edit i rooted the phone with another method found on net..now i can put a file in many folder but not in the obb folder..why?
not entirely sure why it is like that. but the easiest fix is to move the file you want to put into obb somewhere else on your phone and then use a root explorer on your device to move it into obb.

Cannot access the TWRP folder

I recently flashed the stock android lollipop tgz file on my nexus 7. I rooted it, and then wanted to restore my nandroid backup. But, the backup does not appear in the recovery menu. I couldn't also copy the backup files to the tarp folder (no such folder existed, and when I tried making one using es file explorer or root explorer, it gave an error message.) How do I fix this problem. Please help guys I am sort of new to the forum[emoji16]
Same problem here. It does show up but it's a 0 bytes file last modified in 1970 (start of unixtime)
This is on my Nexus 4 though. Flashed manually with official images from Google and rooted with SuperSU.
- make sure you're using the latest twrp recovery for your device. get the latest img file for grouper (nexus 7) and mako (nexus 4) here: http://techerrata.com/browse/twrp2
- if you look around the forums, you'll find that people have had similar issues since lollipop. forget about trying to access twrp folder in android/es explorer for now (BTW droiderrr18 is probably getting the error when trying to create the folder because it's already there, just doesn't look like a folder and can't be opened, it looks like the 0 byte file looking thing LooieENG mentioned).
What you want to do instead is boot into twrp recovery and connect to your computer. you should be able to access your folders and files in MTP connection from Windows and move to your old backup that way. if not you can always use adb push command. the backup folder for twrp is storage/sdcard0/TWRP/BACKUPS
you can also do a new backup and find it, then move your old backup there to restore.
(side note: twrp also has its own file manager where you can see and if necessary manipulate your files, but be sure you know what your doing in there)
dtg7 said:
- make sure you're using the latest twrp recovery for your device. get the latest img file for grouper (nexus 7) and mako (nexus 4) here: http://techerrata.com/browse/twrp2
- if you look around the forums, you'll find that people have had similar issues since lollipop. forget about trying to access twrp folder in android/es explorer for now (BTW droiderrr18 is probably getting the error when trying to create the folder because it's already there, just doesn't look like a folder and can't be opened, it looks like the 0 byte file looking thing LooieENG mentioned).
What you want to do instead is boot into twrp recovery and connect to your computer. you should be able to access your folders and files in MTP connection from Windows and move to your old backup that way. if not you can always use adb push command. the backup folder for twrp is storage/sdcard0/TWRP/BACKUPS
you can also do a new backup and find it, then move your old backup there to restore.
(side note: twrp also has its own file manager where you can see and if necessary manipulate your files, but be sure you know what your doing in there)
Click to expand...
Click to collapse
I have the same problem. I need to access its data.f2fs.winxxx files for restoring my backed up apps using Nandroid Manager, which cannot access the folder, even though the original folder (/data/media/0/TWRP) can be accessed from ROOT EXPLORER and TWRP recovery file system
Nandroid Manager looks for only /sdcard/TWRP directory i guess, thus is unable to get backup storage location. Changing the Storage location in Nandroid Manager also has no effect.
I need to restore my backup apps. Please help if u can!

Categories

Resources