title: Android ADB commands to get the device properties
body: <p>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 command itself to make my life easier. Here is the way I will get through sample application but I want corresponding adb commands for </p>
  
  <ol>
  <li>device manufacturer </li>
  <li>device hardware</li>
  <li>device model</li>
  <li>Os version(integer value)</li>
  <li>Kernel version</li>
  </ol>
  
  <p><strong>* Please note my device is not rooted and I have no idea of rooting the device to get these values :-) *</strong></p>
  
  <pre><code>## Code snippet
  import android.os.Build;
  manufacturer = Build.MANUFACTURER;
  hardware = Build.HARDWARE;
  model = Build.MODEL;
  oSVersion = Build.VERSION.SDK_INT;
  kernelVersion = System.getProperty("os.version");
  </code></pre>
  
  <p>However I can able to get the os version. But then I want SDK version in integer. I want 18 in place of 4.2.2</p>
  
  <pre><code>C:\&gt;adb shell getprop ro.build.version.release
  4.2.2
  </code></pre>