Skip to content
Snippets Groups Projects
  1. Jan 10, 2023
  2. Dec 14, 2022
    • Android Build Coastguard Worker's avatar
      Merge cherrypicks of ['ag/20428948', 'ag/20657353', 'ag/20657354'] into tm-qpr1-release. · a6b4d7bb
      Android Build Coastguard Worker authored
      Change-Id: I877d6b5458f2fd4cc3402516fa6aa7c1d2df5f09
      a6b4d7bb
    • Hui Peng's avatar
      Add regression test for b/258057241 · a54676ac
      Hui Peng authored
      Bug: 258057241
      Test: atest net_test_stack_avdtp
      Ignore-AOSP-First: security
      Merged-In: I9c87e30ed58e7ad6a34ab7c96b0a8fb06324ad54
      Change-Id: I9c87e30ed58e7ad6a34ab7c96b0a8fb06324ad54
      (cherry picked from commit 5f8babc9)
      Merged-In: I9c87e30ed58e7ad6a34ab7c96b0a8fb06324ad54
      a54676ac
    • Hui Peng's avatar
      Fix an OOB read in avdt_scb_hdl_pkt_no_frag · 3684fcdc
      Hui Peng authored
      The current implementation uses `pad_len = *(p_start + len);`
      to read the last byte from the packet, resulting one-byte
      out-of-bound read.
      
      Also avdt_scb_hdl_pkt_no_frag passes zero-lenth packets to
      upper-layer, this patch adds code to detect such packets
      and err out if detected.
      
      The regression test is I9c87e30ed58e7ad6a34ab7c96b0a8fb06324ad54
      
      Bug: 258057241
      Test: atest net_test_stack_avdtp
      Ignore-AOSP-First: security
      Merged-In: If0c7b25f2e6cb4531bbb6254e176e8ad1b5c5fb4
      Change-Id: If0c7b25f2e6cb4531bbb6254e176e8ad1b5c5fb4
      (cherry picked from commit 89255db5)
      Merged-In: If0c7b25f2e6cb4531bbb6254e176e8ad1b5c5fb4
      3684fcdc
    • Brian Delwiche's avatar
      Fix OPP comparison · c8ddea29
      Brian Delwiche authored
      isBluetoothShareUri_correctlyCheckUri (under
      com.android.bluetooth.opp.BluetoothOppUtilityTest) is failing
      on null input due to an incorrect comparison in
      isBluetoothShareUri.  Change the comparison to one which can
      cope with null input.
      
      Bug: 257190999
      Test: atest: BluetoothOppUtilityTest
      Tag: #security
      Ignore-AOSP-First: Security
      Change-Id: I61118f22577de7b975fb0df8dac8583e91f7b8c7
      (cherry picked from commit c9b53b95)
      Merged-In: I61118f22577de7b975fb0df8dac8583e91f7b8c7
      (cherry picked from commit 8c312386)
      Merged-In: I61118f22577de7b975fb0df8dac8583e91f7b8c7
      c8ddea29
  3. Nov 15, 2022
    • Android Build Coastguard Worker's avatar
      Merge cherrypicks of [20075314, 20189657, 20297390, 20377068, 20392273] into tm-qpr1-release. · 29be605a
      Android Build Coastguard Worker authored
      Change-Id: I84be122e3754990c4575d15c7e7c558c83becb42
      17 tags
      29be605a
    • Brian Delwiche's avatar
      Fix buffer overflow in BRSF · f9ac0f68
      Brian Delwiche authored
      bta_hf_client_at does not properly check bounds on its inputs,
      allowing a buffer overflow when fed a buffer that is more than
      twice the expected maximum size.  Add a new bounds check to
      enforce, and a new security test to validate.
      
      Bug: 231156521
      Test: atest: BtaHfClientSecurityTest
      Tag: #security
      Ignore-AOSP-First: Security
      
      Change-Id: I2cf89a786ba7cd0423eaccd8082bd824ac2f0d43
      (cherry picked from commit f8adec66)
      Merged-In: I2cf89a786ba7cd0423eaccd8082bd824ac2f0d43
      f9ac0f68
    • Brian Delwiche's avatar
      Drop connection when atttempting to disable encryption · 329fe84b
      Brian Delwiche authored
      Pixel devices in the field appear not to drop the connection or
      reestablish encryption after receiving a command to disable link
      layer encryption on an encrypted link, a certification
      requirement.  Add a check forcing connections to drop in this case.
      
      Bug: 251436534
      Test: atest: bluetooth, lab validation forthcoming
      Tag: #security
      Ignore-AOSP-First: Security
      Change-Id: Ie9d69be65fa1163c1ee10ca19153e98e737743cb
      (cherry picked from commit 8c63c7c1)
      Merged-In: Ie9d69be65fa1163c1ee10ca19153e98e737743cb
      329fe84b
    • Dylan Tian's avatar
      Add OPUS support property check. · 6e41c252
      Dylan Tian authored
      Tag: #feature
      Bug: 254609888
      Ignore-AOSP-First: tm-qpr feature
      Test: atest net_test_stack:A2dpCodecConfigTest#init
      Change-Id: I5e19883310be7119f777f823e6963465b5bc1a2b
      (cherry picked from commit 780a0eee)
      Merged-In: I5e19883310be7119f777f823e6963465b5bc1a2b
      6e41c252
    • Rahul Arya's avatar
      Pass PHY change event up to GATT · e0fd13ef
      Rahul Arya authored
      Allow GATT to use 2M phy.
      
      Test: manual QA testing
      Bug: 245969911
      Change-Id: I1e3458423dde7f5b7240f573955fec7b5b83e9d2
      (cherry picked from commit 6221f7f4)
      Merged-In: I1e3458423dde7f5b7240f573955fec7b5b83e9d2
      (cherry picked from commit fc56c743)
      Merged-In: I1e3458423dde7f5b7240f573955fec7b5b83e9d2
      e0fd13ef
    • chenlei7's avatar
      Bluetooth: Fix gatt can't writeCharacteristic · 67158cb9
      chenlei7 authored
      
      Le device connected by more then one APP, fix can't write characteristic issue.
      
      Tag: #bugfix
      Bug: 243105389
      Bug: 243184580
      Test: manual
      Signed-off-by: default avatarchenlei7 <chenlei7@xiaomi.com>
      Merged-In: Icff2d56ac885bf04b212d2b608bfc69f25350179
      Change-Id: Icff2d56ac885bf04b212d2b608bfc69f25350179
      (cherry picked from commit aed67660)
      Merged-In: Icff2d56ac885bf04b212d2b608bfc69f25350179
      67158cb9
  4. Oct 27, 2022
    • Android Build Coastguard Worker's avatar
      Merge cherrypicks of [20271256] into tm-qpr1-release. · 903f6acc
      Android Build Coastguard Worker authored
      Change-Id: Iac9e94e6dad2a084e0101d9765a53e7d3e887805
      5 tags
      903f6acc
    • Hyundo Moon's avatar
      Revert "Make onServiceDisconnected be called" · 24ec9768
      Hyundo Moon authored
      Revert "Add tests for BluetoothProfile.close"
      
      Revert submission 19938469-BluetoothProfile_close
      
      Reason for revert: Creating a revert CL only for QPR1
      Reverted Changes:
      I51ad4e0ec:Make onServiceDisconnected be called
      Ic5188c62e:Add tests for BluetoothProfile.close
      
      Bug: 249213217
      Change-Id: Id180e12f1dc6da48f68797a70c3095e6bf444a21
      (cherry picked from commit b773c175d566085f4bdf2a0e629882535131c50e)
      Merged-In: Id180e12f1dc6da48f68797a70c3095e6bf444a21
      24ec9768
  5. Oct 08, 2022
  6. Oct 06, 2022
  7. Oct 01, 2022
  8. Sep 30, 2022
  9. Sep 29, 2022
  10. Sep 28, 2022
    • Android Build Coastguard Worker's avatar
      Snap for 9115816 from be07b0aa to tm-qpr1-release · e53a6f16
      Android Build Coastguard Worker authored
      Change-Id: Ic3cf76b8bf21034565531652bd42d80c4a394b3e
      e53a6f16
    • Chris Manton's avatar
    • TreeHugger Robot's avatar
    • Łukasz Rymanowski's avatar
      leaudio: Fix assert on GetFrame · cf278757
      Łukasz Rymanowski authored
      If it is not possible to Active already configured ASEs, fallback to
      configure group again instead of going to CigCreate
      
      Bug: 247108587
      Test: atest BluetoothInstrumentationTests
      Tag: #feature
      
      Merged-In: I559bf233a44982fb8b80517dc4c95d07736b0b2e
      Change-Id: I559bf233a44982fb8b80517dc4c95d07736b0b2e
      (cherry picked from commit 37b364ba)
      cf278757
    • Ted Wang's avatar
      Add Low Latency Audio Control · 4dba532e
      Ted Wang authored
      Set low latency audio allowed status when follwoing condition to inform
      audio hal low latency mode change.
      1. A2dp connected
      2. Codec config updated
      3. Active device changed
      4. Optional codec disabled/enabled
      
      Bug: 247680090
      Test: atest GoogleBluetoothInstrumentationTests:A2dpStateMachineTest
      Ignore-AOSP-First: tm-qpr feature
      Change-Id: I41e77973e21f241b160b1a12174892d55f34333b
      4dba532e
    • Łukasz Rymanowski's avatar
      leaudio: Notify connected when subscribed for CCC · 7f1713c2
      Łukasz Rymanowski authored
      Make sure to not notify connected until all the CCC are registered and
      MTU is changed on the reconnection.
      
      Otherwise, when reconnected during streaming, stream will not be able to
      setup because GATT is busy with the descritors registration and MTU
      change.
      
      This is regression after:
      4b1536c90b5  leaudio: Fix the MTU exchange request
      
      Bug: 228351333
      Test: atest BluetoothInstrumentationTests
      Test: manual: Connect earbuds while streaming
      Tag: #feature
      Merged-In: I5b023907764e6c4552f199a8a17f02e5bddbd0de
      Change-Id: I5b023907764e6c4552f199a8a17f02e5bddbd0de
      (cherry picked from commit 50805bd5)
      7f1713c2
    • Rahul Arya's avatar
      Add flag to toggle IRK rotation · e5823b63
      Rahul Arya authored
      Based on discussion in linked bug, to prevent further regressions if the
      latest fixes are still incomplete.
      
      Bug: 195410559
      Test: compiles
      Ignore-AOSP-First: security
      Change-Id: I1741929c639f2dbc6417974bf3287d8d141e33df
      (cherry picked from commit 924c3a96)
      Merged-In: I1741929c639f2dbc6417974bf3287d8d141e33df
      e5823b63
    • Rahul Arya's avatar
      Reschedule address rotation after connection to advertising set · 41841d52
      Rahul Arya authored
      Otherwise we stop rotating our address and lose all benefits of privacy.
      
      Ignore-AOSP-First: Security fix
      Bug: 246692649
      Test: Nearby QA test, and I'll write a cert test eventually
      Tag: #stability
      Change-Id: Ib63d79256acbb956413849c17f761aa902fa2eae
      (cherry picked from commit 279e3c3a)
      Merged-In: Ib63d79256acbb956413849c17f761aa902fa2eae
      41841d52
    • Rahul Arya's avatar
      Rotate advertising set addresses on IRK change · 4c409db3
      Rahul Arya authored
      We need to pause all advertising before changing the random address, and
      we need to also change the addresses used for each advertising set. We
      also should ensure no active connections etc. are taking place when the
      address is changed.
      
      Note that this means there will be some latency between the address
      change in legacy before it is changed in GD, but I don't know how to
      avoid this.
      
      Ignore-AOSP-First: Security fix
      Test: manual / TODO
      Bug: 245453591
      Tag: #stability
      BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
      
      Change-Id: Ia897a55320741993467d286550949a802657d399
      (cherry picked from commit b275c66d)
      Merged-In: Ia897a55320741993467d286550949a802657d399
      4c409db3
    • Chris Manton's avatar
      Security: Fix heap use after free · 9817ef5e
      Chris Manton authored
      Bug: 243922806
      Tag: #security
      Test: visual inspection
      Ignore-AOSP-First: Security
      Change-Id: I052310c0a087062ed033748178a7331331f2f23e
      9817ef5e
    • Ömer Faruk Yılmaz's avatar
      be07b0aa
Loading