Skip to content

Repository files navigation

Request Logger - Android Xposed Module

Request Logger is a powerful Xposed module designed to intercept and log HTTP requests from Android applications. It is compatible with LSPosed (Root) and LSPatch / NPatch (Non-Root).

🚀 Features

  • OkHttp Interception: Hooks into okhttp3 to capture Method, URL, and Headers.
  • HttpURLConnection Support: Captures basic URL info for standard Java HTTP clients.
  • Real-time Notifications: Displays captured requests as long-duration Toast notifications.
  • Persistent History: View a complete history of all captured requests within the Request Logger app.
  • Easy IPC: Uses a ContentProvider to securely transfer logs from hooked apps to the main logger database.
  • Management UI: Simple interface to browse, scroll, and clear logs.

🛠 Installation

Prerequisites

  • Android Studio Jellyfish or newer.
  • A device with LSPosed installed (for Root) or LSPatch/NPatch (for Non-Root).

Build Instructions

  1. Clone the repository.
  2. Open in Android Studio.
  3. Build the project:
    ./gradlew :app:assembleDebug
  4. The APK will be generated at app/build/outputs/apk/debug/app-debug.apk.

📖 Usage

Automated Releases (CI/CD)

This repository is configured with GitHub Actions. Every time you push a tag starting with v (e.g., v1.0), an APK will be automatically built and attached to a new GitHub Release.

Method 1: LSPosed (Rooted)

  1. Install the app-debug.apk on your device.
  2. Open the LSPosed Manager.
  3. Enable the Request Logger module.
  4. Select the Scope (apps you want to monitor).
  5. Force stop or restart the target apps.

Method 2: LSPatch / NPatch (Non-Root)

  1. Install the app-debug.apk on your device.
  2. Open LSPatch or NPatch.
  3. Create a new patch for your target application.
  4. Select Request Logger as the module to inject.
  5. Install and run the patched application.

📊 Viewing Logs

  • Inside the App: Open the "Request Logger" app from your launcher to see the persistent history.
  • Logcat: Monitor real-time logs via ADB:
    adb logcat -s RequestLogger

🏗 Technical Details

  • Hooking: Uses XposedHelpers to hook okhttp3.RealCall and java.net.URL.
  • Database: Uses Room Persistence Library to store log entries.
  • IPC: Uses a ContentProvider (com.hazbu.requestlogger.provider) to allow hooked processes to insert data into the main app's database.

⚠️ Disclaimer

This tool is intended for educational and debugging purposes only. Do not use it to capture sensitive data without permission. The developers are not responsible for any misuse of this software.

📄 License

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

About

Xposed module to intercept and log HTTP requests.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages