Merge "Reject incoming tethering connections if Tethering option is not enabled."

This commit is contained in:
Jaikumar Ganesh
2011-02-07 16:49:26 -08:00
committed by Android (Google) Code Review

View File

@@ -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);