Skip to content

Xposed-Modules-Repo/eu.hxreborn.remembermysort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Remember My Sort

An Xposed module that forces the Android file picker to remember your sorting preferences.

Android CI Kotlin Android

Get it on F-Droid Get it on IzzyOnDroid Get it on GitHub

Overview

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.

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 LSPosed 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

    sdk.dir=/path/to/android/sdk
  3. Build APK

    ./gradlew assembleRelease

License

GPLv3

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