Comments

9 comments

  • 781316853

    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err: javax.crypto.IllegalBlockSizeException: last block incomplete in decryption
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.android.org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(BaseBlockCipher.java:1221)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at javax.crypto.Cipher.doFinal(Cipher.java:2055)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.midware.encryption.util.AES256Encryption.decrypt(Unknown Source:31)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.fdd(Unknown Source:7)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.gfd(Unknown Source:8)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.gfd(Unknown Source:2)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.fdd(Unknown Source:2)
    2022-07-04 14:08:43.403 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeLogicAdapter.fdd(Unknown Source:4)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeAdapterManager.nhf(Unknown Source:9)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at nhf.hgf.dgh.dgh.fdd.fdd(Unknown Source:11)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at nhf.hgf.dgh.gfd.fdd(Unknown Source:28)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.initParams(Unknown Source:24)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.initSDKManager(Unknown Source:12)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.registerApp(Unknown Source:37)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.registerAppForLDM(Unknown Source:44)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.redovation.uav.dji.api.DjiApi.registerAppForOffline(DjiApi.java:2181)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.uav.dji.quantum.ui.activity.MainFlyHandActivity.initDJI(MainFlyHandActivity.java:494)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.uav.dji.quantum.ui.activity.MainFlyHandActivity.initView(MainFlyHandActivity.java:242)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.redovation.uav.module_base.base.BaseActivity.onCreate(BaseActivity.java:39)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.uav.dji.quantum.ui.activity.MainFlyHandActivity.onCreate(MainFlyHandActivity.java:1144)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.Activity.performCreate(Activity.java:8214)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.Activity.performCreate(Activity.java:8202)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4033)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4247)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2613)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:110)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.os.Looper.loop(Looper.java:219)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:8668)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err: javax.crypto.IllegalBlockSizeException: last block incomplete in decryption
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.android.org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(BaseBlockCipher.java:1221)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at javax.crypto.Cipher.doFinal(Cipher.java:2055)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.midware.encryption.util.AES256Encryption.decrypt(Unknown Source:31)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.fdd(Unknown Source:7)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.gfd(Unknown Source:8)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.gfd(Unknown Source:8)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeCacheDeviceLogic.fdd(Unknown Source:2)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeLogicAdapter.fdd(Unknown Source:4)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.upgrade.internal.csdk.upgradeadapter.UpgradeAdapterManager.nhf(Unknown Source:9)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at nhf.hgf.dgh.dgh.fdd.fdd(Unknown Source:11)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at nhf.hgf.dgh.gfd.fdd(Unknown Source:28)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.initParams(Unknown Source:24)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.initSDKManager(Unknown Source:12)
    2022-07-04 14:08:43.404 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.registerApp(Unknown Source:37)
    2022-07-04 14:08:43.405 11339-11339/com.uav.dji.quantum.offline W/System.err:     at dji.sdk.sdkmanager.DJISDKManager.registerAppForLDM(Unknown Source:44)
    2022-07-04 14:08:43.405 11339-11339/com.uav.dji.quantum.offline W/System.err:     at com.redovation.uav.dji.api.DjiApi.registerAppForOffline(DjiApi.java:2181)

    0
    Comment actions Permalink
  • DJI Developer Support
    这个看不出什么,能否把前后文说一下呢?你是使用LDM还是LDM PLUS,调用哪个接口出问题的,你的操作步骤是什么?
    0
    Comment actions Permalink
  • 781316853

    调用这个函数出错

    DJISDKManager.getInstance().registerAppForLDM(context, callback);

    额 LDM和LDM PLUS的区别是什么

    0
    Comment actions Permalink
  • DJI Developer Support
    LDM模式的介绍:https://sdk-forum.dji.net/hc/zh-cn/articles/4404611910425 普通LDM,首次注册仍然需要网络,注册后打开LDM以后下次登陆就不需要网络了。 LDM PLUS,是申请到一个离线文件,放到app下第一次注册也不需要网络。 registerAppForLDM这个接口别用了,你直接按照我给你的链接里描述的方式用。
    0
    Comment actions Permalink
  • 781316853

    我是LDM PLUS,registerAppForLDM不调用这个,有了离线文件可以直接调用

    registerApp

    0
    Comment actions Permalink
  • 781316853

    0
    Comment actions Permalink
  • DJI Developer Support
    你有LDM PLUS就不需要调用任何LDM相关的接口,直接调用registerApp就行了。LDM的类是为普通LDM服务的。
    0
    Comment actions Permalink
  • 781316853

    在这反馈一个问题

    DJISDKManager.LDM_PLUS_LICENSE_ROOT_PATH

    这个地址不是特别精准

    比如Android10下的返回String为

    /storage/emulated/0/Android/data/app包名/files//DJI/

    改为/storage/emulated/0/Android/data/app包名/files/DJI 会好些

    0
    Comment actions Permalink
  • DJI Developer Support
    DJISDKManager.LDM_PLUS_LICENSE_ROOT_PATH 是代码生成的,不知道为啥会有两个//,我们会检查一下。
    0
    Comment actions Permalink

Please sign in to leave a comment.