All Products
Search
Document Center

Mobile Platform as a Service:Resolve utdid dependency conflict

Last Updated:Jan 21, 2026

Conflict description

If you are using mPaaS along with the Alibaba SDKs, you may experience utdid conflicts. In such a case, please refer to the following solutions.

Solution

Remove the mPaaS utdid library and use the utdid provided by other Alibaba SDKs.

Procedure

  1. Confirm the version of the utdid SDK used by mPaaS so that you can select the same or a similarly reviewed version.

    'com.taobao.android:utdid4all:1.5.1.3@jar'
  2. Get the group:artifact information for the utdid SDK used by mPaaS.

    'com.alipay.android.phone.thirdparty:utdid-build'
  3. Remove mPaaS utdid SDK.

    • AAR method

      configurations {
      all*.exclude group:'com.alipay.android.phone.thirdparty', module: 'utdid-build'
      }
    • Portal & Bundle method

      mpaascomponents {
      excludeDependencies = [
         "com.alipay.android.phone.thirdparty:utdid-build"
      ]
      }
  4. Add the API package.

    • Baselines 10.1.68.8 and lower

      If you are using the utdid-related API, download the JAR package utdid-build-1.1.5.3-api.jar.zip, and import compile/implementation to the project for compilation.

    • Baseline 10.1.68.9 and later versions

      No action is required.

Privacy Compliance

The old version of utdid can read and write SD cards. If you need to completely disable such behavior of utdid, please refer to the following steps to update the utdid version.

Procedure

  1. Following the conflict resolution above, remove the mPaaS utdid library.

  2. Use the following version of utdid, which removes the SD card read and write behavior.

    implementation "com.taobao.android:utdid4all:1.5.3.1@jar"
  3. (Optional) If you are a private cloud user and have integrated with MAS, you may need to add the following configuration under the application node in AndroidManifest.xml.

    <meta-data
        android:name="use.utdid.1531"
        android:value="on" />
    Note

    Please contact mPaaS support to confirm whether this configuration needs to be added.

Impact of Change

After using the new version of utdid, the following components may be affected because the SD card is no longer read and written:

  • After deleting and reinstalling the application that integrates the new version of utdid, the device ID and threat awareness device ID will change.

  • When an application that integrates the old version of utdid is upgraded to an application that integrates the new version of utdid, the number of new users in the mobile analysis dashboard may increase after the first launch due to the change in utdid.