Resolve utdid conflicts
Conflict
If you use mPaaS alongside other Alibaba SDKs, you may encounter a utdid conflict.
Solution
Remove the mPaaS utdid library and use the utdid provided by another Alibaba SDK.
Procedure
Check the utdid SDK version used by mPaaS so you can select a matching or similar one.
'com.taobao.android:utdid4all:1.5.3.1@jar'Get the
group:artifactinformation for the utdid SDK used by mPaaS.'com.alipay.android.phone.thirdparty:utdid-build'Remove the mPaaS utdid SDK.
AAR integration
configurations { all*.exclude group:'com.alipay.android.phone.thirdparty', module: 'utdid-build' }Component-based (Portal & Bundle) integration
mpaascomponents { excludeDependencies = [ "com.alipay.android.phone.thirdparty:utdid-build" ] }
Add the API package.
For baselines 10.1.68.8 and earlier: If you use utdid-related APIs, download the utdid-build-1.1.5.3-api.jar.zip file and add it to your project using
compile/implementation.For baselines 10.1.68.9 and later: No action is required.
Privacy compliance
Older versions of utdid access the SD card. To disable this behavior, update your utdid version.
Procedure
Remove the mPaaS utdid library by following the conflict resolution steps described above.
Use the following utdid version, which does not access the SD card.
implementation "com.taobao.android:utdid4all:1.5.3.1@jar"(Optional) If you are a private cloud user and have integrated Mobile Analysis, you may need to add the following configuration under the
applicationnode in yourAndroidManifest.xmlfile.<meta-data android:name="use.utdid.1531" android:value="on" />NoteContact mPaaS support to confirm whether you need to add this configuration.
Impact of changes
Updating to the new utdid version affects the following components because it no longer accesses the SD card:
When an app using the new utdid version is reinstalled, its device identifier and Threat Perception device ID change.
When an app is upgraded from an older utdid version to the new one, the number of new users in the Mobile Analysis dashboard may increase on the first launch.