All Products
Search
Document Center

Mobile Platform as a Service:Device ID FAQs

Last Updated:Mar 13, 2023

This topic summarizes common Android-related problems and provides solutions to the problems.

Under what circumstances does the UTDID change or remain unchanged?

Answer:

  • After the mobile phone or app is restarted

    Status

    Without SD card access

    With SD card access

    UTDID status

    Unchanged

    Unchanged

  • After the app is deleted and reinstalled

    Status

    Without SD card access

    With SD card access

    UTDID status

    Changed

    Unchanged

  • After you wipe the data and cache from your device SD card, and then reinstall the app

    Status

    Without SD card access

    With SD card access

    UTDID status

    Changed

    Changed

Why is the UTDID changed after I terminate a process?

Cause analysis:

  1. A UTDID is an ID automatically generated for an app. Every time when the app is started, the UTDID outside the app is compared with the UTDID inside the app. The UTDID that is generated at an earlier time is used.

  2. When the app is installed for the first time, the app cannot obtain the outside UTDID because the app is not authorized to access external storage. In addition, the app does not have an inside UTDID and therefore generates a UTDID. For more information, see Obtain the device ID.

  3. After you authorize the app to access external storage and restart the app, the UTDID outside the app overwrites the UTDID inside the app after comparison. Therefore, the UTDID is changed.

Solution:

  1. Make sure that the version of utdid4all is not earlier than V1.1.5.3. A version earlier than V1.1.5.3 is incompatible with advanced versions of Android.

  2. This problem occurs only when you install the app for the first time. After you authorize the app to access external storage, the UTDID is not changed when you restart the app.

Note

For Android 6.0 and later, you cannot authorize an app to access external storage only by declaration. Some devices require that you confirm access on the authorization page that appears.

How do I ensure that the ID of a device remains unchanged in Android Q and later?

The UTDID is likely to change as device authorization policies become more strict. If you need a fixed device ID in specific scenarios, use another way to specify the device ID.