summaryrefslogtreecommitdiff
path: root/system/stack/arbiter
AgeCommit message (Collapse)Author
2025-09-18[SP 2025-09-01] Fix use after free in acl_arbiterbanksia-dev Brian Delwiche
In SendPacketToPeer of acl_arbiter.cc, a buffer length is logged in one case after an intermediate call may free the buffer, leading to use after free. Log instead from the buffer's source, which has not been freed at this point in the code. Bug: 406785684 Flag: EXEMPT obvious logic fix Test: m libbluetooth Test: researcher POC Tag: #security Change-Id: Idd13399c24399d01bcd668a4b779ef1980273691 (cherry picked from commit 243d7484e59730c522640b616445b2747b3062e5)
2024-09-04[11/25] stack::acl Use stack::l2cap::get_interface() Chris Manton
Bug: 343808590 Test: m . Flag: EXEMPT, Mechanical Refactor Change-Id: I9a485ba007d7a0bfb4f6ce73b6a0b79c70244249
2024-07-11system: Remove location parameter from do_in_main_thread Henri Chataing
It is not used in a meaningful way, and passing the argument increases the .text size by several KiBs Bug: 331817295 Test: m com.android.btservices Flag: EXEMPT, mechanical refactor Change-Id: I197d200df0de7d872aa724cf3a91550b755c638b
2024-07-07Format: apply clang rules William Escande
Restore SpacesBeforeTrailingComments to 2 to match current style Then run clang-format -i **/**.{c,h,cc,cpp,hpp} Then fix a bunch of typo (reported by gerrit) Then fix unnecessary multiline string Then fix whitespace for disabled clang format (reported by cpplint) This is no-op Bug: 311772251 Test: mmm packages/modules/Bluetooth Flag: Exempt Format only Change-Id: If135447803a40a2a07d4630ba2195e08ef8d250c
2024-06-19Streamline enum stack::l2cap::tL2CAP_DW_RESULT Chris Manton
Bug: 344992630 Test: m . Flag: EXEMPT, Mechanical Refactor Change-Id: I58c45c5c40e155e0e4c5b6bb3bc50333ca798037
2024-06-17Class-enumify stack::l2cap::tL2CAP_DW_RESULT Chris Manton
Bug: 344991872 Test: m . Flag: EXEMPT, Mechanical Refactor Change-Id: I925537804979745d42b47d081130817097322ba6
2024-05-21stack::l2cap [11/19] L2CA_SendFixedChnlData Chris Manton
Bug: 339732512 Test: m . Flag: EXEMPT, Logging Change Change-Id: Ifc42252843fe4b899e997877ee69b2d491b8c5ee
2024-05-11IWYU: stack/include/l2cdefs.h Chris Manton
Bug: 339736332 Test: m . Flag: EXEMPT, IWYU Change-Id: I259fff959f69059982eb5be40672cffd44e39d46
2024-04-29Private gatt: hard disable for floss William Escande
Bug: 337202183 Test: Floss testing Flag: Exempt, floss only change Change-Id: I56c57d4f8361b6a4b7c41f6f75fbf1b7d1eb6228
2024-04-19Remove private_gatt flag David Duarte
Bug: 290845890 Fix: 290845890 Flag: EXEMPT, removing legacy flag Test: m com.android.btservices Change-Id: Ic995239d9e1b6f2bda748148dade91b749bbbcd1
2024-02-08system/stack/arbiter: Migrate to libbluetooth_log Henri Chataing
Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I6949cf85cd5aaba3d2133793aa580b8bcbb0b719
2023-10-12Rename btu_task.h -> main_thread.h Myles Watson
This include file provides do_in_main_thread and other similar functions. Bug: 304830775 Test: mma -j32 Change-Id: I5136e63ce43b7b044dee725ad481191ee8a3d67d
2023-10-12ACL: Remove unused includes Myles Watson
Bug: 304830775 Test: mma -j32 Change-Id: I51fa3c2b1702272a9d04a95486444e608c9bb964
2023-06-10floss: Migrate base::Bind for do_in_main_thread Wei-Luan Wang
base::Bind was deprecated. Use base::BindOnce for the second argument of do_in_main_thread since the function expects a base::OnceCallback. This is a mechanical change by replacing base::Bind with base::BindOnce for do_in_main_thread. Bug: 272116782 Tag: #floss Test: FEATURES=test emerge-volteer floss Change-Id: Ia5010575c6302cd45c9977816e3e99a96c4d8d0d
2023-04-05libchrome: Update headers from libchrome Nathan Muggli
A change in libchrome has moved the base/bind.h header into base/funtional/bind.h. See https://r.android.com/2399915 for more details. This change finishes the work in aosp/2403852. Bug: 266161904 Tag: #floss Test: presubmit Change-Id: I2e2052aaf8e75f41fd52b535d2cb9c65f87e2c56
2023-03-09[Private GATT] Add support for MTU Exchange Rahul Arya
Snoop MTU_REQ/RSP packets from legacy stack, and use them to track the MTU used in the isolated server. Bug: 255880936 Test: unit Change-Id: Ifcaa35be47abdbf714b592318184701645b55800
2023-02-06[Private GATT] Add Arbiter to share ATT channel Rahul Arya
Arbitration is done based on advertiser ID and packet type. This links the legacy stack to the new implementation. Bug: 255880936 Test: unit Change-Id: Ia62aacb0bdeab67dd202dc6ad4239f7c553d84d6
2023-02-06[Private GATT] Add to libbluetooth Rahul Arya
Links private GATT with the libbluetooth_jni.so, and sets up a basic module system + FFI. Bug: 255880936 Test: pts-bot Change-Id: Ibc470d3fd13c20e97b23f16fc41330fcb9765c70