diff options
author | Andre Eisenbach <eisenbach@google.com> | 2014-07-25 15:16:11 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2014-07-28 15:48:59 +0000 |
commit | d65e8f4b6b37b274fcd5b7701a73eaef7c4ba8b4 (patch) | |
tree | b0a2a05613ab28eaf76853e2051b27126e711fef /core/java/android/bluetooth/BluetoothGatt.java | |
parent | e2efefe19d7a9f7e2a5e1f6bd4dadc4a53565538 (diff) | |
download | frameworks_base-d65e8f4b6b37b274fcd5b7701a73eaef7c4ba8b4.zip frameworks_base-d65e8f4b6b37b274fcd5b7701a73eaef7c4ba8b4.tar.gz frameworks_base-d65e8f4b6b37b274fcd5b7701a73eaef7c4ba8b4.tar.bz2 |
LE: Do not invoke callback if retrying read/write operation
When a descriptor read/write operation fails with insufficient
authentication/encryption, it will automatically be tried again with
elevated security requirements. The first (failed) attempt should not be
reported to the application requesting the read/write, since it will get
the 2nd callback once the retry succeeds/fails.
Change-Id: Ia27b91afa63b6f9ffdc597d59c24d29f3d8a1008
Diffstat (limited to 'core/java/android/bluetooth/BluetoothGatt.java')
-rw-r--r-- | core/java/android/bluetooth/BluetoothGatt.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothGatt.java b/core/java/android/bluetooth/BluetoothGatt.java index 27f2011..1fe43ec 100644 --- a/core/java/android/bluetooth/BluetoothGatt.java +++ b/core/java/android/bluetooth/BluetoothGatt.java @@ -491,6 +491,7 @@ public final class BluetoothGatt implements BluetoothProfile { mService.readDescriptor(mClientIf, address, srvcType, srvcInstId, srvcUuid, charInstId, charUuid, descrInstId, descrUuid, AUTHENTICATION_MITM); + return; } catch (RemoteException e) { Log.e(TAG,"",e); } @@ -544,6 +545,7 @@ public final class BluetoothGatt implements BluetoothProfile { srvcType, srvcInstId, srvcUuid, charInstId, charUuid, descrInstId, descrUuid, characteristic.getWriteType(), AUTHENTICATION_MITM, descriptor.getValue()); + return; } catch (RemoteException e) { Log.e(TAG,"",e); } |