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

Commit 98048d8d authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "Revert "Clear calling identity when calling getConnectionState internally"" into main

parents b6095917 46ec6282
Loading
Loading
Loading
Loading
+1 −10
Original line number Original line Diff line number Diff line
@@ -2695,16 +2695,7 @@ public class AdapterService extends Service {
                return BluetoothDevice.CONNECTION_STATE_DISCONNECTED;
                return BluetoothDevice.CONNECTION_STATE_DISCONNECTED;
            }
            }


            if (Flags.apiGetConnectionStateUsingIdentityAddress()) {
                final long token = Binder.clearCallingIdentity();
                try {
            return service.getConnectionState(device);
            return service.getConnectionState(device);
                } finally {
                    Binder.restoreCallingIdentity(token);
                }
            } else {
                return service.getConnectionState(device);
            }
        }
        }


        @Override
        @Override