code: public static int findAbiScore(String[] supportedAbis, String abi) {
      for (int i = 0; i < supportedAbis.length; ++i) {
        if (supportedAbis[i] != null && abi.equals(supportedAbis[i])) {
          return i;
        }
      }
  
      return -1;
    }
docs: Determine how preferred a given ABI is on this system.
  
  @param supportedAbis ABIs on this system
  @param abi ABI of a shared library we might want to unpack
  @return -1 if not supported or an integer, smaller being more preferred