Chapter 16 · Reading 2 of 3
App databases and backups
CHFI domains 3, 4, 5, 6
The full file-system extraction of the driver’s iPhone produces more than 400,000 files. The questions are specific: what did the driver’s messages say around 16:20, which apps recorded location, and did the delivery app log a scan near Bayview Road? Almost every answer lives in a database inside one app’s container, and the examiner needs to know where to look and how far to trust the tools that look for them.
Where app evidence lives
Mobile apps store most structured data in SQLite databases, the same format browsers use (Chapter 9), and settings in property lists on iOS or shared_prefs XML files on Android. Some apps add their own formats, such as LevelDB, Realm or protobuf blobs inside database fields. Media lives in files alongside.
| Evidence | iOS | Android (varies by version and maker) |
|---|---|---|
| Messages (SMS, iMessage, RCS) | /private/var/mobile/Library/SMS/sms.db | mmssms.db in the telephony provider; Google Messages app database for RCS |
| Call history | CallHistory.storedata (Core Data SQLite) | calllog.db in the contacts or call-log provider |
| Photos and their metadata | Photos.sqlite plus DCIM files with Exif | external.db media store plus DCIM files |
| Location history | Significant-location and routine databases (encrypted, protected) | Google account Timeline, now stored on the device in recent versions |
| Third-party apps | Each app’s container under Containers/Data/Application/ | /data/data/<package>/databases/ |
The same SQLite concerns apply as on a computer: collect write-ahead log files with each database, open copies only, and check free pages for deleted records. Messaging apps often keep deleted messages in the database until it is compacted.
Convert the timestamps
Recent iOS versions store message times in sms.db as nanoseconds since 1 January 2001 UTC. Older versions and many other Apple databases use seconds since 2001. Android typically uses Unix time in milliseconds.
The message, sent from the driver’s phone at 16:18:40, reads “running late, traffic on Bayview”. That is a statement about a location, not a measurement of one, and it is consistent with either version of events. It does tell the examiner which minutes to focus on.
Parsers help, and have gaps
iLEAPP (iOS Logs, Events, And Plists Parser) and ALEAPP (the Android equivalent), open-source projects led by Alexis Brignoni, parse hundreds of artifacts from extractions and produce HTML reports and timelines. Commercial mobile suites do the same with broader support for third-party apps. Every tool supports a specific set of apps and versions, and apps change their database layouts often. A tool reporting “no messages” for an app may simply not understand that app’s current format.
The examiner therefore records tool coverage as part of the method: which tool and version parsed which artifact, which apps were present but unparsed, and how those were examined manually. On the driver’s phone, the delivery app, a niche product written for Lakeshore Courier, is not supported by any tool. Its container holds a SQLite database with a scans table.
sqlite> SELECT parcel_id, datetime(scanned_at/1000,'unixepoch'), lat, lon, accuracy_m FROM scans ...> WHERE scanned_at BETWEEN 1795277400000 AND 1795278900000; LKC-88412|2026-11-21 16:12:05|41.8842|-87.6533|6 LKC-88413|2026-11-21 16:31:47|41.8851|-87.6610|9
- The delivery app stores time in Unix milliseconds and records the phone’s location and its accuracy with each scan.
Neither scan is on Bayview Road, and there is no scan between 16:12 and 16:31, the window that matters. The scans bracket the collision time without covering it.
Backups as a second source
An iPhone backup made with Finder or iTunes stores files under hashed names, with a Manifest.db database mapping them to their original paths. Encrypted backups include more data, such as saved passwords and health data, and require the backup password. Backups found on the driver’s home computer or in a cloud account, obtained with proper authority, can contain records deleted from the phone since the backup was made.
On the exam, most app evidence is SQLite inside an app container, iOS counts from 2001 and Android usually in Unix milliseconds, and an unsupported app is examined manually rather than ignored. The next reading, Location precision and call records, compares the phone’s own location records with the carrier’s.
Inspect the three records, then use the evidence to answer the question.
1. Raw value
816970720000000000
2. Format
Nanoseconds since 2001-01-01 00:00:00 UTC
3. Seconds
816,970,720 seconds after 2001-01-01
Apply the reading
A commercial tool reports no messages from a newer messaging app on the phone. Does that mean the app held no messages?
Compare your reasoning
Not necessarily. The tool may not support that app or version. Locate the app’s container, identify its databases and check them directly, then record the gap in tool coverage.