VirusTotal Upgrade Documentation (3D Liveness))

  1. Upgrade the SDK to version 3.0.9

    implementation 'ai.advance.mobile-sdk.android:liveness-detection:3.0.9'
  2. After syncing gradle, you may encounter import errors. Change the import path of the error classes from ai.advance.liveness.lib to aai.liveness, as follows:

    import ai.advance.liveness.lib.GuardianLivenessDetectionSDK;
    ->
    import aai.liveness.GuardianLivenessDetectionSDK;
  3. The IMediaPlayer.isPlayEnable() method has been removed. Use mLivenessView.isSoundPlayEnable() as a replacement.

  4. If the LivenessActivity is located in ai.advance.liveness.activity, modify the package path for this class. Do not use ai.advance.liveness as the class path.

    If you are relying on the UI library, modify the dependency version as follows (UI library does not need to be updated to 3.0.9):
    implementation 'ai.advance.mobile-sdk.android:liveness-detection-ui:3.0.8'

  5. Modify the path of the LivenessView node in the XML to aai.liveness.LivenessView.

  6. Changes to the proguard rules:

    -keep class aai.liveness.Liveness3DMaskView

Click to download the Demo Project

VirusTotal Detection Link:https://www.virustotal.com/gui/file/b566802aa67d37f331c9fb822369216b9bf2f9600820b8a3527dcf73f01218b2