-
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
Crash SMS app under CyanogenMode 11 - KitKat 4.4.4 #12
Comments
Very possible there's something that changed. You're absolutely right, a database file will help me figure that out. Could you send one more database with a few dummy texts to a couple different numbers and maybe a group-text? That'd let me add group messaging support to android. |
Yep, surely the DB models have changed. I have fixed my problem by using another application, but this could be surely usefull for others interested users to fix your program :) About the database, I have send you a link ( http://demo.ovh.eu/fr/0c27f9a58507da9ac539c8e32b99f63e/ ) to download a dummy base, this should be enough to see the schema changes of tables / columns I suppose. Regards, |
Same here : crash of the sms app. I launch "adb root" and then I copied "mmssms.db" with "adb push" and it so is owned by root, so I made a "chown radio:radio mmssms.db" but nothing change (in fact, it seems the app is usable whatever is the owner). This issue is probably because there is still the former "mmssms.db-journal" file which should be generated especially for mmssms.db The crash can also be because of an utf-8 conversion (see #14)... |
I reinstalled my phone in default state, you can find there the content of theses two files : http://demo.ovh.eu/en/00ec25f5d777f6e2bd4729c99176cade/ I also tried deleting mmssms.db-journal without any success |
I tried an "adb push" with mmssms.db I got from the script on a two different android on the same hardware with the same error : message app crashes.
Since it crashes the app on two android, the origin of the crash is the generated mmssms.db file. |
I forgot to write that these logs are from a 4.2 version of android. On which android version have you tried your script ? |
I try to help to enhance this script, but it seems this script is not used anymore and I can't do anything without any information. It seems that table pdu should not exist so I need to know why it already exists. |
I tried to delete table pdu, then I read with "adb logcat" that table should not exist then it was successively the same with tables rate, addr, part, drm, and then sms. |
OK, it seems that there is at least one difference which cause this issue : the date_sent is does not exist. I tried to debug the code but I have a (probably basic) problem : when cloning the code locally, I can not launch without this error : ./bin/smstools Note that there is an init.py file in smstools directory and into subdirectory smstools/tests/ (but not anywhere else)... I could use some help here... |
Even after adding the missing date_sent field, it seems there is still this «already existing table» problem with (at least) pdu table.
Has anyone encountered this problem ? |
Since this script seems to not be maintained anymore, I tried several other ways to transfer text messages. |
Ok, investigating this bug, I found several clues to solve it. Then, it seems the mmssms.db SQLite database format can change at every version of android (for instance, it is version 58 in 4.1.2). SMS app use a pragma into mmssms.db SQLite script to identify this mmssms.db version ("PRAGMA user_version = 58;") So any script used to convert iPhone sms to android sms should take into account IOS version and android version to check if it can do conversion, and then import consistently IOS sms and export them consistently into android sms. |
Hello,
I have copied my sms.db from my rooted iphone 4 ( iOS 7 ).
I used your last Git version like that : ./bin/smstools --type android ~/sms.db ~/mmssms.db
38624 messages read in 0.580560922623 seconds from ~/sms.db
sorting all 38624 texts by date
Creating empty Android SQLITE db
processed 38623 entries, 695 convos, (115 entries/sec)
finished in 157.396391153 seconds (average 245/second)
changes saved to /home/guillaume/mmssms.db
I have keep a copy of my mmssms.db of my rooted Android phone ( I have direct ssh access )
I have set the correct owner/privileges on the copied file ( chown radio:radio / chmod 660 )
I have restarted the phone.
When I launch the SMS app, I have a popup to said the app have crashed.
I can't start the app :(
Any idea ?
If this could help, I give you the empty DB created by my Android version. May be the DB format have changed ?
http://demo.ovh.eu/fr/0c27f9a58507da9ac539c8e32b99f63e/
Regards,
The text was updated successfully, but these errors were encountered: