Any way to get android device id?

Hi there,

I’m writing a set of functional tests for an application which runs against an API and uses the device ID obtained by the following piece of code to identify the device to the API:

deviceId = Settings.Secure.getString(
getContentResolver(),
Settings.Secure.ANDROID_ID
)

Is there a way to get this ID from Appium?

Thanks
Alex