OSDN Git Service

Gradually increase the level of authentication on failed GATT operations.
authorJacky Cheung <jackyc@google.com>
Fri, 29 Jul 2016 18:49:27 +0000 (11:49 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 20 Oct 2016 18:17:12 +0000 (18:17 +0000)
commit84c6d339ee2984ca5104305a7bf19f83008bb78f
treeaac7beeee2620d985d3462ea0352ef538d315472
parentf9ca194dbe2743d87ef36c6f66e12720011c9860
Gradually increase the level of authentication on failed GATT operations.

When lower layer returns insufficient authentication or insufficient
encryption on various GATT operations, gradually retry with increased
authentication level first to AUTHENTICATION_NO_MITM, then
AUTHENTICATION_MITM.

Change-Id: I68335cf7451aeaf49c227d604f69cb329d117d08
core/java/android/bluetooth/BluetoothGatt.java