An Xposed module that forces the Android file picker to remember your sorting preferences.
Starting with Android 11's scoped storage, all apps that need file access must use the system file picker. This picker fails to persist sort preferences across directories. Sort order is kept in the root view, but navigating into any subdirectory resets it to filename A-Z. Users must manually change the sort every time they browse into a folder, regardless of how many times they've set it before.
Users have reported the issue since 2021 with no fix from Google.
From the file picker's sort menu:
- Normal tap: Updates the global sort for all folders.
- Long-press: Saves a custom sort for the current folder only. Clear it by changing sort without long-press.
Note
Per-folder sorting quirks:
- Recent view can't have per-folder sort. Long-pressing there updates the global sort instead.
- Sort settings are stored per content provider. The same folder reached through different entry points may be treated separately (e.g., Downloads via quick access vs. via root storage).
Requires LSPosed and Android 11+. Works on Pixel and AOSP-based ROMs. OEM-modified ROMs are untested.
- Install APK and enable in LSPosed Manager
- Add recommended DocumentsUI packages to scope
- Pixel:
com.google.android.documentsui - AOSP:
com.android.documentsui
- Pixel:
- Force stop DocumentsUI
-
Install JDK 21, Android SDK
-
Configure SDK path in
local.propertiessdk.dir=/path/to/android/sdk -
Build APK
./gradlew assembleRelease
This project is licensed under the GNU General Public License v3.0 – see the LICENSE file for details.


