05/06/2011, 03:41 AM
|
#1 (permalink) |
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
New Approach: https://bitbucket.org/rcmarvin/sms.d...a44d6d91f0.zip
Tools required: 1. PalmDatabase.db3 to allow SMS to be exported using sqlite3.exe (included in the package) 2. Windows XP or newer 3. Developer mode + WebOS SDK or novacom to enable terminal access, transfer files from and to WebOS device 4. Firefox 3.6 or newer to run JS to do the conversion from db3 format to db8 format m Remarks: My Pre- CPU (@500Mhz) can process about 100 message per minute using the new approach. Warning: Large number of message may cause database full error. (feedback of seguardado and Alaaddin) Changes: 14 Sep 2011 Decrease message import from 100 to 25 at a time to avoid error (feedback of JSladen) 21 Aug 2011 Fix the SMS status that may contain cause pending message 7 Jun 2011 New approach: It seems that WebOS db8 should have some build-in mechanism to process imported message, this should fix the redundant conversation thread problem 25 May 2011 Update guide according to feedback of linwiz311 The SQL file is also modified (credit: linwiz311) Background: I've been looking for way to migrate my old Pre- SMS to the newer WebOS 2.1, tried to search in the forum, and there are only a few thread talk about it and there seems no solution at that moment. Also, as the structure of WebOS 2.1 is changed, it is not possible to use external tools to open the db file like before. However, after the Impostah from WebOS Internals is out, it is possible to study the structure of message in db8, with the help of WebOS Internals Wiki and Palm Developer Documentation, I have found out a way to transfer WebOS 1.4.5 sms from PalmDatabase.db3 to WebOS 2.1. Obviously it is still in very alpha stage and I can only confirm it is working for my device and on the emulator only, so it may not work for others. But I think my experience may provide some hints for others to do the conversion, any volunteers are welcome to try and see if it work with their data in the WebOS emulator. Last edited by rcmarvin; 05/24/2012 at 01:32 AM. Reason: in response to Alaaddin feedback |
05/13/2011, 01:26 PM
|
#2 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 60
Likes Received: 1
Thanks: 1
Thanked 6 Times in 4 Posts
|
This would totally answer the question I've posted to multiple forums about transferring data from a Pre- to a Pre3 when it launches (with no replies, positive or negative).
It sounds like you've only tested this on an emulator, so I'd be very interested to hear from someone who got it working on an actual phone. If it works even marginally well, I will be frankenPre-ing ASAP to be ready for the Pre3 when it comes. |
05/13/2011, 03:18 PM
|
#3 (permalink) |
|
Member
![]() Join Date: Jan 2008
Location: Rio de Janeiro - Brazil (Oh, Yeis!!!)
Posts: 715
Likes Received: 76
Thanks: 857
Thanked 43 Times in 36 Posts
|
Hummm... there is some chance to work from Treo 680 to webOS?????
I have 6 years transfering my SMS from old to new cell/smartphone, but the Palm OS never gave me some option to send my messages back to SimCard, and I don't wanna to lose! The story of my courtship, marriage, pregnancy of my daughter and everything else in this period are there; so, is VERY important to me! Serious! If I can import my old SMS from my Treo or from the Treodesktop program, I leave the Palm OS and stay only with webOS... Best Regards...
__________________
[b]"Evolution History... Or Not!" ![]() Basic Math: Pre + Pre - Pre 2 ≠ Pre³ :-\ |
05/14/2011, 11:16 PM
|
#4 (permalink) | |
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
Quote:
Last edited by rcmarvin; 05/19/2011 at 10:32 AM. |
|
05/16/2011, 05:17 PM
|
#5 (permalink) |
|
Member
![]() Join Date: Jan 2008
Location: Rio de Janeiro - Brazil (Oh, Yeis!!!)
Posts: 715
Likes Received: 76
Thanks: 857
Thanked 43 Times in 36 Posts
|
Thanks for reply.
I'll gonna test and see the results, and after I leave here! Best Regards...
__________________
[b]"Evolution History... Or Not!" ![]() Basic Math: Pre + Pre - Pre 2 ≠ Pre³ :-\ |
05/22/2011, 01:55 AM
|
#6 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 106
Likes Received: 0
Thanks: 66
Thanked 24 Times in 15 Posts
|
Hi rcmarvin,
Unfortunately, it did not work well for me. I managed to get it to export from the palm database and load in Firefox with a few modifications that I've attached to this post. However, it had errors creating the ins2.sh part -- "Cannot match old ChatThread with current db8 ChatThread". Let me know if you have any ideas on how to fix this and thanks for all the work you've done! |
05/23/2011, 02:11 AM
|
#7 (permalink) | |
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
Quote:
1. Are there any contacts inside the WebOS devices? 2. Are there any message on the device before running the script? 2. Is ins1.sh (step 3) created properly in Firefox? After you transferred the script to the device, any error occurred during the execution of ins1.sh? 3. Have you transferred the ct_current.json.js back to host after the execution of ins1.sh? Last edited by rcmarvin; 05/23/2011 at 06:23 AM. |
|
05/23/2011, 02:47 PM
|
#8 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 106
Likes Received: 0
Thanks: 66
Thanked 24 Times in 15 Posts
|
Quote:
2) There was one text on the new device before I ran the script 2.5) Ins1.sh was created and seemed to work when I ran it on device. I had to make sure to change all the window line endings to unix line endings. 3) Yep. Transferred it and replaced the one that was created by the bat file. |
|
05/23/2011, 03:15 PM
|
#9 (permalink) |
|
Member
![]() Join Date: Jan 2008
Location: Rio de Janeiro - Brazil (Oh, Yeis!!!)
Posts: 715
Likes Received: 76
Thanks: 857
Thanked 43 Times in 36 Posts
|
Hi, rcmarvin.
Well, I have the .CSV file from Palm OS messages. Now, can you explain how can I to convert from ".CSV" to ".DB3"? ![]() Best Regards...
__________________
[b]"Evolution History... Or Not!" ![]() Basic Math: Pre + Pre - Pre 2 ≠ Pre³ :-\ |
05/24/2011, 11:05 AM
|
#10 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 106
Likes Received: 0
Thanks: 66
Thanked 24 Times in 15 Posts
|
Hi rcmarvin,
Thanks again for all your work on this patch. I was finally able to transfer my texts. My issue was that I did not know I needed to have my phone connected before running the batch file as it retrieves data from the webos 2.0 device. The only thing I've noticed is that group texts seem to be repeated for each person the text was sent to. Also, it looks like there are frequent heading changes in the messaging program with the same number in a different format for each text i.e. 1630-XXX-XXXX or 630-XXX-XXXX. |
05/24/2011, 01:09 PM
|
#11 (permalink) |
|
Member
![]() Join Date: Jan 2008
Location: Rio de Janeiro - Brazil (Oh, Yeis!!!)
Posts: 715
Likes Received: 76
Thanks: 857
Thanked 43 Times in 36 Posts
|
Well, rcmarvin...
I exported my message database from Treo 680 to a ".CSV" file. But I don't know what to do now... can you give me a help? Sorry for my newbie question! :P Best Regards...
__________________
[b]"Evolution History... Or Not!" ![]() Basic Math: Pre + Pre - Pre 2 ≠ Pre³ :-\ |
05/24/2011, 01:34 PM
|
#12 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 60
Likes Received: 1
Thanks: 1
Thanked 6 Times in 4 Posts
|
Rnp, I don't think you are going to be able to get your SMS database onto WebOS. I know when I went from a treo 755p I was only able to back up the texts to a text file.
The .CSV is just a text file that has the entries separated by commas. I think it is only for SMS messages, too, whereas the WebOS db3 database contains contact list information, SMS, IM convos, etc. I would highly, highly doubt there is any way you could possibly get the .CSV converted to the db3, and even less chance of converting it to db8, short of going into the database and manually entering all of those conversations contact by contact, message by message. You do have a backup of all those SMS messages now, though... just not on your phone in the messaging app. You can probably convert that file from .CSV to plain text and load it on your phone to be viewable with a text viewer app. You might be able to find a program that converts the .CSV into html to be viewable by a web browser, but I don't know anything about that. You have to ask yourself whether you really need access to 8 years of old texts on your phone or whether just having them backed up and readable on your computer (or possibly on your phone just not in the SMS app) is good enough. Everyone who got an iPhone lost all their texts at first. Everyone who got an Android phone did as well. Everyone who got the first Pre lost them and will lose them a second time when they go to Pre2/Pre3. |
05/24/2011, 02:13 PM
|
#13 (permalink) | |
|
Member
![]() Join Date: Jan 2008
Location: Rio de Janeiro - Brazil (Oh, Yeis!!!)
Posts: 715
Likes Received: 76
Thanks: 857
Thanked 43 Times in 36 Posts
|
boarder1999, Thanks for your tips.
Well, I know that is not easy, but... I want to try! ![]() Quote:
But I want to change this, and this is my "final frontier"! Thanks again. Best Regards...
__________________
[b]"Evolution History... Or Not!" ![]() Basic Math: Pre + Pre - Pre 2 ≠ Pre³ :-\ |
|
05/24/2011, 02:43 PM
|
#14 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 60
Likes Received: 1
Thanks: 1
Thanked 6 Times in 4 Posts
|
Well, there are no tools for you to do this conversion. You will have to open up the database, figure out how it links contacts and messages and time they were sent, then type in every single text message by hand. I'm going to guess that 6 years of SMS messages will take you a very long time indeed to type in.
Good luck. The tool this thread is discussing is a way to convert from one database that is already linked to this information to another database that is linked in a similar way. |
05/25/2011, 03:10 AM
|
#15 (permalink) |
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
I've looked at the result of the CSV and given the big difference between the structure of th CSV and db3, I have no easy way to do the conversion. In the current moment, I think I will work on the db3 and db8 conversion, until more people confirm that the conversion instruction indeed work for them. Sorry about that.
Last edited by rcmarvin; 05/25/2011 at 04:25 AM. |
05/25/2011, 03:22 AM
|
#16 (permalink) | |
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
Quote:
And I'm not sure I understand the meaning of header changes. Do you mean the header that contain both phone number and the date of message received? If that's the case, what is the correct number pattern? Is that 1630-XXX-XXXX? Sorry, I'm not familiar with phone number on another region. |
|
05/25/2011, 01:34 PM
|
#17 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 106
Likes Received: 0
Thanks: 66
Thanked 24 Times in 15 Posts
|
Quote:
I still haven't figured out why group texts are repeated for each person it was sent to, but I'm also looking into that. It looks like this is happening with the initial extract from the palm databse, so I'm thinking it has to do with the db3 sql statement. |
|
05/25/2011, 07:39 PM
|
#18 (permalink) | ||
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
Quote:
Quote:
Last edited by rcmarvin; 05/26/2011 at 12:32 AM. |
||
05/25/2011, 11:23 PM
|
#19 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 106
Likes Received: 0
Thanks: 66
Thanked 24 Times in 15 Posts
|
Quote:
For the normalization issue, I'm not exactly sure what the correct behavior on webos 2.0 in the US. Maybe someone who sends and receives texts with webos 2.0 can look in Impostah and let us know? I still haven't upgraded my Pre- yet... One more question: Does this program combine texts that are already in the db8 database to the old ones you're trying to insert? Or does it replace current texts in the db8 database with items from the db3 database? I don't know if you've talked to Rod or Jason, but I'm sure they can probably take some of this work and integrate it into Save/Restore, Impostah or WQI since most of the script is written in javascript. This would make it more accessible to people... and I'm sure a lot of people will find this work very useful. |
|
05/26/2011, 01:22 AM
|
#20 (permalink) | |||
|
Member
![]() Join Date: Apr 2011
Posts: 41
Likes Received: 2
Thanks: 7
Thanked 21 Times in 5 Posts
|
Quote:
Quote:
Quote:
The only problem I found in my new test is that if the phone number does not exist in the contact list, it may create yet another new thread, even if a chat thread already existed in db8. In that situation, no message is replaced either, but there is two thread for the same number. (i.e. one thread with old messages, one thread with new messages). The problem is also caused by the normalizedAddress. As I stated in last reply, my current normalizedAddress is just the last 8 digit of phone number, so the normalizedAddress of phone number 22345678 is still the same. But the correct normalizedAddress (of US region) should be 45678, and that's why my script think that there is not match for existing thread and create a new one. I started looking into the original implementation of WebOS source and found out there is a list of phone number format defined for different region (/usr/palm/frameworks/globalization/version/1.0/formats), but the copyright of the script is reserved by Palm. I don't think I can just grab them and use. |
|||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



