We used to get Device ID/IMEI using the following command:
adb shell dumpsys iphonesubinfo
But since last Android update (5.0 - Lollilop),
IMEI for sim 1
adb shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d' | tr -d '.' | awk '{print}' ORS=