CameraInterceptor is a powerful Xposed/LSPosed module designed to intercept camera API requests on Android devices. It allows users to replace the live camera feed with a static image selected from their gallery, enabling image injection for testing, privacy, or development purposes.
- Universal Camera Hook: Intercepts multiple camera APIs including:
android.hardware.Camera(Legacy)android.hardware.camera2(Modern)androidx.camera(CameraX)
- Image Injection: Replace the real camera stream with any image from your device storage.
- Custom Image Picker: Built-in UI to easily select the image you want to inject.
- Seamless Integration: Works system-wide across apps that use the camera.
- Configurable: Toggle the module on/off via settings.
- Android Device: Running Android 8.0 (Oreo) or higher (
minSdk 26). - Root Access: Required for Xposed framework.
- Xposed Framework: LSPosed (recommended) or EdXposed installed and active.
- Download the APK: Download the latest debug APK from the
releasessection or build from source. - Install the APK: Install the
app-debug.apkon your rooted Android device. - Activate Module:
- Open your Xposed Manager (e.g., LSPosed).
- Enable the Camera Interceptor module.
- Select the target applications you want to intercept (e.g., System Framework, specific camera apps).
- Reboot your device (or restart the target apps/SystemUI) to apply changes.
- Open the Camera Interceptor app from your app drawer.
- Grant the necessary permissions (Storage, Camera).
- Tap Select Injection Image to choose an image from your gallery.
- Ensure the "Enable Module" switch is turned ON.
- Open any app that uses the camera. The camera feed should now display your selected image instead of the live view.
To build this project locally:
- Clone the repository:
git clone https://github.com/theGoodB0rg/camera_hook.git
- Open the project in Android Studio.
- Sync Gradle files.
- Build the project using
Build > Build Bundle(s) / APK(s) > Build APK(s).
This software is provided for educational and testing purposes only. The developers are not responsible for any misuse of this tool. Please use responsibly and respect the privacy and terms of service of third-party applications.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source.