Call and SMS history
The history of calls and messages are stored in a MySQL database. For safety reasons (i.e. to not modify the database itself), we make a copy of it and look into it:
$ cp .local/share/history-service/history.sqlite ~$ sqlite3 history.sqlite
SQLite version 3.8.5 2014-06-04 14:06:34
Enter ".help" for usage hints.
sqlite> .schema voice_events
CREATE TABLE voice_events (
accountId varchar(255),
threadId varchar(255),
eventId varchar(255),
senderId varchar(255),
timestamp datetime,
newEvent bool,
duration int,
missed bool,
remoteParticipant varchar(255));
...
sqlite> .schema text_events
CREATE TABLE text_events (
accountId varchar(255),
threadId varchar(255),
eventId varchar(255),
senderId varchar(255),
timestamp datetime,
newEvent bool,
message varchar(512),
messageType tinyint,
messageStatus tinyint,
readTimestamp datetime,
subject varchar(256)
);
...
sqlite> .output messages.txt
sqlite> select * from text_events ;
sqlite> .output calls.txt
sqlite> select * from voice_events ;
sqlite> .quitAnother easy way to look for something particular is just grep from a .dump output:
Note: The column accountId (here: "ofono/ofono/account0") is the reference to the used SIM1 or SIM2 during the call. It can be probed which SIM is which account with:
Last updated: Fri Nov 6 13:46:34 CET 2015
Last updated
Was this helpful?