If you often leave the phone around or if you love privacy and security, turn on the lockdown mode to make sure no one can access your data.
Directly from the latest version of the Android P developers preview you can access this feature right now and on any device.
From version Lockdown Mode from Android P 1.0:
The lockdown mode from the latest Android P developers preview.
All versions