code: public static AddressType guessAddressType(String address) {
          // backward compatibility to support XX:XX:XX:XX:XX:XX addresses
          if (address.equals("XX:XX:XX:XX:XX:XX")) {
              return AddressType.COMPOSITE;
          }
  
          if (isOui(address)) {
              return AddressType.PUBLIC;
          }
  
          Integer msb = Integer.parseUnsignedInt(address.substring(0, 2), 16) >> 6;
          switch (msb) {
              case 0b11: return AddressType.STATIC;
              case 0b01: return AddressType.NON_RESOLVABLE;
              case 0b00: return AddressType.RESOLVABLE;
              default: return AddressType.PUBLIC;
          }
      }
docs: Guesses address type of the provided Bluetooth address. There is not any easy way to identify definitively
  address type by using Bluetooth address only, hence the following logic is used to the best make a guess.
  @param address device address
  @return guessed address type