code: def model(self):
          
          # If device is in bootloader mode, get mode name from fastboot.
          if self.is_bootloader:
              out = self.fastboot.getvar('product').strip()
              # 'out' is never empty because of the 'total time' message fastboot
              # writes to stderr.
              lines = out.decode('utf-8').split('\n', 1)
              if lines:
                  tokens = lines[0].split(' ')
                  if len(tokens) > 1:
                      return tokens[1].lower()
              return None
          model = self.adb.getprop('ro.build.product').lower()
          if model == 'sprout':
              return model
          return self.adb.getprop('ro.product.name').lower()
docs: The Android code name for the device.