DJI Mobile SDK

Also known as: MSDK

On this page 7

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.

CapabilityWhat the app can doTypical use
Flight controlTake off, land, return home, adjust limitsCustom control apps and automation
Virtual stickSend continuous velocity or attitude commandsCustom autonomy and tracking
Waypoint missionsUpload and execute predefined routesMapping, inspection and repeatable flights
Camera and gimbalChange settings, trigger capture, aimPhotogrammetry and cinematography
Live videoDecode and display the video streamMonitoring, computer vision, streaming
TelemetryRead position, attitude, battery and statusLogging, dashboards, fleet tools
Main capability groups of DJI Mobile SDK

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.

AspectMSDK v4MSDK v5
Mobile platformsAndroid and iOSPrimarily Android
Aircraft focusOlder Mavic, Phantom, Inspire and Matrice modelsNewer enterprise and selected consumer models
Programming modelObject hierarchy with callbacksKey-value interface and managers
Waypoint formatMission objects defined in codeRoute files based on the WPML standard
StatusLegacy, maintained for existing appsCurrent line for new development
Comparison of DJI Mobile SDK generations

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.

ToolWhere code runsBest suited for
DJI Mobile SDKPhone, tablet or smart controllerGround-side apps for DJI aircraft
DJI Payload SDKComputer or payload mounted on the aircraftCustom sensors and onboard processing
DJI Cloud APIServers connected to DJI docks and controllersRemote operations and fleet integration
MAVSDKGround station or companion computerPX4 and other MAVLink autopilots
MAVROSRobot Operating System on a companion computerResearch robotics with ArduPilot or PX4
DJI Mobile SDK versus related development tools

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.

  1. Register the app in the DJI developer portal and obtain an App Key tied to the package name.
  2. Integrate the SDK through the official package manager dependency and required permissions.
  3. Initialize and register the SDK at app start, handling errors such as missing network access.
  4. Detect the connected product and subscribe to telemetry and component state changes.
  5. Implement features such as waypoint upload, camera control or virtual stick commands.
  6. 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.