* commit '106e4f4ca06003ed2cf57bddb24f46a1142cdc49': Implement Bluetooth settings factory reset (2/5)
This commit is contained in:
@@ -1001,6 +1001,25 @@ public final class BluetoothAdapter {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Factory reset bluetooth settings.
|
||||||
|
*
|
||||||
|
* <p>Requires the {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED}
|
||||||
|
* permission
|
||||||
|
*
|
||||||
|
* @return true to indicate that the config file was successfully cleared
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public boolean factoryReset() {
|
||||||
|
try {
|
||||||
|
if (mService != null) {
|
||||||
|
return mService.factoryReset();
|
||||||
|
}
|
||||||
|
} catch (RemoteException e) {Log.e(TAG, "", e);}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the UUIDs supported by the local Bluetooth adapter.
|
* Get the UUIDs supported by the local Bluetooth adapter.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ interface IBluetooth
|
|||||||
ParcelFileDescriptor createSocketChannel(int type, in String serviceName, in ParcelUuid uuid, int port, int flag);
|
ParcelFileDescriptor createSocketChannel(int type, in String serviceName, in ParcelUuid uuid, int port, int flag);
|
||||||
|
|
||||||
boolean configHciSnoopLog(boolean enable);
|
boolean configHciSnoopLog(boolean enable);
|
||||||
|
boolean factoryReset();
|
||||||
|
|
||||||
boolean isMultiAdvertisementSupported();
|
boolean isMultiAdvertisementSupported();
|
||||||
boolean isPeripheralModeSupported();
|
boolean isPeripheralModeSupported();
|
||||||
|
|||||||
Reference in New Issue
Block a user