Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e29042fb authored by Ajay Panicker's avatar Ajay Panicker Committed by Android Git Automerger
Browse files

am c89da1c7: am 3b2fbaeb: am 106e4f4c: am e1601fac: Implement Bluetooth...

am c89da1c7: am 3b2fbaeb: am 106e4f4c: am e1601fac: Implement Bluetooth settings factory reset (2/5)

* commit 'c89da1c70c3f202052f85ccca9145eda04817deb':
  Implement Bluetooth settings factory reset (2/5)
parents 1deca1b3 3b2fbaeb
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -1001,6 +1001,25 @@ public final class BluetoothAdapter {
        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.
     *
+1 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@ interface IBluetooth
    ParcelFileDescriptor createSocketChannel(int type, in String serviceName, in ParcelUuid uuid, int port, int flag);

    boolean configHciSnoopLog(boolean enable);
    boolean factoryReset();

    boolean isMultiAdvertisementSupported();
    boolean isPeripheralModeSupported();