yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Development and Hacking] shinichi_wtn:
GoodDayToDie have told the technical part very clearly:)

Now you can directly use SMSBackup V0.4 to backup and restore "store.vol".
[Windows Phone 7 Development and Hacking] BellPego:
Version 0.4 gives back an error.. :S
[Windows Phone 7 Development and Hacking] dxdy:
v3 work fine with HTC HD2 Pdaimatejam Rom v7 test version... also work in combination with wf Phone Tools

not yet tried v4
[Windows Phone 7 Development and Hacking] ruyzalim:
don´t work here with my hd7 with nextgen rom 2.5 it gives me this error: " Ccan not import sms or no sms can be imported"

anyone can help?

thanks

edit:

i installed latest version and now i got this: " import failed Can not copy sms from system" :(
[Windows Phone 7 Development and Hacking] shinichi_wtn:
The messages are extracted from "CommsBackup.xml". This error means that you can not copy "CommsBackup.xml" to IsolateStorage. In other words, can not use provision xml to copy native files.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
What's error?
[Windows Phone 7 Development and Hacking] BellPego:
Something like... Value does not fall into he expected range...
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Try uninstall the old version first and then install the new version.

If the error still occurs, you can help me find the problem. I rebuild a xap which is enabled to show StackTrace of the exception. So please deploy the file attached and tell me the error in detail, then I'll find and fix the problem, thanks.
[Windows Phone 7 Development and Hacking] michael.hu:
That's must be amazing!

What a useful tools for us!

Thanks again!
[Windows Phone 7 Development and Hacking] p34cdc2:
Same here, but with the workaround below my files ended up in Skydrive.

I used Touchexplorer and copied the two files (sms.xml and sms_export.txt) from \Applications\Data\09125EA9...\Data\IsolatedStore to My Documents. Renamed sms.xml to sms.xml.txt. Then went to Office -> Phone, the two files are now visible as M$Word files, and can be uploaded to Skydrive from context menu -> Share.
[Windows Phone 7 Development and Hacking] darthveda:
I have focus and 0.4 fails for me as well, with the same error mentioned about value out of range.

I installed the test version and this is the message:

Import failed, Failed to build recipient to contact index at

System.throwhelper.throwargumentException(ex...)
[Windows Phone 7 Development and Hacking] wpxbox:
Latest Version has issues :

Import Failed. Value Does not fall within the expected range.

Samsung Focus 8107
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Thanks very much for your feedback, I find a small bug under certain conditions in v0.4 when handling contacts. The next version(v0.5) will fix this error. You can use v0.3 currently.
[Windows Phone 7 Development and Hacking] darthveda:
excellent, will wait for 0.5 then :)
[Windows Phone 7 Development and Hacking] eric1204:
v0.5 work great with Mozart 8107 Fullunlock Updateable Rom.

but still issue with HD2 8107 Fullunlock Updateable Rom during login Skydrive exit app. :confused:
[Windows Phone 7 Development and Hacking] VNavratil:
Does it work with 8107 system? I am using v0.5 on my Omnia7 but this pops up after the launch: "Import failed, Can not copy sms from system". I have both phone unlock and interop unlock.
[Windows Phone 7 Development and Hacking] contable:
Thx for this app !

I can confirm that it works well on my OMNIA 7 with the latest 8107 build:

I could backup all sms´s from my 1st OMNIA 7 and after that I restored them to my 2nd OMNIA 7. Great !

Hint for OMNIA 7 owners: This app doesn´t work with the latest KK2 Samsung update, because the provxml security hole has been closed by Samsung.

Cheers

contable
[Windows Phone 7 Development and Hacking] wpxbox:
Which tool to use for exploring ISOLated Storage so I can restore the SMS ?
[Windows Phone 7 Development and Hacking] contable:
Windows Phone Power Tools: http://wptools.codeplex.com
[Windows Phone 7 Development and Hacking] wpxbox:
OK so the backup works on my focus. Now can the next step be to merge SMS Database from two phones ?

I have created a video demo where I have deleted and restored an SMS to explain how the whole thing works http://www.youtube.com/watch?v=UbSlXQteVAE

Also find detailed review : http://www.wpxbox.com/restore-wp-sms/
[Windows Phone 7 Development and Hacking] BellPego:
v0.5 works great now.. Sorry didn't help before.. My computer died during the week end.. LOL
[Windows Phone 7 Development and Hacking] kevyn82:
any solution for a LG device? at least how to access manually the sms DB?
[Windows Phone 7 Development and Hacking] lantern20:
App works well, thanks!

I have a couple of questions though. Is there a way to download (import) the smsbackup.xml from skydrive, even if it's only to the SMSBackup app?

Also, would it be possible to upload the store.vol to skydrive and bring it back from within smsbackup?

Thanks again!
[Windows Phone 7 Development and Hacking] bc3tech:
dev-unlocked HTC Trophy here. When deploying w/ the app deploy tool, i get error 0x81030120... ideas?
[Windows Phone 7 Development and Hacking] didopicha:
Tested v0.4 on my HD2 Yuki WP7, works splendid so far (no troubles with SkyDrive at all).

However, I have the following question - is there a way to import a xml database with SMS messages exported from Android using this tool? I guess it's not possible at the moment but is it theoretically possible? :) I have a huge message archive collected in the past 4 years and I'll be very happy if I can keep it like I did when I switched from Iphone to Android.
[Windows Phone 7 Development and Hacking] Vintage144:
works fine on my 1st gen focus , doesnt list all the names , in otherwords some names get listed and others just show the phone number , all of mine are listed as me , but all in it doesnt matter , great job! My phone has windowbreak and it works fine

My wifes phone has heathcliffs interop unlock , but her phone was updated through Zune on the regular schedule and this program works fine , she is up to date 8107 , so Im not sure about the kk2 thing !
[Windows Phone 7 Development and Hacking] darthveda:
works fine on the focus now..thanks for this awesome tool :D
[Windows Phone 7 Development and Hacking] VenezuelaDan:
Thanks for the great app. Unfortunately, neither importing nor backup work (though exporting & Skydrive work).

First of all, I'm using a Samsung Focus 1.3 v7720 Interop Unlocked

When importing, I get an error that says "Import failed, Can not copy sms from system", then when I click OK, it says "Can not import sms or no sms can be imported".

Then, when I try to backup, it gives me this error: "Backup failed". If I try again, it gives me another error: "Backup failed, Operation not permitted on IsolatedStorageFileStream."

Please help me fix this. Thank you.
[Windows Phone 7 Development and Hacking] melando:
This guide is very helpful. App still crashes immediately after logging in to Skydive so needs a work around for me.
[Windows Phone 7 Development and Hacking] DarkD1988:
Thx man for this app

Is there any chance to translate the app for German dudes?

I will do this, can you give me all words are used in this Application?

THX!!!!!!!!
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Thanks for your feedback:)
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Because backup and restore is only for professional users; you can only backup and restore sms.xml(the app use this file to store all text messages) and store.vol(system sms database) by using an Isolated Storage tool (such as Windows Phone Power Tools: http://wptools.codeplex.com)
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Your phone must be interop-unlocked before you can deploy the app.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
No, we have no way to operate store.vol because there is no API for manipulating this kind of file. We can only backup and restore the whole file currently.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
It is easy to add new language in the app. The trouble is that when new version comes out, it may need more words(thus difficult to maintain). I think English is enough.

The file attached is the words used in V0.5. If it is really necessary, I can build a new xap which includes German language.
[Windows Phone 7 Development and Hacking] didopicha:
Shame... It would've been great for people looking to migrate from other OSes to WP7 to be able to import all their data.

Thank you for your answer.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
This error means the app can not copy "CommsBackup.xml" in your phone(\Application Data\Microsoft\Outlook\BackupVols\CommsBackup.xml), you can try DiagProvXML to check if it can be copied.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Agree with you. Hope Microsoft will provide some programs or APIs to manipulate sms in Windows Phone in the future.
[Windows Phone 7 Development and Hacking] VenezuelaDan:
Sorry for double post. My bad.
[Windows Phone 7 Development and Hacking] VenezuelaDan:
So I did as you suggested (luckily I already had DiagProvXML, but thanks for the link anyway), and I was able to successfully copy CommsBackup.xml from \Application Data\Microsoft\Outlook\BackupVols\ to IsoStorage (Pic Attached). So when I confirmed that I *could* copy it, I went to try the program again and got a new error:

"Import failed, Failed to provision cml

at

System.IO.IsolatedStorage.IsolatedStorageFil..."

Any help would be greatly appreciated.

Thanks
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Strange problem. The possbile reason I think is that your CommsBackup.xml is too big(32MB) and copying it will cost some time. In my code, I just wait for a certain amount of time(6 seconds). Is there a "CommsBackup.xml" file in my app's IsolatedStorage("\Applications\Data\09125ea9-95de-469a-aedc-22e35389ab0a\Data\IsolatedStore\Backup\") ? If it exists, then can copy this file but need more waiting time.
[Windows Phone 7 Development and Hacking] VenezuelaDan:
Huh, yeah, there it is! There's also a store.vol (48 MB) in BackupVols. So am I to assume that it worked alright (and the error comes from CommsBackup.xml being to large)?

Thanks for your response.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Yes, the app can copy the file, but need more time for executing the copying operation(currently I only set to 6 seconds). I will add a strategy for handling large CommsBackup.xml in the next version(for example, wait for a longer time). Thanks for your feedback! I think you have more than 10,000 text messages.
[Windows Phone 7 Development and Hacking] VenezuelaDan:
Yeeeeeeah about those messages, I never delete my girlfriend's messages (weird romantic sentiment, I know). So that's why.

That would be awesome! Thanks for the help.

Just so you know, after all the troubleshooting and whatnot, I decided to try and restore. After a couple of failed messages saying it couldn't restore, it said it succeeded. It really did succeed (I deleted some useless messages, and they restored). So even after all that, it did work.

This was the last thing holding me back from reformatting my phone and starting from scratch (some weird glitches have been popping up, too much tinkering).

You're the best. Thanks for helping out the whole Windows Phone homebrew community.
[Windows Phone 7 Development and Hacking] skorpio:
i have translate the excell file for the italian language...

may be useful?
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Actually, it is possible to operate on those files. They are database volume files, either the legacy CEDB (Compact Edition DataBase) or the new EDB (Embedded DataBase) format. There are native APIs on Windows Phone for dealing with both types of database. Of course, they just enable you to read/write the contents (databases and the records they contain) in the file - it's up to you to process those data.

Unless you have some way to increase your app's permissions (I use HtcRoot project on my phone, Heathcliff74 has a method for Samsung but hasn't published it yet), you'll need to copy the .VOL file to your app's Isolated Storage first, or you won't be able to open it using the native APIs (Error 1260/0x4EC).

You can read more about my recent exciting adventures with these APIs here: http://xdaforums.com/showpost.php?p=22126541&postcount=102 . I was specifically dealing with the policy database, so the SMS database may behave a little differently, but the general principles should work. The links to MSDN docs for CEDB and EDB functions are here: http://msdn.microsoft.com/en-us/library/ee489739.aspx . You'd need to write some native code, and probably expose it through COM; Heathcliff74 has written a rather fine tutorial on the steps to do that (I'm assuming you know, or can lern, C++).

Alternatively, your app seems to work pretty well as-is, so you could always just stick with that too. :-) Seriously, well done; this was a gaping hole in WP7's (already pretty bad) backup story.
[Windows Phone 7 Development and Hacking] Nowaynoway:
I’m using Omnia 7 with 8107 build and it is not working with me. It always show backup failed.

i have tried smsbackup v2 and it back up the file successfully but i could not find it under the folder.
[Windows Phone 7 Development and Hacking] kahiro:
phone contacts

hi. firstly thanks for the great app.

did anyone noticed any odd behavior with contacts after a restore?

i did a couple of test after a hard reset and found the following:

1. if i sync with live account first restoring store.vol kinda screw up the people hub. The live tile doesn't show any pictures anymore and the contact photos get screwed up. ie, photo for contact A will show as contact B.

2. if i restore store.vol first and then sync live account then the word search in the people hub get screwed up. ie, contact John Doe is there but when i search for John no results. i can scroll to the contact open the contact but just doesn't show when searching.

anyone got any suggestions/solution would be much appreciated.
[Windows Phone 7 Development and Hacking] gres-197:
Thanks shinichi_wtn...Your program is very helpful ;)
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Good:) it's really an exciting news. I will spend some time to look into it. Although I'm not very familiar with C++, I will try. Thanks for sharing your adventures on CEDB and EDB.
[Windows Phone 7 Development and Hacking] AshleyT:
Just a little information...

I have an Omnia 7 with the latest firmware that locks the possibility of using this application. Now I want to flash a DFT Full-Unlocked ROM.

I copied "store.vol" using Windows Phone Device Manager

Now, All I need to do, after flashing, is to put that file back where it was before? Anything else?

EDIT: It works! I'm so happy :D

(I used WP7 Root Tools to copy the file)
[Windows Phone 7 Development and Hacking] pLUSpISTOL:
It's not possible to restore a *.txt backup is it? Lost my *.vol :(
[Windows Phone 7 Development and Hacking] GoodDayToDie:
It would be possible if you re-create the database with the CEDB APIs. Somebody would need to reverse-engineer the database layout first, though, then write an app that takes the TXT and imports it.

Alternatively, it might be possible to use the SMS APIs directly, but... same problem. Somebody would have to develop it.
[Windows Phone 7 Development and Hacking] 2new:
Thanks shinichi_wtn for a great app.

I have the same problem as kahiro

Procedure :

Flashed my phone, HTC HD2, with Pdaimatejam Rom Wp7.5 mango 7.10.8107.79 v7.3

Synced with Zune

Installed SMSBackup v0.5

Copied my store.vol to the phone, and restored it.

Added Windows Live account (tried also adding this before install of SMSBackup)

Added Exchange Account (tried also adding this before install of SMSBackup)

When I enter Messages all my SMS looks fin, but it is when I go to the People hub it doesn't. I can't search, many contact pictures are not there and my old people groups are there (?).

When I look in account settings, the Windows Live account is not there, but account asossiated with it (LinkedIn, Facebook, Twitter) is...... strange.

But to my question;

I also have used the export function, so I have TXT and XML files with mys SMSs, is it possible to just copy one of this files to the right place on my phone ?
[Windows Phone 7 Development and Hacking] AshleyT:
Ok, I've flashed a ROM and copied store.vol where It was before, but now I can't see contacts correctly (duplicated ones and wrong pictures)

I would copy my messages in a xml or txt format, but CommsBackup only contains the Windows Phone Welcome SMS...

Is there any way to force the update of CommsBackup.xml manually?

Thank you!
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Just copying one of those files probably won't help, because the phone generates them as backups rather than using them as the main file. You'd have to find some way to tell it to reconstruct the SMS database from the backup.

It sounds like just copying the database volume brings along more than simply the SMS history - some other data is also stored in that file.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
I encounter the same problem that I can't search my contacts after restoring an old store.vol. It seems that it is not a perfect backup and restore solution at now.

When I edit one of the contacts(for example, add a new profile picture) and save, then I can search this contact......It seems contacts' information not only store at store.vol but also some other file(s)......and the searching feature seems not use store.vol at all.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Yes, as I currently know, store.vol contains text messages, accounts' info and contacts' info. It seems that there also exist some other file(s) which contain contacts' and accounts' info...
[Windows Phone 7 Development and Hacking] AshleyT:
Thank you for the reply!

I know that this won't help me to restore my SMS correctly, but at least I'd like to have an xml version of my SMS (I don't care If I can't put them back on the phone), I just want to know an updated version of CommsBackup.xml on my computer... I guess it's not possible to update manually... Do you know how often the phone updates this file?

Thank you
[Windows Phone 7 Development and Hacking] shinichi_wtn:
In my experience, the system updates the CommsBackup.xml every day or every two days but not at a certain time(I have around 3000 text messages).

My app will store the last importing time. If the current time when you open SMSBackup is more than 12 hours after last importing time, then it will copy CommsBackup.xml again to see if it is an updated one.
[Windows Phone 7 Development and Hacking] AshleyT:
Unfortunately, your app doesn't work on my phone (Samsung Omnia 7 with DFT Freedom ROM), but I can copy It manually using WP7 Root Tools :)

Anyway, thank you very much for the information, I'll try again tomorrow :)
[Windows Phone 7 Development and Hacking] divdroid:
I am also facing the same issue, The messages are restored correctly but the thumbnails in the contacts are all jumbled up ....any solution to this....
[Windows Phone 7 Development and Hacking] shinichi_wtn:
About the store.vol and PimIndex.vol

I think I find the reason why we can not search contacts after restoring store.vol. There's another file in the same folder named PimIndex.vol (\Application Data\Microsoft\Outlook\Stores\DeviceStore\PimIndex.vol)

As GoodDayToDie suggests. I use native EDB API to explorer both store.vol and PimIndex.vol(They both are EDB database). I find some useful information about how Windows Phone stores datas. Here are what I find currently.

First, store.vol is a big file that stores almost all datas in Windows Phone. There are 29 tables in this database as below, including our contacts(Contact table) and sms(Message table) and other important datas such as appointments.

Account

Activity

ActivityRelatedObject

AggregateContact

Album

Appointment

Attachment

Category

CategoryMap

Comment

Contact

Conversation

Feed

FindContact

FolderMetadata

Folders

ItemMetadata

Message

NamedProps

Note

PartnerFolder

PartnerItem

Photo

Recipient

Store

SyncPartner

Tag

Task

TrackedFolder

Second, PimIndex.vol is a small file stores contacts' indexes. Windows Phone use this file to search contacts. It only contains 6 tables as below.

ContactsAllName1Index

ContactsDisplayEmailIndex

ContactsDisplayName1Index

ContactsDisplayName2Index

ContactsDisplayNameFullName1Index

IndexInfo

So, if we want a perfect restore, we not only backup store.vol but also PimIndex.vol. After flashing, we copy them both to the original place.

I will publish a new version to backup and restore these two files soon.

The next step is to find how to modify PimIndex.vol and help those(include me) only restore store.vol and are not able to search contacts.
[Windows Phone 7 Development and Hacking] cyclonemon:
The problem closes to get resolved.

Thanks for future.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Niiiiice work! Taking WP7 backup capability to the next level, very nice.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
Tester needed

Update to version 0.6. This version allows you backup and restore both store.vol and PimIndex.vol.

Now I'm researching on how WP store contact's index in PimIndex.vol. Every contact appears in the database is a fixed length array of byte. The length is 12. For example 01-00-00-00-02-00-07-00-8E-00-00-00.

Now, I find that 8E(142) is the unique ID of the corresponding contact(in Contact table of store.vol). But I am not sure that every phone is the same. Also, if the contact's ID is larger than 256, for example 257(I only have 200 contacts...), how the array will like to be. 01-00-00-00-02-00-07-01-01-00-00-00 or 01-00-00-00-02-00-07-00-01-01-00-00 or something else...

So I add a test feature in v0.6(Click "test" in the menu bar). I need your feedbacks, thanks!
[Windows Phone 7 Development and Hacking] dxdy:
thank you... v0.6 not tested yet but can confirm, v0.5 work great (backup and restore) with Pdamatejam v7.3 HD2 ROM...
[Windows Phone 7 Development and Hacking] dandrayan:
My contact index format is:

05-00-00-00-02-00-07-00-43-01-00-00
[Windows Phone 7 Development and Hacking] skorpio:
is possible translate to italian language?

thnx...
[Windows Phone 7 Development and Hacking] wpxbox:
My contact index format is:

05-00-00-00-02-00-07-00-30-02-00-00

Samsung Focus / 7.5 / 8107

---------- Post added at 08:16 PM ---------- Previous post was at 07:37 PM ----------

One Quick Question here, Does it remember how contacts where linked to each other and to which mail account ?

In case somebody switches to a new phone, How will it remember to which account was it connected to ? I hope you get the idea.
[Windows Phone 7 Development and Hacking] shinichi_wtn:
It is possible, but not at now. It is difficult to maintain because new versions will update the words. I think English is enough at the moment. Maybe in the future, more languages will be added to the app (when the app is stable)
[Windows Phone 7 Development and Hacking] poloche:
Feedback

My string is : 05 00 00 00 02 00 07 00 11 00 00 00

Thankx for all works ;)
[Windows Phone 7 Development and Hacking] lordmago:
Issues and feedback on Contact index

Mine is 05-00-00-00-02-00-07-00-62-00-00-00.

Hope I wrote it right! :D

1) Today I installed 0.6 version, I started it and it shows me only sms sent/received until yesterday... Today sms aren't shown :eek: Any suggestion?

2) I wanted to backup store.vol and PimIndex.vol, but since I didn't install outlook express in my laptop (using Mozilla Thunderbird), I can't find them...
[Windows Phone 7 Development and Hacking] skorpio:
ok, no problem, if you wont support to translate all new versions, i can help...

thanks