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

Commit 4020644c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Log local stacktrace to aid investigation." into sc-dev am: 11c4c4d9

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/15144313

Change-Id: I0cbf35e0382a980eb21918c826ce1a00ee252cb9
parents a05b27a9 11c4c4d9
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -123,6 +123,8 @@ import com.android.internal.app.IBatteryStats;
import com.android.internal.os.BackgroundThread;
import com.android.internal.util.ArrayUtils;

import libcore.util.SneakyThrow;

import com.google.protobuf.InvalidProtocolBufferException;

import java.io.FileDescriptor;
@@ -1745,7 +1747,13 @@ public class AdapterService extends Service {

            enforceBluetoothPrivilegedPermission(service);

            try {
                return service.connectAllEnabledProfiles(device);
            } catch (Exception e) {
                Log.v(TAG, "connectAllEnabledProfiles() failed", e);
                SneakyThrow.sneakyThrow(e);
                throw new RuntimeException(e);
            }
        }

        @Override
@@ -1760,7 +1768,13 @@ public class AdapterService extends Service {

            enforceBluetoothPrivilegedPermission(service);

            try {
                return service.disconnectAllEnabledProfiles(device);
            } catch (Exception e) {
                Log.v(TAG, "disconnectAllEnabledProfiles() failed", e);
                SneakyThrow.sneakyThrow(e);
                throw new RuntimeException(e);
            }
        }

        @Override