Skip to content
Snippets Groups Projects
  1. Jul 27, 2022
    • Rahul Arya's avatar
      Avoid invalid state in search/discovery queue state machine · 7bc27c08
      Rahul Arya authored
      The sequence of events in the state machine that causes the bug is as follows:
      - We start a search, and move from the IDLE state to the SEARCH_ACTIVE state.
      - We initiate a pairing request, that sets pairing_cb.state to BT_BOND_STATE_BONDING.
      - We cancel the search, returning to the IDLE state.
      - We then try to start a second search. In BTA_DmSearch, we check if we are bonding, and if so enqueue the request.
      - But we remain in the IDLE state! So we never dequeue the search request, getting us into the stuck state.
      
      This CL fixes the issue by removing the *_QUEUE_* events, making the state machine the single arbiter for whether a request should be executed or queued. In particular, for the above scenario, the SDP request will queue behind the second search request, if it arrives afterwards, *even if* bonding has already begun. This prevents us from getting in a stuck state.
      
      I believe that this is safe since we preserve the invariant of only ever have one request going through at a time, but manual testing is needed to be certain. The preservation of this invariant also means that we should not regress b/237352700, though I am unable to test that.
      
      Bug: 230277335
      Test: Manual, using the repro steps from the bug thread.
      Tag: #stability
      
      Change-Id: I74e83964995b10f4bee35bae3182ec482bdedb39
      (cherry picked from commit d197ce9a)
      Merged-In: I74e83964995b10f4bee35bae3182ec482bdedb39
      7bc27c08
    • Rahul Arya's avatar
      Merge "Minimal fix for SDP crash" · 59a7ebe7
      Rahul Arya authored
      59a7ebe7
    • Treehugger Robot's avatar
      Merge changes I00673f01,Iab535d7c,Iaee68ebe · 84f442b7
      Treehugger Robot authored
      * changes:
        RootCanal: Properly determine link key type
        RootCanal: Move feature loader to features.rs
        RootCanal: Move link key notification to pairing
      84f442b7
    • Josh Wu's avatar
      RootCanal: Properly determine link key type · 63eff9a9
      Josh Wu authored
      * Partially support P256 SC authentication
      * Determine link key type from SC and IO capabilities
      
      Tag: #feature
      Test: atest liblmp_tests
      Bug: 238092436
      Change-Id: I00673f011d944ddf5ccce748cad2a4ac4770e6bc
      63eff9a9
    • Josh Wu's avatar
      RootCanal: Move feature loader to features.rs · e3cd08d9
      Josh Wu authored
      Tag: #refactor
      Bug: 235777894
      Test: atest liblmp_tests
      Change-Id: Iab535d7cb16550cd3ee4350602d4e79d919225d4
      e3cd08d9
    • Josh Wu's avatar
      RootCanal: Move link key notification to pairing · a2c262dd
      Josh Wu authored
      * Move link_key_notification to pairing because they are not a part of
        auth and pairing info is required to determine key type later.
      * Properly return comb key in legacy pairing
      
      Tag: #refactor
      Test: atest liblmp_tests --host
      Bug: 235777894
      Change-Id: Iaee68ebe5d1525072e99bc1a7a55cfe5865d3a9b
      a2c262dd
    • Hyundo Moon's avatar
      Merge "Add BluetoothPbapObexServerTest" · 401c603c
      Hyundo Moon authored
      401c603c
    • Michael Sun's avatar
    • Hyundo Moon's avatar
      Add BluetoothPbapObexServerTest · 705723b2
      Hyundo Moon authored
      This CL adds tests for following methods of BluetoothPbapObexServer:
      - onConnect
      - onDisconnect
      - onAbort
      - onPut
      - onDelete
      - onClose
      - onAuthenticationFailure
      - closeStream
      - logHeader
      
      Remaining ones will be handled in a different CL.
      
      Bug: 237548430
      Test: atest BluetoothPbapObexServerTest
      Change-Id: I8813f812f7d4125eb0bdbef5953bc96fc2e0af7b
      Merged-In: I8813f812f7d4125eb0bdbef5953bc96fc2e0af7b
      705723b2
  2. Jul 26, 2022
  3. Jul 25, 2022
  4. Jul 23, 2022
  5. Jul 22, 2022
    • Treehugger Robot's avatar
      d75b3a78
    • Treehugger Robot's avatar
      c27fa267
    • Treehugger Robot's avatar
      3890fc0a
    • Martin Brabham's avatar
      Add tool for plumbing BT API interfaces. · 229d2d0c
      Martin Brabham authored
      This tool will plumb APIs with the given names from the
      Topshim layer to the GD Controller layer.
      
       Topshim
        |
        v
       BTIF
        |
        v
       BTA
        |
        v
       BTM
        |
        v
       Controller Shim
        |
        v
       GD Controller
      
      It doesn't account for arguments, you will need to manually add them.
      
      It doesn't account for inband callbacks either, you will need to manuall add
      those.
      
      In some cases your code may not compile immediately, but it is usually
      only 1 or 2 syntax errors in the controller shim/gd controller layer if
      it happens at all.
      
      The script will auto commit and rebase for comment editing to add things
      like the following...
      
      Bug: 235505882
      Test: mma -j $(nproc)
      Test: ./build.py
      Change-Id: Iabe05192b8adbd0067d9146139f6b4a6efbdf20a
      229d2d0c
    • Michael Sun's avatar
      floss: fix log.h dependency of init_flag for ChromeOS · 1bf669b2
      Michael Sun authored
      Fix the log.h missing dependency of init_flag for ChromeOS by adding
      init_flags.h when building for Floss. In addition, update BUILD.gn
      files to include init_flags_bridge_header wherever log utilities are
      used.
      
      BUG: 232098615
      Tag: #floss
      Test: emerge-${BOARD} floss
      Test: ./build.py
      Change-Id: Ieac199eece21444d79003382d2e33fe337162b06
      1bf669b2
    • Myles Watson's avatar
      Pandora: Add SDP/SR/ support · 3d7f86da
      Myles Watson authored
      Test: atest pts-bot:SDP/SR -v
      Bug: 239469107
      Change-Id: I75606064c67dac1406547db459b4fa17a78efd5e
      3d7f86da
    • William Escande's avatar
      SDP: Set address in tBTM_REMOTE_DEV_NAME · 09e9a0a5
      William Escande authored
      The tBTM_REMOTE_DEV_NAME.bd_addr was never set but we do use it to
      decide if we can remove the callback in bta_dm_remname_cback.
      Without the fix we are triggering too many remote name request. They
      will eventually conflict with each other and ends in the busy state.
      At this point if the stack is performing a search, we could receive
      delayed sdp_result that will end in a crash.
      
      Repro steps:
       * Start a search on phone
       * Pair & connect from carkit
       * Crash should occur (1~4% repro).
      
      Without any logs nor fix, crash is around 15%+ repro
      With the fix, the 'crash situation' only appear around 1~2% and it no
      longer crash
      Crash situation as been identified to match with the following logs
          `BTM_ReadRemoteDeviceName is busy`
      
      Bug: 231150390
      Test: Execute repro step above
      Change-Id: I317f5d689a9efb85d997a38470712ed3d8e0c531
      09e9a0a5
    • William Escande's avatar
    • William Escande's avatar
      Add a pre-test mmi to get the pts address · a25f2567
      William Escande authored
      Some HFP test need to start waiting for a connection BEFORE the test
      start and we need the address to wait for it
      
      Bug: 237447510
      Test: atest pts-bot
      Change-Id: I3df66abb2c5a99f14459beee93e7784fdc6caf19
      a25f2567
    • Łukasz Rymanowski's avatar
      LeAudioService: Minor changes to store volume for the group · dc7f9e72
      Łukasz Rymanowski authored
      This patch address review comments for the patch which is already merged
      in internal branch.
      
      Bug: 233975367
      Test: atest BluetoothInstrumentationTests
      Tag: #feature
      Change-Id: I26b4deed716610b98cfd08cfd2ac43fd0ecfab65
      dc7f9e72
    • William Escande's avatar
      [PANDORA_TEST] pts-bot HFP Coverage: HFI & SLC · 74bb6827
      William Escande authored
      Create the HFP layer inside pts-bot.
      
      Add the following HFP test:
        * HFP/AG/HFI/BI-03-I
        * HFP/AG/HFI/BV-02-I
        * HFP/AG/SLC/BV-09-I
        * HFP/AG/SLC/BV-10-I
      
      Bug: 237447510
      Test: atest pts-bot:HFP/AG/HFI
      Test: atest pts-bot:HFP/AG/SLC
      Test: atest pts-bot
      Change-Id: I410b9d3a9b73ba49c7743dac7fd3db0aaf31da93
      74bb6827
  6. Jul 21, 2022
Loading