How I Transfered Windows Mobile SMS to Android |
![]() ![]() |
How I Transfered Windows Mobile SMS to Android |
Aug 19 2009, 19:57
Post
#1
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
This was just a quick and very dirty solution and its nothing for people who dont know what they are doing... but here is my way:
First of all you still need root access to your Android device to get the SMS Database file located in /data/data/com.android.providers.telephony/databases The file is called mmssms.db and it is a sqlite database. Make a copy of this file to your computer. Then export your Windows Mobile SMS with this Tool: http://wince.nasenbaeren.net/smsimport/SmsImport.exe This will create a single XML file of all your SMS Folders. Take this file also to your Computer. Then, use my little programm attached here and open the xml file. But first change the Foldernames for the SMS folders. For me (German Windows Mobile Device) this was Posteingang for the Inbox and Gesendete Objekte for the Outbox. Take a look at the XML file there you find the foldernames. Now open up your xml file and let the programm read them. When you do it right then the Datagrid will show up your imported SMS Messages. Check, them. Edit them. Do what ever you want This has worked for me (Importet 600 SMS without errors) but dont know if this will work with other users databasefiles and sms messages. I'm not responsable for damages or dataloss. Use it at your own risk. 2009-08-19: Alpha 2 Release
This post has been edited by patzek: Sep 3 2009, 08:11
Attached File(s)
|
||
|
|
|||
|
Aug 20 2009, 01:21
Post
#2
|
||
|
Newbie Group: Posters Posts: 14 Joined: 4th August 2009 Member No.: 571,749 Device(s): G1 |
I still get the error with your newer release. It is: Column recipient_address does not belong to table Table. [OK]
This is my xml file. Is there anything wrong with it? I used the program you pointed out to transfer from my titan wimo6. <?xml version="1.0" encoding="UTF-8"?> <SMSExport> <store name="SMS"> <folder name="Deleted Items"></folder> <folder name="Drafts"></folder> <folder name="Inbox"><message date="07/12/2008 12:16:34" sender="+1234567890" recipient="+9876543210">message text goes here</message></folder> <folder name="Outbox"></folder> <folder name="Sent Items"></folder> </store> </SMSExport> and this is what it generates. I used a test with only one sms message and still get the TABLE error. If you could please post your xml file, I could edit mine to match the format. Your program reads all smses from XML file.. all columns ie: date, time, from, to, and message match fine. thank you, Regards, Bart. |
||
|
|
|||
Aug 20 2009, 04:37
Post
#3
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
The Column "recipient_address" is Part from the Messagedatabase not from the XML File. So there is an error with your mmssms.db File. Have you selected the right one? Do you have a Hero? What kind of modification have you made to your telephone? Firmware Version?
You can also check your mmssms.db File with an SQLLite Explorer (there exists an Plugin for Firefox). The Column is Part of the Threadtable. Maybe you can take a look at this. |
||
|
|
|||
Aug 20 2009, 09:09
Post
#4
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 19th August 2009 Member No.: 577,345 |
Sorry for the doublepost
In what way can you get to the android sms-database? Using Astro or Linda doesn't work. I succeeded exporting the Windows Mobile xml-file, but I just can't find a way to get to /data/data/com.android.providers.telephony/databases What programm do I need to get to the sms database file on my Android phone? Yes, my phone is rooted. |
||
|
|
|||
Aug 20 2009, 11:06
Post
#5
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
i used the adb command from the sdk to copy the file to the sdcard and then the normal usb-transfer to get it on my pc.
|
||
|
|
|||
Aug 20 2009, 12:50
Post
#6
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 19th August 2009 Member No.: 577,345 |
I used some adb commands like:
adb pull mmssms.db /data/data/com.android.providers.telephony/databases /sdcard can't get the job done... I'm no developer, I tried to extract this detail from the guide. I got as for as the above line... I feel stupid. It would be very very usefull if you could write a little howto on pulling and pushing the database file. In the style they did for rooting. You bet, you'd help a lot of people if you did this. |
||
|
|
|||
Aug 20 2009, 14:31
Post
#7
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
use this commands:
adb shell su cd /data/data/com.android.providers.telephony/databases cat mmssms.db > /sdcard/mmssms.db exit exit now you have the database on your sdcard and can be transfered with normal usb transfer to write it back from the sdcard do: adb shell su cd /data/data/com.android.providers.telephony/databases mv mmssms.db mmssms.db.old cat /sdcard/mmssms.db > ./mmssms.db chown radio.radio mmssms.db chmod 660 mmssms.db exit exit hope this helps |
||
|
|
|||
Aug 20 2009, 16:46
Post
#8
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 19th August 2009 Member No.: 577,345 |
So! That's something completely different as I did...
Thank you for your reply. The routine hangs during copy... After: cat mmssms.db > /sdcard/mmssms.db The system comes back with "cannot create /sdcard/mmssms.db: read only file system" Do you have a solution? I seems I have to chmod something first? |
||
|
|
|||
Aug 20 2009, 16:55
Post
#9
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
why should the sdcard mounted as read-only
can you post the output of mount? adb shell su mount |
||
|
|
|||
Aug 20 2009, 19:32
Post
#10
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 19th August 2009 Member No.: 577,345 |
Here are the result of mount:
mount rootfs / rootfs ro 0 0 tmpfs /dev tmpfs rw,mode=755 0 0 devpts /dev/pts devpts rw,mode=600 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 /dev/block/mtdblock3 /system yaffs2 ro 0 0 /dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0 /dev/block/mtdblock4 /cahce yaffs2 rw,nosuid,nodev 0 0 All hocus pocus to me... |
||
|
|
|||
Aug 20 2009, 19:44
Post
#11
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
there is no sdcard mounted, so there are two reasons possible...
1. no sdcard inserted 2. hero is attached to pc with usb transfer enabled because then the sdcard is unmounted, so first disable the usb mode, then you can copy the file to the sdcard and after this you can reenable the usb transfer mode |
||
|
|
|||
Aug 20 2009, 20:06
Post
#12
|
|||
|
Newbie Group: Posters Posts: 6 Joined: 19th August 2009 Member No.: 577,345 |
You're right; my device was still usb connected.
It all worked right now. All my sms messages are now transported from my windows mobile device to my HTC Hero! Thankyou Patzek |
||
|
|
|||
|
Aug 22 2009, 05:47
Post
#13
|
||
|
Newbie Group: Posters Posts: 14 Joined: 4th August 2009 Member No.: 571,749 Device(s): G1 |
The Column "recipient_address" is Part from the Messagedatabase not from the XML File. So there is an error with your mmssms.db File. Have you selected the right one? Do you have a Hero? What kind of modification have you made to your telephone? Firmware Version? You can also check your mmssms.db File with an SQLLite Explorer (there exists an Plugin for Firefox). The Column is Part of the Threadtable. Maybe you can take a look at this. Thanks for this info. I have a Tmobile G1 Firmware 1.5 Baseband ver 62.33.20.08H_1.22.14.11 Kernel Version 2.6.27.00393-g6607056 san@sandroid #1 Build CRC1 Flashed w tmobile patched bin with root access. No other nods except previous downgrade to get root and now.. the rc1 When I look at the .db file I see Tables(13) / threads (not thread) and recipient_ids... I will attach a screen grab... thanks again for all help. |
||
|
|
|||
Aug 24 2009, 07:45
Post
#14
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
The Messagedatabase from the Standard 1.5 Android Build looks a little bit different than the Hero one.
I try to add support for this kind of Database on afternoon. |
||
|
|
|||
|
Aug 24 2009, 09:28
Post
#15
|
||
|
Newbie Group: Posters Posts: 6 Joined: 10th August 2007 Member No.: 287,412 Device(s): HTC Magic |
The Messagedatabase from the Standard 1.5 Android Build looks a little bit different than the Hero one. I try to add support for this kind of Database on afternoon. Hallo patzek, with the new version of your software I can now see messages from my Magic in data grid When i try to write to the db, i get this message: Cannot perform '=' operation on System.String and System.Int32 any idea? thank you |
||
|
|
|||
Aug 24 2009, 19:30
Post
#16
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
Hallo patzek, with the new version of your software I can now see messages from my Magic in data grid When i try to write to the db, i get this message: Cannot perform '=' operation on System.String and System.Int32 any idea? thank you I've added some more Debug Informations to the new build. Maybe you can post the errormessage here. |
||
|
|
|||
|
Aug 25 2009, 07:56
Post
#17
|
||
|
Newbie Group: Posters Posts: 6 Joined: 10th August 2007 Member No.: 287,412 Device(s): HTC Magic |
I've added some more Debug Informations to the new build. Maybe you can post the errormessage here. I try tu put the image here. In any case there is an attachment with the errormessage. thank you
Attached File(s)
|
||
|
|
|||
|
Aug 26 2009, 03:21
Post
#18
|
||
|
Newbie Group: Posters Posts: 14 Joined: 4th August 2009 Member No.: 571,749 Device(s): G1 |
The Messagedatabase from the Standard 1.5 Android Build looks a little bit different than the Hero one. I try to add support for this kind of Database on afternoon. WOW patzek, I must admit Although I have another lame question. Is it possible to merge transferred database into one thread? What I have is my SMSes going back and forth with one person on my xml file. Android creates those threads between You and another person. When I transferred the .db it created "My" thread based on my phone number where only my SMSes are, and added other person's SMSes to existing thread that i had in my android phone. Now I have 2 threads, one "Me" with only my SMSes and "Other Person" thread which was merged. I was looking for a way to move "My" SMSes to another thread, but I don't think it is possible. Are there any managing tools for SMS database in android? Thanks again for your time. You really have quick solutions for everything here Regards, Bart. ps: what does "Messagetype" column do in your program? This post has been edited by SKORPiO1975: Aug 26 2009, 03:23 |
||
|
|
|||
Sep 3 2009, 08:11
Post
#19
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
|||
|
|
|||
Sep 3 2009, 08:15
Post
#20
|
|||
|
Newbie Group: Posters Posts: 43 Favorited Topics: 1 Joined: 3rd October 2008 Member No.: 433,044 |
WOW patzek, I must admit Although I have another lame question. Is it possible to merge transferred database into one thread? What I have is my SMSes going back and forth with one person on my xml file. Android creates those threads between You and another person. When I transferred the .db it created "My" thread based on my phone number where only my SMSes are, and added other person's SMSes to existing thread that i had in my android phone. Now I have 2 threads, one "Me" with only my SMSes and "Other Person" thread which was merged. I was looking for a way to move "My" SMSes to another thread, but I don't think it is possible. Are there any managing tools for SMS database in android? Thanks again for your time. You really have quick solutions for everything here Regards, Bart. ps: what does "Messagetype" column do in your program? Normaly my SMSImporter also link SMS Messages together like Android does this. I check this by comparing the Phonenumber from Sender/Receiver with the existing ones and when i find the right one then the message get attached to the existinig thread. The only reason that i can think what happens on your side that all of your Messages get an own thread is that the Numbers in your Messages are looking other then the Numbers in the Messages of the other Person (Country Code maybe??? ) Messagetype = 1 = Received Message Messagetype = 2 = Sended Message This post has been edited by patzek: Sep 3 2009, 10:10 |
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Porting Froyo for Pulse/8220 |
1,242 | eckengucker1 | 114,261 | Today, 07:21 Last post by: daveycarter |
![]() |
if you want Froyo, Linux, etc. on Streak |
85 | smokku | 4,244 | Today, 07:23 Last post by: smokku |
![]() |
Basically other rom mods with Chinese "tweaks" for Taiwan |
27 | twrock | 1,179 | Today, 05:33 Last post by: TaiwanCHT8k |
![]() |
03/Sep r2 (8105) WIP - MoDaCo Custom ROM for the Dell Streak (Android 2.1) Online Kitchen | 119 | Paul | 4,959 | Today, 06:17 Last post by: jutley |
![]() |
Keep getting this error android.process.acore | 8 | AndroidKiller | 118 | Today, 06:36 Last post by: kallt_kaffe |
![]() |
Locked US Dell Streak - Trying to upgrade to 2.1 Sorry for duplicating questions |
5 | digthemlows | 74 | Today, 06:18 Last post by: digthemlows |
|
Lo-Fi Version | Time is now: 9th September 2010 - 07:50 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
ActiveKitten |
Binaryfish |
Conduits |
DeveloperOne |
eSoft Interactive |
FTouchSL |
Inesoft |
LastPass
Lingvosoft |
monocube |
OmegaOne |
Omnisoft |
Opera Software |
Resco |
SBSH |
Splashdata
Sprite Software |
Syncdata |
Teksoft |
Titanium Backup |
VITO |
WalkingHotSpot |
WebIS |
z4soft
Would your company like to become a 'Plus Partner'? Click Here to contact us!