(self)
Returns the build version sdk of the system as a number (e.g. 19).

    For version code numbers see:
    http://developer.android.com/reference/android/os/Build.VERSION_CODES.html

    For named constants see devil.android.sdk.version_codes

    Raises:
      CommandFailedError if the build version sdk is not a number.
Returns the build version sdk of the system as a number (e.g. 19).
Returns the build version sdk of the system as a number ( e . g . 19 ) .
def build_version_sdk(self):
    """Returns the build version sdk of the system as a number (e.g. 19).

    For version code numbers see:
    http://developer.android.com/reference/android/os/Build.VERSION_CODES.html

    For named constants see devil.android.sdk.version_codes

    Raises:
      CommandFailedError if the build version sdk is not a number.
    """
    value = self.GetProp('ro.build.version.sdk', cache=True)
    try:
      return int(value)
    except ValueError:
      raise device_errors.CommandFailedError(
          'Invalid build version sdk: %r' % value)
def build_version_sdk ( self ) : value = self . GetProp ( 'ro.build.version.sdk' , cache = True ) try : return int ( value ) except ValueError : raise device_errors . CommandFailedError ( 'Invalid build version sdk: %r' % value )