Unable to find the UDID of connected device using java, please find the code , I am able to pull the UDID using the command '"system_profiler SPUSBDataType | sed -n -E -e '/(iPhone|iPad|iPod)/" + ",/Serial/s/ *Serial Number: *(.+)/\1/p'"', but not able to pull the UDID using "idevice_id -l"
but while appium is running it internally uses idevice_id -l to list the device UDID