dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 579 forks source link

SD Card Password Protected #1263

Open Vickyxdev opened 5 months ago

Vickyxdev commented 5 months ago

In my drone a memory card is password protected, can i decrypt with password programmatically in dji sdk .

dji-dev commented 5 months ago

Agent comment from yating.liao in Zendesk ticket #99937:

SDK is unable to decrypt the password. If you are not aware of the password, the only solution would be to format the SD card:https://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/Key_FlightController_FlightControllerKey.html?search=keyaccesslockeralldevicestatus&i=0&#key_flightcontroller_accesslockerv1alldevicestates_inline

°°°

Vickyxdev commented 5 months ago

If i know the password then can i access memory card programatically?

dji-lyt commented 5 months ago

You can unlock the SD card using a password. Here is the interface. image

Conjuror1279 commented 4 months ago

Is this feature available for DJI mini 3 in MSDK?

dji-lyt commented 4 months ago

@Conjuror1279 Greetings! The information I currently have indicates that the DJI MINI 3 does not support this feature, as it is a function only available in enterprise drones. If you would like to further confirm, you can try reaching out to support@dji.com to inquire about the support for the security password feature on the DJI MINI 3.

Conjuror1279 commented 4 months ago

Hi @dji-lyt Thanks for the response! Could you please suggest a way for me to request this feature in DJI mini 3? We are developing our system over dji drones for our business, and we would require these consumer-level drones in good quantities.

dji-dev commented 4 months ago

Agent comment from yating.liao in Zendesk ticket #99937:

You can edit your request and send it via email to support@dji.com.

Is the SD card password protection feature an important feature for your system? Functions such as taking photos, recording, etc., can all be implemented on the DJI MINI 3 using the SDK.

°°°

Conjuror1279 commented 4 months ago

Hello @dji-dev, We consider this feature crucial for our system as it helps prevent any potential misuse of our resources, which is vital for our scaling process. We kindly request your assistance in implementing this feature on the consumer-grade drones, specifically the Mini 3 and the Mini 3 Pro.

Thank you for your support!

dji-dev commented 4 months ago

Agent comment from yating.liao in Zendesk ticket #99937:

I understand your requirements. However, the SDK only adapts the functions that the aircraft has, which means that SD card password protection is not a function developed by the SDK. Therefore, I suggest that you send an email to support@dji.com, as mentioned in my previous response.

°°°

Vickyxdev commented 4 months ago

Hi dev,

You have provided me a code KeyAccessLockerAllDeviceStatus but its not working in mavic 2 and below. how to do that?

dji-dev commented 4 months ago

Agent comment from yating.liao in Zendesk ticket #99937:

The interface KeyAccessLockerAllDeviceStatus belongs to MSDK V5, which does not support the Mavic 2 series. On MSDK V4, you can use getAccessLocker to obtain the management class. Please note that this feature is not supported by all aircraft models; it is supported by the Mavic 2 Enterprise version and only affects internal storage.

Thank you.

°°°

Vickyxdev commented 4 months ago

ok so. can we lock or unlock the SD card using a password in dji msdk 4.16?

dji-dev commented 3 months ago

Agent comment from yating.liao in Zendesk ticket #99937:

For supported models, you can use getAccessLocker to obtain the corresponding management class for unlocking and setting passwords. Here is the API documentation:https://developer.dji.com/api-reference/android-api/Components/FlightController/DJIFlightController.html?search=getaccesslocker&i=0&#djiflightcontroller_accesslocker_inline

°°°