From 8f08ae96611a2027cece14511f63a211afed11fb Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Mon, 7 Feb 2011 16:41:10 -0800 Subject: [PATCH] Reject incoming tethering connections if Tethering option is not enabled. Change-Id: I40aa08ad5a3f3a2169551bbe35682910daced098 --- core/java/android/server/BluetoothEventLoop.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java index e9f28fa9cc31c..3316ea51f7018 100644 --- a/core/java/android/server/BluetoothEventLoop.java +++ b/core/java/android/server/BluetoothEventLoop.java @@ -660,8 +660,7 @@ class BluetoothEventLoop { } else { Log.i(TAG, "Rejecting incoming HID connection from " + address); } - } else if (BluetoothUuid.isBnep(uuid) || BluetoothUuid.isNap(uuid) && - mBluetoothService.allowIncomingTethering()){ + } else if (BluetoothUuid.isBnep(uuid) && mBluetoothService.allowIncomingTethering()){ authorized = true; } else { Log.i(TAG, "Rejecting incoming " + deviceUuid + " connection from " + address);