From dcdfaf3d6b2104055242273db16c31ccdba7b131 Mon Sep 17 00:00:00 2001 From: Stanley Tng Date: Fri, 15 Feb 2019 13:13:45 -0800 Subject: [PATCH] Fix the bad link due to typo Replaces the link with the new API name, createInsecureL2capChannel. Bug: 70683224 Test: Compile Change-Id: I9580d90722f8b0c0146a902bb5fcace4ef58d421 Merged-In: Ia06e1fffd814671289a1caebd5962aedc18a28d7 --- core/java/android/bluetooth/BluetoothDevice.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 2803856fb3bc0..23f29041487d5 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -2175,8 +2175,7 @@ public final class BluetoothDevice implements Parcelable { * encrypted. *

Use this socket if an authenticated socket link is possible. Authentication refers * to the authentication of the link key to prevent man-in-the-middle type of attacks. When a - * secure socket connection is not possible, use {#link createInsecureLeL2capCocSocket(int, - * int)}. + * secure socket connection is not possible, use {#link createInsecureL2capChannel(int)}. * * @param psm dynamic PSM value from remote device * @return a CoC #BluetoothSocket ready for an outgoing connection