Android artifacts · Lesson 5 of 7
Accounts, Wi-Fi, Bluetooth and device settings
10 min read
System configuration files rarely contain a message or a photo, but they answer questions that content cannot: which accounts were signed in, and so which cloud data can be requested; which networks the phone knew and which it joined; which car, headset or computer it was paired with; whether USB debugging was on and the clock was set automatically; and when the device was last reset. This lesson covers the account databases, the Wi-Fi and Bluetooth configuration stores, the settings files and a few small system records, with their paths on current versions and what each field does and does not show.
Accounts
Android's AccountManager keeps the accounts that apps register on the device: Google accounts, the manufacturer's account, email accounts and accounts added by apps such as messaging and social media apps. Since Android 7.0 the data is split by storage class:
- /data/system_de/n/accounts_de.db (DE) holds the account list in its accounts table (_id, name, type, previous_name and last_password_entry_time_millis_epoch), the grants table of apps allowed to use each account, a visibility table and a debug_table.
- /data/system_ce/n/accounts_ce.db (CE) holds the accounts table with the account name, type and password field, the authtokens table and an extras table of key and value pairs that each account's app stores.
Before Android 7.0 both were in a single /data/system/users/n/accounts.db.
The type identifies the app that owns the account, for example com.google for a Google account. The extras table often holds identifiers that help with legal requests; for Google accounts ALEAPP reports values such as a GoogleUserId. The password field normally holds no plain password for modern accounts, but the authtokens table can hold live tokens. Treat them as credentials: they are sensitive, and using one to reach an online account is a separate act that needs its own legal basis (lesson 2.7).
Interpret the timestamps carefully. AOSP sets last_password_entry_time_millis_epoch when the account is added and whenever the platform records a successful authentication, so it does not show that a person typed a password. The debug_table is a ring buffer of at most 64 entries per user recording account actions, such as adding or removing an account, with the caller's UID and a time stored as text without a time zone. Once full, new entries overwrite old ones, so a missing entry does not show that an action never happened.
Sync settings for each account are in /data/system/sync/accounts.xml, which lists the content authorities (contacts, calendar and so on) and whether syncing each one was enabled. An enabled authority shows a setting, not that data was synced.
Wi-Fi
Saved Wi-Fi networks are in WifiConfigStore.xml. Its location changed when Wi-Fi became an updatable module in Android 11:
| Store | Android 10 | Android 11 and later |
|---|---|---|
| Shared store (saved networks) | /data/misc/wifi/WifiConfigStore.xml | /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml |
| User store (networks not shared with other users, Passpoint and other per-user data) | /data/misc_ce/n/wifi/WifiConfigStore.xml | /data/misc_ce/n/apexdata/com.android.wifi/WifiConfigStore.xml |
The hotspot configuration and app-suggested networks are kept in separate files in the same folders. Each saved network is a Network element with a WifiConfiguration section. The fields examiners use most are:
- ConfigKey and SSID, the network name with its security type;
- PreSharedKey, the network password. On many builds it is stored as readable text in quotes; some manufacturers encode it, and AOSP can store it in an encrypted section, so an empty field does not prove the network had no password;
- HiddenSSID, for networks that do not broadcast their name;
- CreatorUid, CreatorName, LastUpdateUid and LastUpdateName, the app that added or last changed the network. Convert the UID with packages.list (lesson 3.1); networks added through Settings are usually created by the system UID 1000;
- HasEverConnected, which AOSP sets to true after a successful connection and resets when the credentials change;
- RandomizedMacAddress with MacRandomizationSetting (0 none, 1 persistent, 2 non-persistent, 3 automatic). The stored address is the one a router would log under persistent randomization; with non-persistent or automatic randomization the phone may have used other addresses, so treat it as a lead, not a certainty;
- DefaultGwMacAddress, the gateway's MAC address if known, which can help match a network to a specific router.
WifiConfigStore.xml is a configuration file, not a connection log. Standard AOSP fields give few times; some Samsung builds add creation and update times of their own. To place the phone on a network at a given time, combine it with other sources such as connection events in logs and lesson 6.1's location artifacts. Saved network names and passwords are personal data of third parties too, so redact what your report does not need.
Bluetooth
Paired and seen Bluetooth devices are recorded in /data/misc/bluedroid/bt_config.conf, a text file of sections in an INI-like format. The path is unchanged on Android 13 and later, where Bluetooth became an updatable module. The Adapter section describes the phone's own Bluetooth controller, including its address and name. Sections named after a remote device's MAC address hold keys such as Name, DevClass and DevType, the services it offers and, for bonded (paired) devices, key material such as LinkKey for classic Bluetooth or LE key entries for Bluetooth Low Energy.
The Timestamp key is in Unix seconds. AOSP rewrites it when it saves the device's properties, for example each time the device is found in a discovery scan, so it is not reliably the first pairing or the last connection; what vendor Bluetooth stacks write there is not established. A section without a link key shows that the phone saw the device, not that it paired with it.
Worked example: seconds, not milliseconds
An illustrative section [aa:bb:cc:11:22:33] has Name=Car Audio and Timestamp=1779306130. As Unix seconds this is 2026-05-20 19:42:10 UTC. If a tool treats it as milliseconds, the result is 1970-01-21 14:15:06 UTC. As with MMS dates in lesson 3.3, a 10-digit value is seconds and a 13-digit value is milliseconds for any date between 2001 and 2286.
Other Bluetooth traces include companion device associations and connection events in system logs. This course covers no Samsung-specific Bluetooth record.
Device settings
Since Android 6.0, system settings are stored as XML files in /data/system/users/n/, replacing the older settings.db, and since Android 12 they are in ABX format (lesson 3.1):
- settings_global.xml, device-wide settings: device_name, airplane_mode_on, wifi_on, bluetooth_on, mobile_data, data_roaming, auto_time and auto_time_zone, adb_enabled and development_settings_enabled;
- settings_secure.xml, per-user secure settings: bluetooth_name and bluetooth_address, enabled_accessibility_services, default_input_method and notification_history_enabled (lesson 3.4);
- settings_system.xml, per-user preferences such as screen timeout and ringtones.
Each setting element has a name, a value and the package that set it. Settings have no timestamps; a file's modification time shows only when something in it was last written. Some settings change the meaning of other evidence. If auto_time was 0, the user could set the clock by hand, which affects every timestamp on the device. If adb_enabled was 1, a computer may have been authorized to send commands. The authorized keys are in /data/misc/adb/adb_keys, and adb_temp_keys.xml in the same folder records each key's last connection in Unix milliseconds, often with a user@hostname comment that names the computer. By default the platform removes a key that has not connected for 7 days, so the absence of a key does not show that no computer was ever authorized. An unexpected accessibility service with broad permissions can point to monitoring software.
Small records with large value
- /data/property/persistent_properties, a protobuf file of properties kept across reboots, including persist.sys.timezone, the configured time zone, and the history of boot reasons with Unix-seconds times.
- /data/misc/bootstat/factory_reset and last_boot_time_utc, whose value is the file's own modification time: the time of the first boot after a factory reset and of the last completed boot, by the device clock. They are only usable if the extraction preserved file times.
- /data/system/locksettings.db, a key and value table per user. On recent versions the key sp-handle-ts holds, in Unix milliseconds, when the current lock-screen protector was recorded: at first setup, even with no screen lock, and at each credential change. Legacy devices also keep lockscreen.password_type; on current devices the credential type is held with the protector data, in a .pwd file under /data/system_de/n/spblob/ that AOSP writes only when a screen lock is set. The credential itself is in neither place.
- /data/user_de/0/com.android.providers.telephony/databases/telephony.db, whose siminfo table lists the SIMs and eSIM profiles the phone has used, with ICCID, display name, carrier and, where stored, the number (lesson 1.4).
Reading configuration evidence
Configuration artifacts share a few properties that shape how you report them:
- They describe the state at extraction. A saved network, a signed-in account or a setting value shows what was configured when the phone was acquired. Earlier states survive only in other places, such as backups, logs or older copies in a WAL.
- They are restored and synced. Wi-Fi networks, accounts and many settings are copied to a new phone by a Google backup and by manufacturer transfer tools. A network saved on this phone may have been added on the user's previous phone and restored; check for transfer and restore records before attributing it to this device.
- The writer matters. The creator and package fields tell you whether a value was set by the user through Settings, by an app or by a management tool.
- Times come from the device clock. Check auto_time and the time zone, remember that both show only the state at extraction, and test the times you rely on against an independent source.
Applying this to the Corvane case
On Day 2, Lena and Victor meet at a café with guest Wi-Fi. In the illustrative extraction of Victor's Galaxy A phone, WifiConfigStore.xml under /data/misc/apexdata/com.android.wifi/ contains a network with the café's guest SSID, HasEverConnected set to true and a randomized MAC address. That shows the phone saved and at some point joined the café network; it does not show when. Unlike usage records, a saved network is not pruned with time, so the entry is still there ten weeks later. If the café's router logs are obtained, the randomized address for that network is the first value to look for, bearing in mind the randomization setting. accounts_ce.db lists Victor's Google account and a WhatsApp account, which tells the parties which cloud records may be requested. settings_global.xml shows auto_time set to 1. That is the setting at extraction, about ten weeks after Day 1, not on Day 1 to Day 3, so it does not prove the clock was correct then. The examiner records it as consistent with automatic time and tests the timestamps against independent sources, such as the SMS service center times (lesson 3.3), carrier records and the other party's device.
Exam focus: Know the paths of accounts_ce.db and accounts_de.db and what each holds, the Android 10 and Android 11 and later locations of WifiConfigStore.xml, and the meaning of HasEverConnected, CreatorUid and MAC randomization fields. Know that bt_config.conf Timestamp values are Unix seconds and not proof of pairing time, which settings files hold which keys, and why auto_time and adb_enabled matter.
Practice questions
Check your understanding. These questions do not count towards the exam.
Sign in to save your progress and continue where you left off. It is free. Sign in