Skip to content

Android and iOS File Systems

Android and iOS use file systems to organize stored files and metadata, then apply operating-system rules that determine how app data is separated,…

By Reviewed by Sushil Kumar

Last updated:

Android and iOS use file systems to organize stored files and metadata, then apply operating-system rules that determine how app data is separated, protected and exposed. Android devices can use the fourth extended file system (ext4) or Flash-Friendly File System (F2FS) for user data, depending on implementation. Current iPhones use Apple File System (APFS). The format helps explain the storage layout. The acquisition scope, data protection and app behavior determine which records a reviewer can actually read.

The same app can produce a similar interface on both platforms while writing different internal files. Conversely, two exports may show the same folder label for records that originated in different containers. The exam question is therefore specific to the artifact. Establish its original location or documented export domain, its application context and the operation that made it available.

Key terms

File system
The structures and rules a system uses to organize files, directories and metadata on a storage volume.
Volume
A logical storage unit that the operating system uses to organize or present a file system.
App container
A restricted storage area allocated to an application. An operating system may also support separately defined shared app groups or shared collections.
Manifest
An inventory that describes files or categories in a package. It may include paths, original domains, sizes, digests and statuses, depending on the export.
Shared storage
A storage area made available across apps under the platform’s access rules. A copy here can have a different provenance from a matching file in an app container.
Backup domain
A logical category that provides context for a relative path in an iPhone backup manifest. Compare both the domain and path before equating entries from separate collections.
More key terms (1)
Write-ahead log (WAL)
A companion file that can contain SQLite database changes. A coherent database view may need committed changes in the WAL as well as the main file.

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

  • Distinguish file systems, volumes, app containers and app databases.
  • Explain how shared and app-specific Android storage and iOS containers affect interpretation.
  • Read a file manifest without confusing original paths with tool-generated paths.
  • State what file metadata and associated records support in an evidence report.

Which Storage Layer Does the Record Describe?

The file system is the underlying organization. A container describes access and application context. A database, such as one using SQLite, is a file or collection of related files that records app-defined data. Finding a database in an app container narrows the question to that app and its data layout. It still leaves the meaning of a record’s fields and timestamps to be verified.

The container identifies application context, while the field definition explains what a database value records.

Scroll horizontally if needed to see the full table.

LayerExampleWhat it helps establish
File systemAPFS or ext4How the device’s storage represents files and metadata
Volume or partition contextUser-data storage or operating-system storageWhich broad storage region a finding concerns
Container or shared collectionAn app-specific directory or shared photo collectionWhich app, user profile or shared context may be associated with a file
Application formatSQLite database or media fileHow the content can be interpreted
Export representationA path listed in a manifest or rebuilt by a review toolHow the acquired package presents or indexes the material

An examiner reviewing only a backup may receive a domain and relative filename while the original path is absent. Preserve the domain and filename as the package reports them. A path reconstructed by software can help navigate the copy. Document how it was constructed if the report needs to describe its relationship to the original device.

Android User Data and Shared Collections

The Android Open Source Project (AOSP) provides file-based encryption implementations for ext4 and F2FS. Android’s device range means that the actual file system and layout should be verified for the model, build and volume being examined. A documented volume assessment gives stronger support for that claim than the name of the operating system by itself. Android Open Source Project file-based encryption documentation

An app may keep settings, databases or caches within an app-specific area. User-visible documents and media can also appear in shared collections. The term external storage in Android can refer to a storage arrangement presented by the operating system even on a device whose physical storage is internal. Determine whether the artifact came from shared storage, an individual app’s area or a separately handled card before describing it as internal or removable evidence.

For an enterprise device, user and profile scope can matter. A tool’s export of a primary user’s shared media can omit an app’s work-profile records. A file found in a work-profile container can carry a stronger context association if provenance is documented. It still takes independent evidence to establish who operated the profile or app.

iOS Volumes and App Containers

Apple describes APFS as built with encryption in mind and divides iOS storage into operating-system and user-data volumes, at a minimum. The app container and applicable data protection remain separate aspects of how a file is stored and accessed.

A report about a particular file should identify its container or export domain where available. A path component used to organize an iOS app container may vary between installations, so a displayed folder name gives limited support for a cross-device match. Apple Platform Security on the role of APFS

A document might appear in an app-specific area, a shared app-group location or an account export that presents an entirely different naming structure. Preserve the source label that lets another examiner find the same artifact again. When comparing two packages, match by a documented app identifier and domain, then consider the contents and metadata. A common filename is a weak match when multiple apps generate files with generic names such as 'data.db' or 'index.json'.

Read File Metadata in Context

File metadata can identify the object and describe timestamps, size or other attributes. Some values come from the original file system. Others are assigned during copying, packaging or extraction. Before using any timestamp in a timeline, record its source, event definition and time basis. A date in a ZIP archive can have a different provenance from a file timestamp retained in a manifest, and both differ from an app-defined timestamp inside a record.

A media file can carry an embedded capture time, while the file system reports a modification time and a package records its own creation time. If all three values differ, each may be correct for the event it measures. Identify the question before deciding which field matters. If the relevant option is a device-local time and the offset is unknown, retain the raw value and qualify any ordering or elapsed-time claim.

A media file can carry three valid dates for three different events. Check the original field and its time basis before putting it on a timeline.

Preserve Relationships Between an App’s Files

An export can include an SQLite main database and companion files. In SQLite write-ahead logging (WAL) mode, the write-ahead log can hold committed changes before they are copied back into the main database.

Its presence by itself does not identify which changes are present, whether a particular frame is committed, or how the parser used it. Check file association and the documented parsing behavior before explaining why a report differs from a database view. See Android and iOS Forensics: SQLite and App Data.

Keep the source files and the working view distinguishable. Two views of the same database may disagree because one includes a valid related log and the other uses the main file alone. If the package does not document which files accompanied the database, report the scope before suggesting a reason for the difference. For the relationship between files and extracted record categories, see Logical and File-System Acquisition.

Identify the Owner Before Comparing File Names

On Android, an app-specific file can belong to a particular app installation and user or profile. Android also provides storage for media and other files that apps can share. A photograph in shared media and a copy in app-specific storage can share the same bytes while representing different events. Check the source profile, the storage category and any app record that describes import or creation. Android app-specific storage documentation

For an iPhone backup, keep the domain and relative path as they appear in the backup manifest. A viewer may reconstruct another path for convenience. Confirm whether the source is an app container, a shared container or a backup domain before comparing its documents against a device file-system listing. Matching file names identify candidates. Matching bytes support file identity for the compared copies. Neither establishes which copy appeared first. DFRWS comparison of mobile backups with file-system references

Keep backup domains and device paths traceable to their sources. Matching bytes support the identity of the compared copies while leaving their order open.

Distinguish File Metadata From App Activity

A file timestamp describes an event recorded for the file in its source system. A database row can describe an app operation, such as when the app marked an item as complete. A synchronization or export can copy a file after that operation. Before using the file metadata to time the operation, identify the exact field and verify how that source populated it. Carry both observations when each answers a separate question.

Suppose an authorized exercise contains a saved form and an app history row that shares its verified item identifier. The export package dates the file copy at 12:40 UTC, while the app history records completion at 12:18 UTC. Report the two events separately. If the date on the file is supplied by the export tool, retain that detail. A reader can then reproduce the distinction between the appearance of the reviewed copy and the recorded completion of the form.

In the exercise, the verified form identifier links the two records. The app history dates completion and the export dates the reviewed copy.

Separate a File System From the App Context

A file system organizes files and their metadata on a storage volume. A platform then uses profiles, containers and shared collections to control how apps and users access those files. The Android Open Source Project documents file-based encryption support for the fourth extended file system (ext4) and Flash-Friendly File System (F2FS). Apple File System (APFS) separates the system and data volumes on iOS. Verify the layout relevant to the device and acquired material.

On Android, a shared media collection and a work-profile app directory can represent different contexts even when both belong to one handset. On iOS, an acquired file may be associated with an app container or presented in a backup domain. Keep the originating app and user or profile context where documented. When a review tool builds a navigable path, record which part came from the manifest and which part the tool generated.

File metadata dates activity at the layer and under the semantics of the field. A database file modification time can reflect a change to the file or surrounding storage workflow. A row inside the database may contain an app-defined event time. A file extracted from a backup can also carry a timestamp assigned by the export process. Preserve field names, origin and time basis before comparing those values.

An app database can have associated SQLite files. A valid write-ahead log (WAL) can hold committed changes that have yet to reach the main database file through a checkpoint. Confirm that the log belongs to the same collected database and document how the verified view used it. Its presence alone leaves the contents and transaction status open. Preserve the received file set and document the working representation used for review.

In a fictional case, an Android work-profile package and an iPhone backup each contain a file named records.db. The verified Android view records a ready-status transition for R24 at 16:02 UTC. The iPhone file has a different schema and export domain and holds only a reference to R24. Report the Android transition and the backup reference with their source contexts. The matching filename and backup date give no equivalent iPhone event time.

Both files are named records.db. The Android record dates the ready-status transition at 16:02 Coordinated Universal Time (UTC). The iPhone backup supports a reference to R24 and leaves the time of an equivalent iPhone event unresolved.

Casework Examples

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
Two packages contain records.db under different app or backup domains. What should be compared before calling them copies?

Test yourself on Mobile Forensics with free, timed mocks.

Practice Mobile Forensics questions

Found this useful? Pass it along.