DocumentsUI

The DocumentsUI module controls access to specific files for components that handle document permissions (such as attaching a file to an email). Making storage access and permissions into an updatable module increases privacy and security for end users while allowing Android partners to customize the features and theming of the app through runtime resource overlays (RROs). The module format ensures that all devices ship with the same DocumentsUI experience, enabling developers to know what users see for associated APIs.

Changes in Android 10

In Android 10, the DocumentsUI module implements the GET_CONTENT action that enables apps to request access to other data from the user. As an updatable module, DocumentsUI:

  • Interacts with the framework only through stable @SystemApi APIs (no @hide API usage).
  • Exposes a mechanism for enabling Android partners to customize features and theming.
  • Protects the MANAGE_DOCUMENTS permission using a signature permission.

Format and dependencies

The DocumentsUI module is delivered as an APK file. It relies on the MANAGE_DOCUMENTS permission protected by the signature permission, and an additional permission class ensures that only one app on the device has the MANAGE_DOCUMENTS permission.