code: function getAvailableCPUs(adbPath: string, device: string): Array<string> {
    try {
      const baseArgs = ['-s', device, 'shell', 'getprop'];
  
      let cpus = execFileSync(
        adbPath,
        baseArgs.concat(['ro.product.cpu.abilist']),
      ).toString();
  
      // pre-Lollipop
      if (!cpus || cpus.trim().length === 0) {
        cpus = execFileSync(
          adbPath,
          baseArgs.concat(['ro.product.cpu.abi']),
        ).toString();
      }
  
      return (cpus || '').trim().split(',');
    } catch (e) {
      return [];
    }
  }
docs: Gets available CPUs of devices from ADB