Skip to content

theGoodB0rg/sms-hook

Repository files navigation

SMS Hook Module

An LSPosed/Xposed module that intercepts outgoing SMS messages and prepends customizable text.

Features

  • Universal Interception: Hooks all outgoing SMS across system and third-party apps
  • Smart Appending: Prepends customizable text (default: "Hello")
  • Multipart Support: Handles long messages correctly (modifies first part only)
  • Idempotency: Prevents double-prefixing if message is processed twice
  • Modern Android Support: Works on Android 8.0 through Android 14 (API 26-34)
  • Secure: Fixed file permissions for Android 7+ (no SecurityException)
  • Configurable: Toggle on/off and custom text via Settings UI

Requirements

  • Android 8.0+ (API 26)
  • Rooted device with LSPosed Framework (Zygisk or Riru)
  • LSPosed version 1.8.0+ recommended

Installation

  1. Build the APK or download from Releases
  2. Install the APK on your device
  3. Open LSPosed Manager
  4. Enable the module "SMS Hook"
  5. Select scope: System Framework, Phone, and any SMS apps
  6. Reboot device
  7. Open SMS Hook app to configure prefix text

Usage

  1. Open the SMS Hook app
  2. Toggle "Enable SMS Hook" on
  3. Set your desired prefix text (default: "Hello")
  4. Send an SMS - it will be prepended with your prefix!

Building from Source

git clone https://github.com/theGoodB0rg/sms-hook.git
cd sms-hook
./gradlew assembleDebug

The APK will be at app/build/outputs/apk/debug/app-debug.apk

Project Structure

app/
├── src/main/
│   ├── java/com/smshook/xposed/
│   │   ├── SmsHook.java          # Core hooking logic
│   │   └── SettingsActivity.java # Configuration UI
│   ├── res/
│   │   ├── xml/preferences.xml   # Preference definitions
│   │   └── values/               # Strings, colors, themes
│   └── assets/xposed_init        # Xposed entry point
└── build.gradle

License

MIT License - See LICENSE for details

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages