subzeroSteam/CamSwap-Fixed2 — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me an Android app and Xposed module called CamSwap for rooted phones using LSPosed. I want it to let me pick MP4 videos from the app, then make selected camera apps show that video instead of the real camera preview when they open the camera. It should work with both older Camera1 apps and newer Camera2 apps, and it should avoid the freezing issues that can happen when the target app starts cold.

The app should have a simple modern settings screen where I can import videos, choose the default video, choose which apps CamSwap affects, set optional MP3 audio replacement or sync audio with the video, and adjust rotation if the video is sideways. Add a notification control while it’s active so I can switch videos, rotate left or right, and turn random playback on.

Please support Android 8 and above, especially Android 11 and newer storage rules. Also include support for live streams like HLS, DASH, RTSP, RTMP, and RTP if possible. Keep the disclaimer that it’s only for testing, education, and security research.

Want more depth? Deep Reverse