1. 03 Nov, 2016 1 commit
  2. 27 May, 2016 2 commits
    • Marie Janssen's avatar
      DO NOT MERGE btif: check overflow on create_pbuf size · 514139f4
      Marie Janssen authored
      Bug: 27930580
      Change-Id: Ieb1f23f9a8a937b21f7c5eca92da3b0b821400e6
      514139f4
    • Ajay Panicker's avatar
      Add guest mode functionality (2/3) · 37c88107
      Ajay Panicker authored
      Add a flag to enable() to start Bluetooth in restricted
      mode. In restricted mode, all devices that are paired during
      restricted mode are deleted upon leaving restricted mode.
      Right now restricted mode is only entered while a guest
      user is active.
      
      Bug: 27410683
      Change-Id: I8f23d28ef0aa3a8df13d469c73005c8e1b894d19
      37c88107
  3. 22 Apr, 2016 1 commit
  4. 26 Mar, 2016 1 commit
  5. 17 Mar, 2016 1 commit
  6. 02 Mar, 2016 1 commit
    • Andre Eisenbach's avatar
      DO NOT MERGE Blacklist devices for absolute volume control · 3f448e48
      Andre Eisenbach authored
      Some devices do not play well with absolute volume control. They either
      play back music at unacceptably loud volume levels or provide
      insufficiently granular volume control where a single "step" of volume
      change results in unexpectedly large jumps in volume.
      
      Bug: 26070064, 26060431
      Change-Id: I5a336fba87119325b47a5ad385e9c48a631f2121
      3f448e48
  7. 27 Feb, 2016 1 commit
  8. 24 Feb, 2016 1 commit
  9. 22 Jan, 2016 1 commit
    • Marie Janssen's avatar
      Fix crashes with lots of discovered LE devices · ed1563bb
      Marie Janssen authored
      When loads of devices are discovered a config file which is too large
      can be written out, which causes the BT daemon to crash on startup.
      
      This limits the number of config entries for unpaired devices which
      are initialized, and prevents a large number from being saved to the
      filesystem.
      
      Bug: 26071376
      Change-Id: I4a74094f57a82b17f94e99a819974b8bc8082184
      (cherry picked from commit d77f1999)
      ed1563bb
  10. 06 Nov, 2015 1 commit
    • Andre Eisenbach's avatar
      Always update remote address type during LE scan · 3e8755ec
      Andre Eisenbach authored
      This will ensure that devices which do not contain a device name in the
      advertising record are stored with the correct address type to ensure
      re-connection to the device succeeds.
      
      Bug: 25499163
      Change-Id: I85f18ce2de267844c5d5ed49beeb448b9b074d74
      3e8755ec
  11. 04 Nov, 2015 2 commits
  12. 30 Oct, 2015 1 commit
    • Andre Eisenbach's avatar
      Serialize remote version query over LE · eb6b3644
      Andre Eisenbach authored
      Some devices (ex. Nexus Player remote) do not take well to having the
      remote version queried while a remote feature request is also sent and
      subsequently fail encryption.
      
      This patch serializes the query of the remote version and requires both
      remote features and the remote version to be read before calling a
      connection established.
      
      Bug: 25357767
      Change-Id: Ie70eea241b47b81778d8e0df47f3a8f376316932
      eb6b3644
  13. 27 Oct, 2015 2 commits
  14. 23 Oct, 2015 3 commits
    • Andre Eisenbach's avatar
    • Mattias Agren's avatar
      Reduce persistence on aquiring master role · 59d96731
      Mattias Agren authored
      Whenever a device has more than 1 ACL link active and transferring
      data on one of its links via PAN, HH or JV (RFCOMM) the sys busy/idle
      state toggles frequently. To avoid triggering role switches for each
      of these events we filter this out and let the other SYS events handle
      it in combination with other role policy management code. Ideally we
      should revert the toggling to properly reflect the busy/idle state of
      each profile but to limit risk of side effects at this stage we will
      make this intermittent change.
      
      This also affects audio streaming in certain cases.
      
      Bug: 24570959, 25129209
      Change-Id: I141e17ee069c82624e153fd8de5db90ae93724b9
      59d96731
    • Andre Eisenbach's avatar
      Raise alarm callback thread priority · 730a12ac
      Andre Eisenbach authored
      Since alarms [/callbacks] are used in the critical audio path, raising
      the thread priority is required to ensure timely encoding/transmission
      of audio packets and avoiding thread pre-emption.
      
      This patch indiscriminatly raises the (single) callback thread priority,
      affecting all alarm callbacks. In the future, thread priotiry should be
      adjusted based on the alarms pending in the queue.
      
      Bug: 24570959
      Change-Id: I64928fd7325f1d6f76815a185dbccf1e01ae30d2
      730a12ac
  15. 21 Oct, 2015 3 commits
  16. 19 Oct, 2015 1 commit
  17. 11 Oct, 2015 1 commit
  18. 07 Oct, 2015 1 commit
    • Andre Eisenbach's avatar
      Raise BTU and HCI thread priorities · 6c25b3c0
      Andre Eisenbach authored
      The audio sub-system and audio related tasks run at elevated thread
      priorities in order to ensure timely handling of audio packets. This
      patch raises the thread priority of lower layer Bluetooth tasks involved
      in delivering audio packets to avoid thread pre-emption and subsequent
      audio skipping.
      
      Bug: 24570959
      Change-Id: I5e19ee4590207df753f7b8bfc22174959722ec2d
      6c25b3c0
  19. 25 Sep, 2015 2 commits
    • Pavlin Radoslavov's avatar
      am 74dad515: Disable opening network debug ports for security reasons · 60563860
      Pavlin Radoslavov authored
      * commit '74dad515':
        Disable opening network debug ports for security reasons
      60563860
    • Pavlin Radoslavov's avatar
      Disable opening network debug ports for security reasons · 4cac544d
      Pavlin Radoslavov authored
      By default, we open up to three TCP ports that are used
      for debugging purpose:
      
       * TCP port 8872 - used for forwarding btsnoop logs at real time
         Note: the port is open only if "Bluetooth HCI snoop log" is enabled
         in the Developer options
       * TCP port 8873 - used for HCI debugging
       * TCP port 8879 - used for debugging the Bluetooth counters
      
      Those ports are disabled by default.
      To enable, the following #define should be added at the top of the
      corresponding file(s): btcore/src/counter.c hci/src/btsnoop_net.c
      hci/src/hci_inject.c
      
         #define BT_NET_DEBUG TRUE
      
      Bug: 24371736
      
      Change-Id: I5cb43af1a5d29c331eb5ef61a24dccbe95df6f40
      4cac544d
  20. 24 Sep, 2015 2 commits
    • Pavlin Radoslavov's avatar
      Disable opening network debug ports for security reasons · 74dad515
      Pavlin Radoslavov authored
      By default, we open up to three TCP ports that are used
      for debugging purpose:
      
       * TCP port 8872 - used for forwarding btsnoop logs at real time
         Note: the port is open only if "Bluetooth HCI snoop log" is enabled
         in the Developer options
       * TCP port 8873 - used for HCI debugging
       * TCP port 8879 - used for debugging the Bluetooth counters
      
      Those ports are disabled by default.
      To enable, the following #define should be added at the top of the
      corresponding file(s): btcore/src/counter.c hci/src/btsnoop_net.c
      hci/src/hci_inject.c
      
         #define BT_NET_DEBUG TRUE
      
      Bug: 24371736
      
      Change-Id: I5cb43af1a5d29c331eb5ef61a24dccbe95df6f40
      74dad515
    • Nitin Shivpure's avatar
      Fix PAN crash due to fd mismatch · bb2a4fad
      Nitin Shivpure authored
      A case, where tap read thread is always exist, Sometimes
      data packets get recieved on older fd, which is not available.
      which is causing assert due to fd mismatch in race condition.
      when next pan connection is immediately available. If last pan
      connection gets disconnected, then tap_read_thread should be
      destroyed in btif context to fix this issue.
      
      Bug: 24093456
      Change-Id: Ic1053200a7be4c2091d6c394634831ca3fbd61df
      bb2a4fad
  21. 22 Sep, 2015 2 commits
  22. 21 Sep, 2015 1 commit
  23. 19 Sep, 2015 1 commit
  24. 17 Sep, 2015 2 commits
    • Andre Eisenbach's avatar
      Change UHID socket to be non-blocking · ef7d8cb8
      Andre Eisenbach authored
      On some platforms, the logs indicate that the BTU task is stalled by
      UHID driver when writing the HID descriptor to the kernel. This patch
      converts the UHID socket to non-blocking to avoid stalling the main
      BTU task.
      
      Bug: 23978964
      Change-Id: I5a7a3e106fb2c967d68f077faedcd4fe62bbd912
      ef7d8cb8
    • Nitin Shivpure's avatar
      Check BR device count before initiating role switch · 66df3209
      Nitin Shivpure authored
      A case where DUT is acting as PANU device on BR/EDR link & also
      acting as central on LE link. As LE link & PANU link need not to
      be master & it's not a scatter-net scenario, because there is only
      a BR link. So checking for BR device count before initiating role
      switch to avoid continuous loop of role switches.
      
      Cherry-picked from: https://partner-android-review.googlesource.com/#/c/376058/
      
      Change-Id: I70e4041a71ba965f1f9e25729c3cfd20ae03d6b4
      Bug: 23290136
      66df3209
  25. 15 Sep, 2015 1 commit
  26. 09 Sep, 2015 2 commits
  27. 08 Sep, 2015 2 commits
    • tturney's avatar
      Allow BT inquiry while discovery is in progress. · 2a1b8ac5
      tturney authored
      BT Inquiry is disallowed when service discovery
      is in progress. Innitially when GATT discovery
      is in progress (crosskey pairing), it resulted
      in inquiry requests being rejected. During an
      insecure connection like OPP, bonding link key
      is not stored. In an earlier patch (b820aec7),
      BR/EDR discovery was bypassed if the bonding was
      temporary. However, this was not done for LE.
      Applying the same logic to LE, resolved the
      inquiry issue reported in this bug.
      
      Bug: 23468169
      Change-Id: I6111c80a420aeb0bc36a0393eb215c112512d251
      2a1b8ac5
    • Pavlin Radoslavov's avatar
      Eliminate recursive calling when handling GATT related errors · 50671055
      Pavlin Radoslavov authored
      If there are errors when processing GATT related events (e.g.,
      configuring the MTU), don't use recursive calls into
      bta_gattc_sm_execute(), because it breaks the free-ing of some
      of the memory.
      
      Bug: 23756301
      Change-Id: I3c685170e868ffbf4e488d2bb5a31904e3f7b39d
      50671055