Skip to content
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

Added support for bugle_db format of messages on newer Androids #26

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

p1ne
Copy link

@p1ne p1ne commented Feb 16, 2017

No description provided.

@o1hitman1o
Copy link

This is working. Thank you for your efforts it has helped me.

@ghost
Copy link

ghost commented Feb 11, 2019

This doesn't work for MMSes (group chats, pictures, etc.). @p1ne ?

@ghost
Copy link

ghost commented Feb 11, 2019

Group chats should be possible to add. Images, on the other hand, seem to be stored elsewhere (not in bugle_db).

@ghost
Copy link

ghost commented Feb 11, 2019

Also the resulting file thinks all of the texts you sent are actually authored by the other person in the conversation. This is a pretty bad bug.

'select\
ppl.normalized_destination as num,\
p.timestamp as date,\
case when m.sender_id in (select _id from participants where contact_id=-1) then 2 else 1 end incoming,\
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By using -2 in the "where clause", this seems to partially work with my saved db.

Suggested change
case when m.sender_id in (select _id from participants where contact_id=-1) then 2 else 1 end incoming,\
case when m.sender_id in (select _id from participants where contact_id=-2) then 2 else 1 end incoming,\

That's OK for conversations with known participants (in participants table).
For pushed SMS or unknown participants (without full_name in participants table), messages are assigned to the receiver instead of sender.

IMO, the SQL request needs to be refined to match all cases.

However, it was enough to save my life when my phone dropped me

@LucidOne
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants