How to Fix ‘Enable Documents First’ on Android and Xiaomi
When trying to grant SD card access, pick a file, or run a recovery app on Xiaomi smartphones (and several other Android devices), you may run into a cryptic prompt: “Enable Documents first”. Until that hidden system component is turned back on, the app simply refuses to proceed.
I first hit this on a Xiaomi Redmi Note 3 Pro running MIUI 8 – the ROM disables Android’s built-in file picker (DocumentsUI) by default, and re-enabling it only takes half a minute.
How to Enable Documents in Xiaomi (MIUI) Settings
Here are the exact steps on MIUI (newer MIUI and HyperOS builds use almost the same path):
- Open Settings: tap the gear icon on your home screen.

- Open Installed / All Apps: scroll down to Installed apps (or Apps -> Manage apps). On newer Android builds, tap the three-dot menu at the top right and choose Show all apps / system processes.

- Locate Documents: scroll through the list (or search for
Documents/Files) – you will see it marked as Disabled.

- Enable it: open the app page and tap Enable at the bottom of the screen.

If “Documents” Is Missing or Greyed Out (Android 10–14)
On newer Android versions, Google renamed Documents to the system app Files (package com.android.documentsui or com.google.android.documentsui). If it got disabled during debloating and won’t toggle back on in Settings, re-enable it from a PC over ADB:
adb shell pm enable com.android.documentsui adb shell pm enable com.google.android.documentsui
On older MIUI builds, the system occasionally disables Documents again after a reboot – fine if you only needed one-time SD card permission, while turning off MIUI Optimization or enabling via ADB keeps it active permanently.
