An LSPosed 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.
Hooks into DocumentsUI sort logic. Manual sort changes are persisted to storage and restored on subsequent picker launches. Defaults to date descending on first run.
Works on AOSP-based ROMs and Pixel devices. OEM-modified ROMs are untested.
com.google.android.documentsui to module scope./gradlew assembleDebug
Requires JDK 21 and Gradle 8.13.
This project is licensed under the GNU General Public License v3.0 – see the LICENSE file for details.
eu.hxreborn.remembermysort