Extract content from android backup - Android Q&A, Help & Troubleshooting

Hello everyone...
I find the phone with the non-working tuch ..
From the recoveri mode I managed to make a complete backup of the phone on sd and generated these 3 files:
userdata_20160101_000035.backup
userdata_20160101_000035.backup1
userdata_20160101_000035.backup2
is there a possibility to extract the content ???
I would be interested in contacts.
I state the phone is a Majestic
Thank you.

recovering contacts is not easy. you need SQLite Forensic Explorer to view the database file. the database is separated in many different tables, each table has a column "raw_contact_id" which contain always the unique id-no of contacts (one table contains phone nos, another table contains names, etc... you must query tables by id).
once you have extracted the backup, the file "contacts.db" is located "/data/data/com.android.providers.contacts/databases/"

from the backup I made, how do I extract the contacts.db file ??

remove the checksum(s) and merge the files. you need linux
don't be scared, i will explain you step by step. first step: do you have linux? if yes, press CTRL + ALT + T this is the terminal where you can do it. if no, please download unetbootin and prepare a bootable usb stick. you can run ubuntu on your pc without installing. don't hesitate to ask if you need help regarding unetbootin

scacco728 said:
finally I was able to understand something of the terminal in place ..
I move to the folder where the files are, I open the terminal I enter the commands and I generate this error .. why do you think ???
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
"dd" does not accept wildcards. press <TAB> instead of * for word completion. you must type the full file name. remove the stars in this example code.
edit: i will answer in this thread, because this are linux basics. so lets open a "beginner" thread here, and leave the other thread open for more advanced questions. finally, your goal is to extract contacts, what we should not discuss in main thread

Related

[Q] How to make update.zips for CWM for mini pro?

Hey guys,
I really want to make a theme for slades rom but i just dont get how to make a flashable update.zip. Additionaly the new CWM requires edify-scripting -.- and here my update-zip-packager doesn't work anymore..for xrecovery it was just awesome..i already tried some amend2edify-converter, but that did not work either
So my question is, how can i make (or edit) an update.zip which can be flashed with the new CWM 3?
Thanks in advance,
nitro
i faced a similar situation today itslelf..n was ultimately forced to download the cwm version of slade's rom v5..
well if u just want to edit and replace apps n stuff, that can just b done in the sam way as any xrecovery rom...i used winrar to add n remove stuff from the rom n it works gr8
okay, thats an idea..but i want to make a theme..which means a flashable update.zip-file..does somebody know with what programm i can make such update.zips?
@ slade: how do you create your update.zips, e.g. the hotfixes with some single files?
Why don't you take a CWM package an unpack it via winrar/any other software? I'm quite sure there is an absolutely common folder structure following more or less the system folder structure and maybe there is one or there are more XML files in order to change some things in source files (e.g. change values in those *.hw files or whatever they are called) and to tell CWM what to do exactly.
As soon as you're done you simply zip it again (watch the folder structure).
***EDIT***
Ok, forget what I just posted. Had a look at one of slades zips and it's a little bit more than just an XML. Might not be smart to change stuff within that META-INF folder without knowing what you do.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://dl.dropbox.com/u/10158456/aZuZu%20Small%20Tools%204%20SE/SCRIPT%20CONVERTER/aSC.zip
load amend script, correct converted script if needed.. and click convert & save

Packaging rom LG G2 [Part 1]

* Here I would like just the thing to get you one way to get the important files inside the rom to play.
* This method is used for the newer phones from 2012 or machine type which is read out by name.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
* The download files below you unzip the file and run Dump_Block_Rom.bat is. Son of Super SU it asks what the press to allow offline.
* After the class finished 10-15 minutes depending on the size of the rom. And then the window will appear Dump rom you press start, then you restart the computer. And internal memory in a folder named VDT-ROM, you copy the file inside .img okay. If you do know then play rom so that you do not even know the wait continues Part 2 of VDT okay. Wish you success.
Download terms.
https://mega.co.nz/#!MQc1QZgS!Oz40yyAkxlnHueEbFv03K1xNS0YcnLyKxcRPWgeo4e0
Click to expand...
Click to collapse
source:
http://vandieutot.com/threads/cach-dong-goi-rom-lg-phan-1.196/
Click to expand...
Click to collapse
Packaging rom LG G2 [Part 2]
- Once you have all the files in the folder where your VDT-ROM then guided in part 1 Well has completed half. Now I just followed you make part 2 even more interesting, too.
- Download below to download this file unzip the folder I was first called META-INF then you copy all the files in the folder VDT-ROM into the folder where you unzipped as in the image below. Then select all the files that are compressed into zip has been one of the rom then.
- Depending on the individual machines that each file size, not machine as well as machine. The figure below illustrates just to let you do such machines is to visualize the files in the file stepfather. META-INF folder is also required. I wish you success.
Download terms.
https://mega.co.nz/#!5ZFHjI6B!iGfm_2xmX3VjRb9ql9ccPfgEu9zjAcVYRHseqqPqiF0
Click to expand...
Click to collapse
source:
http://vandieutot.com/threads/cach-dong-goi-rom-lg-phan-2.258/
Click to expand...
Click to collapse
I wish Google Translate could translate Google Translate to English.

View IMEI stored in MP0B_001 file on PC

Hi all,
Is there a program that can view the IMEI number(s) directly from the MP0B_001 file (/data/nvram/md/NVRAM/NVD_IMEI/MP0B_001)?
Not sure if it matters, but the device is an MTK phone running Android 5.0.
Never mind, I got bored and made an IMEI viewer myself:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If anyone is interested, you can download it here (imeiview.exe).
Algorithm is taken from the source code of a program called imei_mtk6515 which I downloaded from here.
No idea if it will work for all MTK processors or just some, though.
-------
[EDIT - November 17th 2015]
I added editing capabilities:
C4lculated said:
Never mind, I got bored and made an IMEI viewer myself:
If anyone is interested, you can download it here (imeiview.exe).
Algorithm is taken from the source code of a program called imei_mtk6515 which I downloaded from here.
No idea if it will work for all MTK processors or just some, though.
Click to expand...
Click to collapse
Hi C4lculated,
Is it possible to change imei from MP0B_001 file?
Sure, just generate the required IMEI(s) with the "imei_mtk6515" utility I linked to in the previous post and copy them from the MP0B_001_NEW output file to your MP0B_001 file with a HEX editor (I use HxD and like it a lot). IMEI1 is stored in bytes 0-7 of the MP0B_001 file and IMEI2 is stored in bytes 0C-13 (Hex).
Actually, scratch that, if you'll do as I suggested bytes 10 and 11 of the IMEI will be incorrect, maybe it will still work, maybe not.
I can't think of any reason you would want to change IMEI.
Nevertheless, I'll take every chance I get to practice my programming muscles, so I changed my utility so that you can edit the IMEI(s) stored in MP0B_001 with it.
Download at the 2nd post.
Thread closed. IMEI editing is illegal in most countries in the world and as such banned from the site.

Data lost but huge "system data" partition after a crash

Hi everyone.
I've a Nexus 5 which runs Android 6.0.1 but I think the problem is not especially related to the Nexus 5, so I post here.
What happened ? Few days ago my phone crashed (I didn't use it) and was slow to boot up. So I tried to force the reboot by pressing the power button for 15/20s and it worked.
But 5/10min after I saw the "Select language" menu ... The phone performed a factory/reset by itself. I don't know why.
First, I plug my phone to my computer and I've seen that 26GB/32GB were already in use.
So I tried to recover my pictures and videos with many apps and the one which worked was "Undeleter" (5$) but it didn't recover all my data.
Yesterday, I wanted to understand what happened really. I ran "DiskUsage" which give me this result for /storage/emulated/0 :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How can I access to the "System data" partition which has a size similar to the storage space used before the crash ?
Regards,
Laurent
EDIT :
Finally I backed up all my data !
Indeed, files of my memory (/sdcard) before the crash was in /data/lost+found/#1351681/0
Then, I was able to move them to /sdcard and to copy the files on my PC.
How to ?
Make sure your phone is rooted and install a file explorer such as Root Browser.
Open Root Browser and navigate until /data/lost+found/#xxxxx [in my case, with a Nexus 5 it was 1351681/0]
(Look for the directory which corresponds to your previous "sdcard".)
Now, you can see the files but you can't open them. So move (not copy!) them to /sdcard (I suggest you to do that folder by folder).
Great, you've recovered your files ! But now, transfer them to your computer to prevent damages (I was forced to do that and remove files after to continue because the storage was full).
You can do it in connecting your phone to your computer and via the explorer or you can use adb (adb pull /sdcard/directory_to_move path_to_a_dir_of_your_computer)
I hope it will be useful.
Laurent

Development [STABLE] Windows All-In-One Tool Batch File

[BETA] Windows All-In-One Tool Batch File​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A good tool based on Windows batch commands. It has a few commands for now, (already 200 lines, but alright ...) but I will keep updating it and make a good release. It works for now, but not everything is correctly yet.
Download​Source #1: GitHub
How to use​Opening program​All tools/options​1. DISM and SFC Repair - Use this option if you want to check your computer of corrupted Windows files, and recover them if needed.
2. Create Restore Point - Creates a restore point with the name 'Restore Point'. (I might update the name in the future to use something like the date, need to look into that...)
3. Windows IP Configuration - Checks the network settings and show information about the network adapters using the IPCONFIG command.
4. User List - Shows a list of all users that exist on the PC.
5. Check Windows Version - Opens WINVER.exe, from where you can check information about the version of Windows.
6. Ping Tool - Allows you to ping a website.
NOTE: don't add ping before the command! So 'ping -t google.com' becomes '-t google.com' here.
7. N/A yet.
8. Open Terminal - Allows you to open a Windows Command Prompt. (Still need to fix something there).
9. Credits - Shows all the credits for the program (Currently me and Microsoft. Microsoft for developing the possibility to make those easily-to-develop programs)
10. Tool Information - Shows information about the batch file/tool.
11. Exit - Closes the tool.

Categories

Resources