I am trying to get the device properties from ADB commands. I can how ever get those values by running sample android application. How ever I wish to get using adb shell com
You should use adb shell getprop command and grep specific info about your current device, For additional information you can read documentation:
Android Debug Bridge documentation
I added some examples below:
adb shell getprop | grep language [persist.sys.language]: [en]
[ro.product.locale.language]: [en]
adb shell getprop | grep boot_completed [sys.boot_completed]: 1
adb shell getprop | grep model [ro.product.model]: [Nexus 4]
adb shell getprop | grep sdk [ro.build.version.sdk]: [22]
adb shell getprop | grep timezone [persist.sys.timezone]: [Asia/China]
adb shell getprop | grep serialno [ro.boot.serialno]: [1234567]