-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need some help. Newbie in python language. #9
Comments
The command you're looking for is BUT outputting to iOS databases isn't something I've built yet.. I don't have my jailbroken iPhone to test with– I loaned it to my cousin while she travels. I could try based on what I know about the database structure but you'd have to test it (by restoring a backup or by overwriting the file via ssh if your phone is jailbroken) to see if your messages show up as expected. |
First of all, thank you for replying to my request. python.exe C:\Python27\Scripts\smstools android.xml ios6.db out.db --type ios6 assuming that android.xml and ios6.db are my original databases and out.db is the result of the merging process. 645 messages read in 0.0940001010895 seconds from android.xml I'm sure that ios6.db is not encrypted. I copied it directly from my jailbroken iphone. All permissions are granted. Just now, I've tried with the command line you've posted in your reply: python.exe C:\Python27\Scripts\smstools android.xml out.db --type ios6 assuming that (if I've understood the meaning of this command) smstools would merge the android.xml directly in out.db, where out.db is my original ios6.db file. 645 messages read in 0.109000205994 seconds from android.xml As you've stated, the process of outputting to iOS is probably not built yet. |
More feedback will hopefully help with issue #9
Alright, so I've updated the tool to give lots better error output. Try the first command again and see what the result is! They may have changed the database format in more recent Android versions or something and this will help figure out what changed. I tested importing iOS 7 messages and it seems to work perfectly with the code I wrote for iOS 6. |
Hi t413!
as suggested above, where 'C:\smstools' is the folder in which I've stored my databases.
Nothing more than this. |
Alright!
but
I've tried to find out how to send you an email through github but with no luck. |
Sure, I'd be happy to! My email is [email protected] (it's goole apps) if you'd like to use gchat/hangouts or email there. Is your phone jailbroken? |
Thanks for your email. OK, let's go! |
I need to get an empty database from your phone and a db with 1 message in it. Here's how:
I'll use them to create the initial databases to output to. Having the single message version will help figure out what tables are updated when a new message arrives. |
Ready!
Now I have an empty database and the one with 1 message in it. |
Hey everyone! I've spent I pushed it to a new branch called testing. If you can help by testing it out please do!
Part of this effort was to support group MMS/iMessage chats. It's not implemented in Android import or export yet but it should preserve your iOS group conversations now. |
Hi Tim! |
Alright Tim!
I think that maybe it could be an error in compiling. |
You beat me to it! Nice job! Damn, I forgot to fix this. Patching it now. -Tim Tim O'Brien On Wed, Aug 20, 2014 at 10:09 AM, gelbrait [email protected] wrote:
|
Alrighty. Here's the fix on the testing branch (you can download the zip from that link too or run It hopefully (crosses fingers) should let you export to iOS 6 (it's the same database as ios7) and work on the phone. |
Sorry Tim, but the output is:
It's not a matter of life or death! |
No life or death, certainly. But good practice. Anyway, that was a bug specific to running from git. I just pushed another patch to fix it, again to the testing branch (same url as my last comment) |
OK Tim! |
Great!
But I must say: definitely a great job! |
Of course the goal is perfection! I'm at a job interview now, but I'll get right to these issues tomorrow morning. Thanks for the help! |
- All of this is to address issue #9 - support input json (sort of, needs testing)
Hi Tim!
I edited this output only to hide the true "sender" and the "message body". |
Cool. So you are getting a KeyError too. Not exactly sure why, and I'm getting them on some databases too. I'm writing an array of tests to use real databases to nail down what's causing all of the issues you've identified. I put in the message/sender/date output there so you could check the date of the latest message. If the databases weren't sorting together correctly then it's because the date is off (probably in Android.db parsing). Could you compare the date it gives you with what's on the phones? |
The date is on. The database I used for testing wasn't updated. |
In your readme.md I've found this suggestion:
usage: smstools [-h] [--type {xml,json,android,csv,ios5,ios7,ios6}]
infiles [infiles ...] outfile
Well, executing this command line gives me an error on "{".
I'm sorry but I need some help. I'm a newbie in python.
Basically, I have two files: an Android .xml file and an iPhone .db file. I want to merge them in a unique iphone .db file. What is the correct command line I have to execute?
Thank you in advance for your kind attention and patience.
The text was updated successfully, but these errors were encountered: