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

Commit 1c6fb867 authored by WhaleChang's avatar WhaleChang Committed by Whale Chang
Browse files

Floss: Create UHID device as long as telephony flag is enabled

Originally, problematic Bluetooth headsets were excluded from creating
a UHID device for user access. This logic has been simplified, and now
a UHID device will be created as long as the telephony flag is enabled.

Bug: 340375662
Test: Conduct the following manual tests
  pair Bluetooth Headset
  Google Meet: headset is able to hang-up the call
Test: Conduct the following manual tests
  pair Bluetooth Headset
  login Ring Central and place an incoming-call
  answer the call by headset
  hangup the call by headset
Test: Conduct the following manual tests
  pair Bluetooth Headset
  login Ring Central and place an incoming-call
  answer the call on Ring Central
  hangup the call from headset
Test: atest bluetooth_test_gd
Tag: #floss
Flag: EXEMPT, no behavior change on Android; Floss-only changes
Change-Id: I369a5b096a7ce607570d845d6962fb9013ca195a
parent 049596db
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -724,12 +724,7 @@ impl BluetoothMedia {
                            self.start_sco_call_impl(addr.to_string(), false, HfpCodecBitId::NONE);
                        }

                        if self.should_insert_call_when_sco_start(addr) {
                            info!(
                                "[{}]: UHID creation skipped due to interop workaround",
                                DisplayAddress(&addr)
                            );
                        } else {
                        if self.phone_ops_enabled {
                            self.uhid_create(addr);
                        }
                    }