dji-sdk / Mobile-SDK-Android

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

Perform encryption and decryption operations on an SD card inserted into an aircraft #1266

Open Vickyxdev opened 3 months ago

Vickyxdev commented 3 months ago

We're integrating DJI SDK into our application, which involves working with DJI Mobile SDK version 4.16. The goal is to perform encryption and decryption operations on an SD card inserted into an aircraft.

dji-lyt commented 3 months ago

Could you please clarify if you have any further questions regarding the SD card protection feature on MSDK V4, as it seems to be related to the issue with https://github.com/dji-sdk/Mobile-SDK-Android/issues/1263?

If you are considering implementing the SD card protection feature yourself, I think this may not be feasible as it could potentially impact the camera's ability to write files.

Vickyxdev commented 3 months ago

In Mavic 2 drone, there is a default Storage capacity 22.6 GB, can we lock or unlock this internal storage by programatically using DJI MSDK version 4?

dji-dev commented 3 months ago

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

Could you please confirm if you are referring to the Mavic 2 Pro or the Mavic 2 Zoom? They do not support this feature. The Mavic 2 Enterprise series, including Mavic 2 Enterprise, Mavic 2 Enterprise Dual, and Mavic 2 Enterprise Advanced, do support it.

°°°

Vickyxdev commented 3 months ago

Yes we have Mavic 2 Enterprise how to do that?

dji-dev commented 3 months ago

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

I hope you are doing well. Here is a rough guide on how to use this.

  1. Determine whether the current aircraft supports locking by using isAccessLockerSupported;
  2. For aircraft models that support locking, obtain the management class through getAccessLocker;
  3. Set up a status monitor through AccessLocker.setAccessLockerStateCallback. When the status is NOT_INITIALIZED, it means the aircraft is locked. When the status is LOCKED, the aircraft needs to be unlocked to use certain functions. When the status is UNLOCKED, it means the aircraft is already unlocked;
  4. Lock the aircraft using AccessLocker.setUpUserAccount. Before setting it up, you need to log in to your DJI account and provide your account username and the password you wish to use;
  5. Modify the locking information using AccessLocker.modifyUserAccount;
  6. Cancel the locking using AccessLocker.resetUserAccount.

    °°°