public static String androidBuildVersion(){
  StringBuffer buf=new StringBuffer();
  buf.append("Version\n *Release: " + Build.VERSION.RELEASE);
  buf.append("\n Incremental: " + Build.VERSION.INCREMENTAL);
  buf.append("\n Codename: " + Build.VERSION.CODENAME);
  buf.append("\n SDK: " + Build.VERSION.SDK_INT);
  buf.append("\n\n*Model: " + Build.MODEL);
  buf.append("\nManufacturer: " + Build.MANUFACTURER);
  buf.append("\nBoard: " + Build.BOARD);
  buf.append("\nBrand: " + Build.BRAND);
  buf.append("\nDevice: " + Build.DEVICE);
  buf.append("\nProduct: " + Build.PRODUCT);
  buf.append("\nHardware: " + Build.HARDWARE);
  buf.append("\nCPU ABI: " + Build.CPU_ABI);
  buf.append("\nCPU second ABI: " + Build.CPU_ABI2);
  buf.append("\n\n*Displayed ID: " + Build.DISPLAY);
  buf.append("\nHost: " + Build.HOST);
  buf.append("\nUser: " + Build.USER);
  buf.append("\nID: " + Build.ID);
  buf.append("\nType: " + Build.TYPE);
  buf.append("\nTags: " + Build.TAGS);
  buf.append("\n\nFingerprint: " + Build.FINGERPRINT);
  buf.append("\n\nItems with * are intended for display to the end user.");
  return buf.toString();
}

public static String androidBuildVersion ( ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( "Version\n *Release: " + Build . VERSION . RELEASE ) ; buf . append ( "\n Incremental: " + Build . VERSION . INCREMENTAL ) ; buf . append ( "\n Codename: " + Build . VERSION . CODENAME ) ; buf . append ( "\n SDK: " + Build . VERSION . SDK_INT ) ; buf . append ( "\n\n*Model: " + Build . MODEL ) ; buf . append ( "\nManufacturer: " + Build . MANUFACTURER ) ; buf . append ( "\nBoard: " + Build . BOARD ) ; buf . append ( "\nBrand: " + Build . BRAND ) ; buf . append ( "\nDevice: " + Build . DEVICE ) ; buf . append ( "\nProduct: " + Build . PRODUCT ) ; buf . append ( "\nHardware: " + Build . HARDWARE ) ; buf . append ( "\nCPU ABI: " + Build . CPU_ABI ) ; buf . append ( "\nCPU second ABI: " + Build . CPU_ABI2 ) ; buf . append ( "\n\n*Displayed ID: " + Build . DISPLAY ) ; buf . append ( "\nHost: " + Build . HOST ) ; buf . append ( "\nUser: " + Build . USER ) ; buf . append ( "\nID: " + Build . ID ) ; buf . append ( "\nType: " + Build . TYPE ) ; buf . append ( "\nTags: " + Build . TAGS ) ; buf . append ( "\n\nFingerprint: " + Build . FINGERPRINT ) ; buf . append ( "\n\nItems with * are intended for display to the end user." ) ; return buf . toString ( ) ; }
returns a string summarising the android build information .
