https://github.com/hxreborn/remember-my-sort
An Xposed module that forces the native Android file picker to remember your sorting preferences.
https://github.com/hxreborn/remember-my-sort
android lsposed lsposed-module root scoped-storage storage-access-framework xposed xposed-module
Last synced: about 2 months ago
JSON representation
An Xposed module that forces the native Android file picker to remember your sorting preferences.
- Host: GitHub
- URL: https://github.com/hxreborn/remember-my-sort
- Owner: hxreborn
- License: gpl-3.0
- Created: 2025-12-11T19:31:54.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-04-25T19:36:18.000Z (about 2 months ago)
- Last Synced: 2026-04-25T21:22:52.362Z (about 2 months ago)
- Topics: android, lsposed, lsposed-module, root, scoped-storage, storage-access-framework, xposed, xposed-module
- Language: Kotlin
- Homepage: https://github.com/Xposed-Modules-Repo/eu.hxreborn.remembermysort
- Size: 1.62 MB
- Stars: 84
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-root - Remember My Sort - Forces the native Android file picker to remember your sorting preferences. `FOSS` `[LSP]` | [🌱](https://apt.izzysoft.de/packages/eu.hxreborn.remembermysort) (File Management / Themes and Visual Mods)
README
# Remember My Sort
An Xposed module that forces the Android file picker to remember your sorting preferences.



## Overview
Starting with Android 11's [scoped storage](https://developer.android.com/about/versions/11/privacy/storage#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](https://xdaforums.com/t/google-files-default-sort.4309799/) with no fix from Google.
## Usage
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:
> 1. Recent view can't have per-folder sort. Long-pressing there updates the global sort instead.
> 2. 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).
## Requirements
Requires an LSPosed Manager version with API 101 support and Android 11+. Works on Pixel and AOSP-based ROMs. OEM-modified ROMs are untested.
## Installation
1. Install APK and enable in LSPosed Manager
2. Add recommended DocumentsUI packages to scope
- Pixel: `com.google.android.documentsui`
- AOSP: `com.android.documentsui`
3. Force stop DocumentsUI
## Build
1. Install JDK 21, Android SDK
2. Configure SDK path in `local.properties`
```properties
sdk.dir=/path/to/android/sdk
```
3. Build APK
```bash
./gradlew assembleRelease
```
## License
This project is licensed under the GNU General Public License v3.0. See [LICENSE](LICENSE) for details.



