Bluetooth HIDD: Remove unplug()
Remove the hidden unplug() API because it is not used and it can cause the remote device to be unpaired. System apps should use unbond() and user apps should not use reflection to invoke it. Bug: 67866553 Test: SL4A Change-Id: I1bdc06dbb5460c9fd52230b78cbf9434a4349d24
This commit is contained in:
committed by
Myles Watson
parent
8d8921d7fc
commit
dbc6d14f6e
@@ -700,29 +700,6 @@ public final class BluetoothHidDevice implements BluetoothProfile {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends Virtual Cable Unplug to currently connected host.
|
||||
*
|
||||
* @return
|
||||
* {@hide}
|
||||
*/
|
||||
public boolean unplug(BluetoothDevice device) {
|
||||
boolean result = false;
|
||||
|
||||
final IBluetoothHidDevice service = mService;
|
||||
if (service != null) {
|
||||
try {
|
||||
result = service.unplug(device);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, e.toString());
|
||||
}
|
||||
} else {
|
||||
Log.w(TAG, "Proxy not attached to service");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiates connection to host which is currently paired with this device. If the application
|
||||
* is not registered, #connect(BluetoothDevice) will fail. The connection state should be
|
||||
|
||||
Reference in New Issue
Block a user