App query custom data from MC Agent
Access to device identifiers has been increasingly restricted over time with pretty harsh restrictions hitting in A10 and above. The EMM Device Owner and system apps have the ability to query this information but other custom apps do not have this access. The official recommendation from Google is to use a self-generated GUID in the application rather than relying on properties like the IMEI.
Some manufacturers like Zebra are providing programatic access to the underlying device identifiers via a custom content provider, specific to Zebra devices. If you are using Zebra devices this could be your path forward. I do not otherwise believe there are any options to query this information from the SOTI agent with a custom app. Using a file based handoff of this information is likely not viable either as there are scoped storage constraints in Android 11 and so your app would likely struggle to access a file containing an IMEI value even if the SOTI agent were to be able to save it somewhere.
Source: Darryn Campbell - Zebra
%IMEI% is just an example.
There are several CustomData we have set in the console, that we are able to show in the lockdown screen of the device (meaning the device has received it).
What we would like to do is to share such information, that we may see in the lockdown screen, to an app in the device.