How I patched an Android app to download encrypted HLS streams as MP4

I patched an Android app — decompiled it, injected code, recompiled — to pull its encrypted HLS video streams out as plain .mp4 files. This is how that worked. Note: This article is intended solely for educational and reading purposes. I will not disclose the app’s name or any information that could identify or impact the original application. I still remember, back in 2015 or 16, i used Sandroproxy Sandroproxy android app to intercept traffic of android apps to basically download resources/video/stream links. It was so cool! ...

April 2, 2026 · 7 min · Ben Shaji