コード例 #1
0
 /**
  * Set the Out Of Band data for a remote device to be used later in the pairing mechanism. Users
  * can obtain this data through other trusted channels
  *
  * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
  *
  * @param hash Simple Secure pairing hash
  * @param randomizer The random key obtained using OOB
  * @return false on error; true otherwise
  * @hide
  */
 public boolean setDeviceOutOfBandData(byte[] hash, byte[] randomizer) {
   try {
     return sService.setDeviceOutOfBandData(mAddress, hash, randomizer);
   } catch (RemoteException e) {
     Log.e(TAG, "", e);
   }
   return false;
 }