Skip to content

hxreborn/cleanshare

Repository files navigation

CleanShare

CleanShare is an Xposed module that removes Direct Share's suggested contact/conversation shortcuts from Android's Share Sheet.

Android CI Kotlin Android

Direct Share targets row removed

About

Direct Share suggests contacts you emailed once five years ago, colleagues from jobs you no longer have, and people you'd rather not be reminded of. The suggestions are rarely useful. I've yet to hit a case where they helped. Might as well cut the row and skip the hassle.

CleanShare tricks the Share Sheet into thinking it's running on a low-RAM device. Android then skips the Direct Share pipeline to save resources, so the row never loads.

On devices with Android System Intelligence, it also blocks backend shortcut queries to prevent share target profiling.

Requirements

  • Android 11 (API 30) or higher
  • LSPosed (JingMatrix fork recommended)
  • Pixel or AOSP-based ROM (OEM skins untested)

Installation

  1. Download the APK:

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

  2. Install and enable the module in LSPosed.

  3. Configure the scope:

    Android 13+

    • Intent Resolver (com.android.intentresolver)
    • Android System Intelligence (com.google.android.as)
    • Ignore System Framework (android) even if marked "Recommended"

    Android 11-12

    • System Framework (android)
    • Android System Intelligence (com.google.android.as)
  4. Reboot your device.

Don't worry about selecting all scopes. The module checks your Android version and only applies what's needed.

Build

git clone --recurse-submodules https://github.com/hxreborn/cleanshare.git
cd cleanshare
./gradlew buildLibxposed
./gradlew assembleRelease

Requires JDK 21 and Android SDK. Configure local.properties:

sdk.dir=/path/to/android/sdk

# Optional signing
RELEASE_STORE_FILE=<path/to/keystore.jks>
RELEASE_STORE_PASSWORD=<store_password>
RELEASE_KEY_ALIAS=<key_alias>
RELEASE_KEY_PASSWORD=<key_password>

License

GPLv3

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

About

Xposed module that removes Direct Share's suggested contact/conversation shortcuts from Android's Share Sheet.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages