code: function parseDevicesResult(result: string): Array<string> {
    if (!result) {
      return [];
    }
  
    const devices = [];
    const lines = result.trim().split(/\r?\n/);
  
    for (let i = 0; i < lines.length; i++) {
      const words = lines[i].split(/[ ,\t]+/).filter(w => w !== '');
  
      if (words[1] === 'device') {
        devices.push(words[0]);
      }
    }
    return devices;
  }
docs: Parses the output of the 'adb devices' command