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

Commit fb168aaa authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "AdapterService: Skip dumpNative when turning off"

parents 93d2ee22 f9e1bc19
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -6466,8 +6466,17 @@ public class AdapterService extends Service {
        writer.write(sb.toString());
        writer.flush();

        final int currentState = mAdapterProperties.getState();
        if (currentState == BluetoothAdapter.STATE_OFF
                || currentState == BluetoothAdapter.STATE_TURNING_OFF
                || currentState == BluetoothAdapter.STATE_BLE_TURNING_OFF) {
            writer.println();
            writer.println("Not dumping, since Bluetooth is turning off");
            writer.println();
        } else {
            dumpNative(fd, args);
        }
    }

    private void dumpMetrics(FileDescriptor fd) {
        BluetoothMetricsProto.BluetoothLog.Builder metricsBuilder =