title: getSerial() method on Marshmallow
body: <p>I'm new with Java and android and i need to basically retrieve hardware serial number from my device.
  I've tried the following:</p>
  
  <pre><code>import android.content.*; 
  import android.os.Build;
  public static String recup_android()
  {
  String androidid;
  String SerialNumber;
  androidid=android.os.Build.MODEL;
  SerialNumber=android.os.Build.getserial;
  return SerialNumber;
  }
  </code></pre>
  
  <p>I'm facing the following error:
  java:40: error: cannot find symbol</p>
  
  <pre><code>    SerialNumber=android.os.Build.getserial;
                                   ^
  </code></pre>
  
  <p>symbol:   variable getserial
    location: class Build
  1 error
  :compileDebugJavaWithJavac FAILED</p>
  
  <p>What am i missing there?
  If I return androidid (MODEL) it then works OK.
  Maybe something to have with the class declaration??</p>
  
  <p>Thanks in advance for your precious help
  Elie</p>