https://github.com/hxreborn/remember-my-sort
An LSPosed module that forces the native Android file picker to remember your sorting preferences.
https://github.com/hxreborn/remember-my-sort
android kotlin lsposed lsposed-module scoped-storage storage-access-framework xposed xposed-module
Last synced: 2 months ago
JSON representation
An LSPosed 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2025-12-19T13:50:53.000Z (3 months ago)
- Last Synced: 2025-12-21T09:52:59.391Z (3 months ago)
- Topics: android, kotlin, lsposed, lsposed-module, scoped-storage, storage-access-framework, xposed, xposed-module
- Language: Kotlin
- Homepage: https://github.com/Xposed-Modules-Repo/eu.hxreborn.remembermysort
- Size: 1.3 MB
- Stars: 23
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
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 LSPosed 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.
## How it Works
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.
## Requirements
- LSPosed framework (API 100)
- Android 11+ (API 30+)
## Compatibility
Works on AOSP-based ROMs and Pixel devices. OEM-modified ROMs are untested.
## Installation
1. Install [LSPosed](https://github.com/JingMatrix/LSPosed) (JingMatrix fork recommended)
2. Download latest APK from [releases](../../releases) or [IzzyOnDroid](https://apt.izzysoft.de/packages/eu.hxreborn.remembermysort)
3. Install APK and enable module in LSPosed Manager
4. Add your DocumentsUI package to module scope:
- Google/Pixel: `com.google.android.documentsui`
- AOSP: `com.android.documentsui`
5. Force stop DocumentsUI
6. Open any file picker to trigger DocumentsUI
## Build
```bash
./gradlew assembleDebug
```
Requires JDK 21 and Gradle 8.13.
## License

This project is licensed under the GNU General Public License v3.0 – see the [LICENSE](LICENSE) file for details.

