github.com/fpv-wtf/margerine ↗
It's not butter, but it's root.
Open this visualization on its own page →
Contributors
3
Lines of Code
53
From
2022-03-07
To
2022-03-22
About fpv-wtf/margerine
Margerine is a root exploit and ADB enabler for DJI FPV hardware including the Air Unit, Caddx Vista, and both versions of FPV Goggles. The project provides a JavaScript-based tool that runs on Windows and macOS to unlock these devices, disable SELinux, and enable ADB access for deeper system interaction. The exploit works by communicating with the device over USB and leverages a challenge-signing procedure that happens on an external server.
Once unlocked, users gain the ability to customize the UI theme, run custom applications like Doom ports, reverse engineer firmware using tools like IDA and Frida, and develop custom software using the Android NDK for ARM architecture. The tool supports various advanced features including TCP/UDP networking between goggles and air-side components, wireless ADB debugging, and direct framebuffer access through a modified DirectFB library. Notable limitations include Linux support being unreliable and the requirement to downgrade FPV Goggles V2 to a specific firmware version for the exploit to work.
The project emphasizes that users can potentially brick their devices if they modify critical system files, as no low-level recovery methods are currently available. After exploitation, users must run a lock command before the DJI Assistant software will allow firmware flashing again. The exploit targets the FPV enthusiast and reverse engineering community, with active community support provided through Discord.