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

Commit 86ea0529 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "HAL: Bypass binder check when refetching"

parents aa10506e 31e455f8
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -91,9 +91,11 @@ BluetoothAudioClientInterface::GetAudioCapabilities(SessionType session_type) {


void BluetoothAudioClientInterface::FetchAudioProvider() {
void BluetoothAudioClientInterface::FetchAudioProvider() {
  if (provider_ != nullptr) {
  if (provider_ != nullptr) {
    LOG(WARNING) << __func__ << ": reflash";
    LOG(WARNING) << __func__ << ": refetch";
  }
  } else if (!is_aidl_available()) {
  if (!is_aidl_available()) {
    // AIDL availability should only be checked at the beginning.
    // When refetching, AIDL may not be ready *yet* but it's expected to be
    // available later.
    return;
    return;
  }
  }
  auto provider_factory = IBluetoothAudioProviderFactory::fromBinder(
  auto provider_factory = IBluetoothAudioProviderFactory::fromBinder(