After a power failure, a phone boots up again. The screen lights up and asks for the passcode. Before the owner enters it, certain apps can perform tasks the system allows at that stage. Messages and the keys needed to open their history may still be inaccessible.

On a shared device, the same boundary protects people who previously used it. A communications app needs to recognise this situation. A file that is inaccessible for now may still be intact.

Restarting the device and reopening the data

On Android, Direct Boot distinguishes device-encrypted storage, which can be available before the first unlock, from credential-encrypted storage, which becomes available after the user authenticates. The documentation recommends placing only the data the app needs at that stage in device-encrypted storage.

Apple describes file protection classes with different behaviour. The class available after first authentication may keep data accessible in subsequent use until the next restart. The complete protection class closes access when the device locks, under the documented conditions. The app must honour the protection chosen for each set of data.

A key can belong to the device

An Android Keystore key is used in cryptographic operations without requiring key material to enter the app process. In supported configurations, it can also be bound to secure hardware. Copying an encrypted database to a second phone can leave the files intact and unreadable.

Recovering an account, reconnecting with a person and recovering earlier messages are separate operations. If the conversation depended on a key that is gone and no secure recovery procedure was set up, a new identity may let the user write again while the old conversation remains inaccessible.

Identity on borrowed devices

For some people, a borrowed device is the first chance to contact someone again. GSMA and UNHCR document barriers to mobile services for displaced populations, including difficulties meeting identification requirements. In its work to restore family links, the International Red Cross and Red Crescent Movement publishes rules for processing the personal data it needs.

On a shared device, showing message previews on the lock screen or keeping lists of people being sought after a session ends can expose other people. The most important design decisions may be to collect less data, keep sessions separate and show who can recover each piece of data.

The states we separated in a software test

In ScopeLink research study 040, the prototype separately represents temporary unavailability of storage or a key, signs of corruption and invalidation of a key. The first case waits for the device to be unlocked. The others preserve the state for investigation. Setting up a new registration requires an explicit choice when there is no existing identity, key or storage.

We reproduced 11 tests in Python 3.12.14, including a sweep of 2048 synthetic combinations. In that run, the logic did not select a destructive repair. The model’s guest mode is limited to public content. The test checks the prototype’s decisions with states represented in software. Direct Boot integration, conversation recovery and operation on shared devices require testing on the actual system.

A later validation should restart a device with a fictional profile, confirm that its history is preserved before and after unlocking, and then simulate the loss of a device.

Sources and references

  1. Android Developers · Direct Boot
  2. Android Developers · Android Keystore
  3. Apple Platform Security · Data protection classes
  4. CICV · Data protection in restoring family links
  5. GSMA e ACNUR · Displaced and Disconnected

Sources reviewed on .