When you use mPaaS together with other Alibaba SDKs, utdid dependency conflicts may occur. You can resolve these conflicts by removing the mPaaS utdid library and using the utdid provided by other Alibaba SDKs.
Conflict description
If you use mPaaS along with other Alibaba SDKs, utdid dependency conflicts may occur. Use the following solution to resolve these conflicts.
Solution
Remove the mPaaS utdid library and use the utdid provided by other Alibaba SDKs.
Procedure
-
Confirm the version of the utdid SDK used by mPaaS so that you can select the same or a similar version.
'com.taobao.android:utdid4all:1.5.1.3@jar' -
Get the
group:artifactinformation for the utdid SDK used by mPaaS.'com.alipay.android.phone.thirdparty:utdid-build' -
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" ] }
-
-
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/implementationto the project for compilation. -
Baseline 10.1.68.9 and later versions
No action is required.
-
Privacy Compliance
The old version of utdid reads and writes SD cards. To completely disable this behavior, update the utdid version by following these steps.
Procedure
-
Following the conflict resolution above, remove the mPaaS utdid library.
-
Use the following version of utdid, which does not read or write SD cards.
implementation "com.taobao.android:utdid4all:1.5.3.1@jar" -
(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" />NoteContact mPaaS support to confirm whether this configuration is required.
Impact of Change
After you switch to the new version of utdid, the following changes may occur because the SD card is no longer accessed:
-
After you uninstall and reinstall an 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 integrate the new version, the number of new users in the mobile analysis dashboard may temporarily increase after the first launch due to the utdid change.