Digital Forensic Tools

Phone encryption, locks and BFU or AFU

Short answer

Modern phones encrypt user data with keys linked to the screen lock. BFU means before first unlock after a restart. AFU means after the first unlock. AFU usually gives access to more data.

Encryption and the screen lock

Phone storage is encrypted. The keys are protected by the user's passcode and by hardware in the device. This means data is hard to read without the passcode, even if you copy the storage.

BFU and AFU

BFU (Before First Unlock) is the state after a restart when the user has not yet entered the passcode. AFU (After First Unlock) is the state after the user has unlocked the phone once since the restart. In AFU, many keys stay available in memory, even if the screen is locked again. In BFU, less data can be read. For this reason guidance tells examiners to keep a powered-on phone powered on and avoid a reboot.

  • Apple: some data classes stay available after first unlock.
  • Android: Credential Encrypted storage is available only after first unlock.
  • Both: a restart returns the phone to BFU.

Lock types and attempts

Locks can be passcodes, patterns or biometrics. Some phones limit wrong attempts or erase data after too many. Guidance says to record every attempt. Biometric unlock may time out and may need the passcode again. Procedures and laws differ by country and agency, so follow your lab's own procedure before trying to bypass a lock.

Common mistakes

  • Rebooting a phone that is in AFU.
  • Guessing passcodes without a plan and triggering a lock or wipe.
  • Believing a screen lock and the encryption are the same thing.
  • Not recording how many attempts were made.
  • Assuming biometrics will keep working for days.

Key terms

BFU
Before First Unlock, the state after a restart before the passcode is entered.
AFU
After First Unlock, the state after the passcode has been entered once since restart.
Passcode
The secret code used to unlock a phone.
Biometrics
Unlocking by fingerprint or face.

Questions you may be asked

What is the difference between BFU and AFU?

BFU is before the first unlock after a restart and gives little access. AFU is after the first unlock and usually keeps more data available.

Why should a powered-on phone not be restarted?

A restart returns it to BFU and some data may become unreachable.

Free tools to practise with

Learn more

Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.