MarketingNotificationBlocker

简体中文 | English

A lightweight, high-performance Android notification filtering module built on the Xposed / LSPosed framework. By hooking deep into the system layer, it accurately intercepts and blocks annoying marketing ads and spam push notifications, restoring a clean and tidy notification shade experience.

✨ Core Features

  • System-Level Hooking (Notification Hook): Intervenes in the notification generation workflow at the system level, directly blocking spam pushes to prevent useless notifications from waking up the screen or making sounds.
  • Flexible Regex Matching (Regex Configuration): Supports highly customizable regular expression rules to precisely match specific keywords (such as ads and marketing promos) while avoiding accidental blocks of important messages.
  • Channel Management: Deeply takes over the Android system's Notification Channels, allowing you to log and directly freeze specific push channels of rogue applications.
  • Lightweight & Efficient: Features a highly optimized code structure with minimal runtime overhead, complete with built-in environment validation and safety mechanisms.

🛠️ Requirements

To run this module properly, your device must meet the following requirements:

  • Unlocked Bootloader with Root access.
  • Successfully installed and activated LSPosed framework.
  • Supported Android Versions: Android 15, Android 16 (Other Android versions are untested but may work; verified on HyperOS 3.0 and crDroid 11.2).

📦 Installation & Setup

  1. Go to the Releases page and download the latest .apk package.
  2. Install the APK file normally on your device.
  3. Open the LSPosed Manager, locate MarketingNotificationBlocker in the "Modules" list, and enable it.
  4. Select the target scope as needed (typically, "Android System Framework" and the specific rogue applications you want to clean up must be selected).
  5. Reboot your device (or restart System UI) to apply the module injection.
  6. Open the app interface to start configuring your custom regular expressions and filtering rules.

⚠️ Disclaimer

This module is intended solely for educational and research purposes regarding low-level Android Hooking techniques. Please configure your interception rules carefully to avoid missing critical notifications (e.g., instant messages, verification codes). The developer assumes no responsibility for any data or information loss caused by the use of this module.

🤝 Contributing & Feedback

If you have optimized regex rules to share or encounter any bugs during daily use, feel free to submit an Issue or Pull Request! Let's make this project better together.

📄 License

This project is licensed under the MIT License.

Releases

1.1.1

Stable

5/25/2026, 11:29:03 AM

在调试页面(连续点击五次软件名或图标)中:
增加“禁用输出LSP模块日志”
增加“日志输出等级选择”

Assets

1

1.1.0

Stable

5/24/2026, 12:28:04 PM

🐛 Bug Fixes
修复一加 / ColorOS 设备无法正常工作的问题
修复 system_server 因目录权限不足(EACCES)无法写入 detected_channels.json 和 hook.log 的问题

✨ New Features
新增调试模式(关于页面 → 连续点击应用图标或应用名 5 次进入)
新增输出日志开关
新增Root 权限检测

📝 Notes
hook.log 默认不再写入,可自行进入调试模式手动开启

Assets

1