--- title: "Custom device ID with App SDK for Android" slug: "dpo-custom-device-id-with-app-sdk-for-android" updated: 2026-10-27T20:13:12Z published: 2026-10-27T20:13:12Z canonical: "docs.onespan.com/dpo-custom-device-id-with-app-sdk-for-android" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Custom device ID with App SDK for Android Use the setCustomDeviceID() function to create a custom device ID. For an example, refer to the Tutorial App code. To test this functionality, set the following value to true in the TutorialAppPlus class. ```plaintext const val useCustomDeviceID = true ``` Then the following code sets the device ID: ```plaintext DeviceIDUtil.setCustomDeviceID("RP_CUSTOM_DEVICE_ID") ```