/** * Start the bonding (pairing) process with the remote device using the Out Of Band mechanism. * * <p>This is an asynchronous call, it will return immediately. Register for {@link * #ACTION_BOND_STATE_CHANGED} intents to be notified when the bonding process completes, and its * result. * * <p>Android system services will handle the necessary user interactions to confirm and complete * the bonding process. * * <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 immediate error, true if bonding will begin * @hide */ public boolean createBondOutOfBand(byte[] hash, byte[] randomizer) { try { return sService.createBondOutOfBand(mAddress, hash, randomizer); } catch (RemoteException e) { Log.e(TAG, "", e); } return false; }