DJI Mobile SDK (MSDK) is the software development kit that lets developers build their own mobile applications to control DJI drones, stream camera video, read telemetry and run automated missions from a phone, tablet or smart remote controller. In drone software & autonomy it is the main route by which third-party apps reach DJI aircraft, since the flight controllers themselves are closed and do not accept open protocols such as MAVLink.
Developers use the MSDK to create custom flight apps for mapping, inspection, cinematography, agriculture and research. Well-known mission planning tools such as Litchi, Dronelink and UgCS rely on it to talk to DJI aircraft, which makes the SDK a key piece of infrastructure across commercial drones.
How DJI Mobile SDK connects an app to the aircraft
The MSDK works as a library embedded in the mobile app. The app runs on a device connected to the remote controller, either by USB cable or as an app installed on a smart controller with a built-in screen, and the controller relays commands and data over the DJI radio link to the aircraft.
Before any function works, the app must register with DJI using an App Key created in a DJI developer account and bound to the app’s package name. Registration requires an internet connection at least once, and it allows DJI to manage access and enforce restrictions such as geofencing and flight zone rules, which apply to SDK apps just as they apply to official apps.
Once registered, the app accesses aircraft components through an abstraction layer: the flight controller, camera, gimbal, battery, remote controller and payloads appear as objects or keyed values. The table below shows the main capability groups.
| Capability | What the app can do | Typical use |
|---|---|---|
| Flight control | Take off, land, return home, adjust limits | Custom control apps and automation |
| Virtual stick | Send continuous velocity or attitude commands | Custom autonomy and tracking |
| Waypoint missions | Upload and execute predefined routes | Mapping, inspection and repeatable flights |
| Camera and gimbal | Change settings, trigger capture, aim | Photogrammetry and cinematography |
| Live video | Decode and display the video stream | Monitoring, computer vision, streaming |
| Telemetry | Read position, attitude, battery and status | Logging, dashboards, fleet tools |
MSDK versions and supported platforms
DJI has maintained two major generations of the Mobile SDK, and the generation determines which aircraft an app can control. Choosing the wrong version is a frequent cause of failed projects, because newer aircraft are not supported by the older SDK and some older aircraft are not supported by the newer one.
| Aspect | MSDK v4 | MSDK v5 |
|---|---|---|
| Mobile platforms | Android and iOS | Primarily Android |
| Aircraft focus | Older Mavic, Phantom, Inspire and Matrice models | Newer enterprise and selected consumer models |
| Programming model | Object hierarchy with callbacks | Key-value interface and managers |
| Waypoint format | Mission objects defined in code | Route files based on the WPML standard |
| Status | Legacy, maintained for existing apps | Current line for new development |
Support for specific consumer models has changed over time and differs by version, so developers should verify the official compatibility list before committing to a project. Several popular consumer drones have shipped without MSDK support at launch, and some never received it.
DJI Mobile SDK compared with other drone development options
The MSDK is one of several DJI development kits, and it also competes with open autopilot ecosystems. Each option targets a different layer of the system, from the phone screen to code running directly on the aircraft.
| Tool | Where code runs | Best suited for |
|---|---|---|
| DJI Mobile SDK | Phone, tablet or smart controller | Ground-side apps for DJI aircraft |
| DJI Payload SDK | Computer or payload mounted on the aircraft | Custom sensors and onboard processing |
| DJI Cloud API | Servers connected to DJI docks and controllers | Remote operations and fleet integration |
| MAVSDK | Ground station or companion computer | PX4 and other MAVLink autopilots |
| MAVROS | Robot Operating System on a companion computer | Research robotics with ArduPilot or PX4 |
The key difference is openness. With ArduPilot or PX4, developers can modify the autopilot itself and test in SITL simulation. With DJI, the flight controller is a black box, and the MSDK exposes only the functions DJI chooses, but it gives access to reliable, mass-produced aircraft with excellent cameras.
Building an app with DJI Mobile SDK
A typical MSDK project follows a standard development workflow: create the developer account and App Key, add the SDK dependency to the Android or iOS project, implement registration, then connect to the product and listen for component state.
- Register the app in the DJI developer portal and obtain an App Key tied to the package name.
- Integrate the SDK through the official package manager dependency and required permissions.
- Initialize and register the SDK at app start, handling errors such as missing network access.
- Detect the connected product and subscribe to telemetry and component state changes.
- Implement features such as waypoint upload, camera control or virtual stick commands.
- Test with the simulator provided through DJI tools before any real flight.
Virtual stick control deserves special care. It lets an app send velocity commands many times per second, which enables custom autonomy, but a crash in the app or a dropped link can leave the aircraft without new commands, so the app must handle timeouts and failsafe behavior explicitly and let the pilot take over instantly.
Limitations and common pitfalls
The MSDK gives powerful access, but developers repeatedly encounter the same structural limits. Knowing them in advance saves time and prevents unrealistic product promises.
- Uneven aircraft support: a new DJI drone may lack MSDK support for months or permanently.
- Closed firmware: flight behavior, obstacle avoidance and limits cannot be modified beyond what the SDK exposes.
- Firmware dependency: aircraft firmware updates can change or break SDK behavior.
- Platform constraints: newer SDK lines focus on Android, which complicates iOS-only products.
- Data and compliance questions: organizations with strict security policies often review DJI software before adopting it.
Because of these limits, many commercial teams treat the MSDK as one integration among several, pairing it with open autopilots for projects that need deep control and using DJI aircraft where camera quality and reliability matter most.
A non-technical view
DJI Mobile SDK is like a set of building blocks and instructions that DJI gives to app makers. With it, a company can write its own phone app that flies a DJI drone, takes photos and follows a planned route, instead of using only DJI’s own app.
The drone itself stays the same. The SDK simply opens an approved doorway so that other software can talk to it safely, within the limits DJI allows.
A concrete example
A small engineering firm inspects wind turbine blades for regional operators. Its developers build an Android app with MSDK v5 that runs on the smart controller of an enterprise DJI drone. The app loads a route file for each turbine type and positions the aircraft at fixed distances from each blade.
During each flight, the app triggers the camera every two meters of travel, tags each image with the blade number and logs telemetry. If wind gusts exceed a set threshold, the app pauses the mission and hands control back to the pilot.
The result is a repeatable inspection that takes about 25 minutes per turbine instead of an hour of manual flying, and images that line up from one year to the next, which makes damage comparison far easier.