Skip to content

Reading SQLite App Records and Exports

To interpret records stored in a mobile app's SQLite database, locate the relevant source row, verify how the app defines its fields, and compare it…

By Reviewed by Sushil Kumar

Last updated:

To interpret records stored in a mobile app's SQLite database, locate the relevant source row, verify how the app defines its fields, and compare it with what the parsed export displays. Keep the original identifier, status, value and time representation. Report any transformation the export applies and any field or supporting file that was unavailable.

A database can show that an account has a message record. A second table might show the delivery events for that record. A combined export can repeat the message body once for each event, making one message look like several. Knowing which table produced each field and how records are related lets you explain the apparent difference.

Key terms

Schema
The structure of a database, including tables, columns and any declared relationships or rules.
Primary key
A database-defined identifier for a row within the relevant table.
Write-ahead log (WAL)
A SQLite journal used in WAL mode. It can contain committed changes that have yet to be incorporated into the main database file.
Join
A relationship applied when combining records from two sources or tables using matching values.
NULL
A database value representing missing or unknown information in the relevant field. Application context still determines what the absence means.
SQLite
An embedded relational database engine. For forensic review, identify the app’s schema and the database state the tool examined.
More key terms (2)
Checkpoint
In SQLite write-ahead logging, a process that transfers committed changes into the main database. A main-file-only view may omit newer changes when the relevant checkpoint has yet to occur.
Cardinality
The number of records permitted to match across a relationship. A one-to-many join can repeat one message in the exported table.

By the end of this topic, you will be able to do the following.

  • Identify the parts of a supplied SQLite database set that affect review.
  • Read a synthetic schema, trace related rows and distinguish record counts from event counts.
  • Compare source fields with interpreted display values.
  • Document the effect of missing information on a finding.

Establish Which Database State You Have

Review the acquisition inventory for the database, associated files and information connecting them to the same collected set. SQLite explains that a database and its WAL, when present, form part of its persistent state. Separating them can lose committed changes or make the resulting database inconsistent. The absence of an associated file in a supplied set is a coverage question. It can be expected for some database states and consequential for others. SQLite write-ahead logging documentation

Record which files were supplied and which copies were used for the review. Preserve originals and use the laboratory's approved examination process on a coherent working copy. If the available material consists of a parsed export alone, describe that limitation. A report can faithfully represent its export without allowing independent verification of the original source fields.

When a SQLite write-ahead log is present, its provenance matters to the represented database state. Record the files supplied and the limits of the state each output represents.

Android and iOS apps may both use SQLite. Application platform, version and schema remain relevant because a field called sent can have different meanings across apps or app versions. Record the app or source identity and avoid assuming there is a universal database path, table or timestamp field. For a broader comparison of the platforms and their app storage, see Android and iOS Forensics: Operating Systems, SQLite and App Data.

Read the Schema Before the Values

Find out whether the record describes a thing or an event. A messages table may keep one row per message, while a status table records several events for the same identifier. If an export combines those tables, it may repeat fields from the message row. Check both the nature of the related records and how they are linked before converting a count into a finding.

The joined display records two events for one message. Use the defined source key and namespace when counting distinct messages.

Scroll horizontally if needed to see the full table.

Field shapeQuestion to ask before interpreting it
Row identifierIs it local to this table or is it a stable service identifier shared across sources?
Status codeWhich fixture, app documentation or independent verification supports the meaning?
Time stored as a numberWhat clock, epoch and unit does the field use?
Blank report cellDoes the source contain NULL, empty text, zero, an omitted field or an unreadable value?
Reference to another rowDoes each message have one related row, several rows or none?

SQLite has storage classes for NULL and other values, but it has no dedicated date-time storage class. App schemas can store times as integers, text or other values. Column type and display format alone do not settle the meaning of a timestamp. Verify the app's storage convention and preserve the underlying representation alongside any normalized value. SQLite datatypes documentation

Confirm What the Export Changes

Tool exports can replace codes with labels, apply time conversions, omit fields and flatten relationships. A blank report cell can hide the difference between a missing value and an empty string. When that difference affects the examination question, check the source value and the export's behavior on known data. Where the source is unavailable, keep the interpretation conditional.

The same rendered blank can represent different source values. Check the stored value and export behavior if the distinction affects the finding.

For a time-limited search, record which time field and units were used. An export filtered on message creation could include a message whose delivery falls outside the window. A different report filtered on delivery could omit that same message even though it was created inside the window. The disagreement can be explained by the event and filter logic before treating either output as faulty.

A review table should identify the exact unit of analysis. Count messages at message-record level, events at event-record level, and other objects under the rule their source supports. If the export removed the join key, preserve the displayed count and explain why the available data cannot resolve repeated records. A subject line or body might help a review, but identical content can occur under more than one message identifier.

A stable record locator points a reviewer to the relevant original file, table and identifier, wherever the documentation and permitted reporting scope allow. If the finding rests on a calculated field, record the input and transformation. Include the tool and parser version when they affect interpretation. See Tool Validation and Scientific Reliability for using known examples to check derived fields.

Check Which Source Rows the Report Leaves Out

A report built from a database can lose items during the comparison itself. An inner join returns matched rows. A left join can preserve messages with no matching status row, although a later filter on the status columns can remove those messages from the result. If the report was designed to list delivered messages, that behavior might be appropriate. If the question is how many messages the source contains, start from the message table and count by its verified key. SQLite SELECT and join behavior

In a practice dataset with three message rows, M1 has two status rows, M2 has one, and M3 has none. An inner join can yield three output rows while completely omitting M3. Compare the distinct message keys before and after the join. The number of report rows alone happens to match the source count even though the report represents only two messages.

An inner join pairs each message with its matching status rows. In this practice dataset, three joined rows represent only two distinct messages because M1 has two matches and M3 has none.

Test the Claim With a Positive and a Missing Match

Use a small test that exercises the disputed condition before trusting the report. A known message with a valid status row checks that your join can find the intended record. Another known message without a matching status row checks how the report represents the absence. If repeated local IDs can occur across accounts, include a third test that gives two accounts the same local ID. The report should show the relationship verified for each account.

A positive and missing example check whether an export preserves both outcomes. A repeated local identifier checks whether the report also respects the account namespace.

Record the underlying dataset reference, the columns used to link the records and the filters that affected inclusion. Save a short result for both the matched and missing cases. This gives another examiner a way to check the logic even if the original viewer’s grouping hides the distinction. Link the chain of decisions to the report finding, including any limits on what the local key identifies. Reconciling Conflicting Tool Outputs

Check Which SQLite State the Export Represents

Start by identifying the SQLite database state represented by the evidence. A write-ahead log (WAL) can hold committed changes that have yet to be checkpointed into the main file. Review the inventory for the main database and any associated files, then verify that the files came from the same collection and source. A report from the main file alone can show a different state from a report using the coherent set.

Preserve the received files and document the working copy and the reader used for examination. Where only a derived export is available, identify the missing source and any fields that cannot be independently confirmed. Avoid associating a same-named sidecar from another collection. A filename match alone gives little evidence that the main file and sidecar represent the same database state. Keep the path and acquisition provenance with each member.

The schema helps identify the unit of analysis. A message table might store one row per message and an event table several rows per message. Verify the join field, its namespace and cardinality before counting records. Also compare the displayed value to the original storage representation. SQLite has no dedicated date and time storage class, so an integer time field needs an app-specific epoch and unit. A blank cell can hide a null, empty string or suppressed value.

In a synthetic app, messages contains M12 for account A9, and events contains E20 and E21 linked to M12. The fixture defines their codes as accepted and delivered. An export joins the tables and repeats message content for each event. The source therefore contains one verified message and two linked events. If another export drops message identifiers and retains only repeated text, the number of distinct messages cannot be verified from that text.

Capture the file, table and key for any reported value. Record the export filter and which clock and event field it uses. A creation filter and a delivery filter can give different results for the same interval because they select different events. Check those semantics before attributing a disagreement to a parser defect. An independent reviewer should be able to recreate the scoped result and see which transformations generated the report.

Casework Examples

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
The main database is present and the matching WAL was not supplied. What could affect a case finding?

Test yourself on Mobile Forensics with free, timed mocks.

Practice Mobile Forensics questions

Found this useful? Pass it along.