- Feb 11, 2024
-
-
AShiningRay authored
Some devices ship with Bluetooth firmware that advertises compliance with Android M's capabilities but fails certain requirements such as the minimum expected response length. This commit introduces an if-else block that allows those devices to set a system property to bypass that check, fixing Bluetooth in cases where this check is the only thing impeding it from working. Change-Id: Ibbf81e922fe75bf0ef5b8cd7197c812348063db5 Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Ido Ben-Hur authored
Allows the user to set & preserve this value Use the config value as the default only Change-Id: I61a5278d351c5a297cbaf7c24f59331705a32884 Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Oliver Scott authored
Test: adb shell settings put global airplane_mode_radios cell,wifi,nfc,wimax and then enable airplane mode Change-Id: I52d4223144a8dcf4ac454614df181155bda88b37 (cherry picked from commit a3a13a26a46342bacd994b0a639f96f26a88ad8b) Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com> Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Oliver Scott authored
Change-Id: Ie1cce8bdfbbcc7f4cea01d322cb7bde2156c60d7 Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com> Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Oliver Scott authored
Add a bluetooth timeout setting and listen to changes to it as well as the bluetooth radio and connection state. Schedule an alarm to turn bluetooth off if it is enabled but not connected Issue: calyxos#124 Change-Id: I4f4646139cd42b7ad20b486ed77dd00499aa3c6e (cherry picked from commit 28da7976f4643c1b9c49edcefc8f620aeaa06ae2) Issue: calyxos#830 Change-Id: I5133909a030b5bb940707320420a26d8e1eb4852 Alarm listener must not be a local variable Issue: calyxos#1050 Change-Id: Ibb00c13ffe0fa5811c4fbd451acb8fa25fa58813 Use AOSP Settings for BLUETOOTH_OFF_TIMEOUT This APEX module is not able to access LineageSettings, so the setting is moved back to AOSP. Change-Id: I887cc3cea6c7f59523680d1141f91727086e143e Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com> Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Oliver Scott authored
Test: adb shell settings put global airplane_mode_radios cell,wifi,nfc,wimax and then enable airplane mode and reboot Change-Id: If4323c52ef315e6288412ce166d97690f435f496 (cherry picked from commit 46d8532765b97c3accb6e403eb3494e00d45e766) Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
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 bbbbdb52) Merged-In: I61118f22577de7b975fb0df8dac8583e91f7b8c7 Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Geel authored
Some BCM firmwares shipped with LGE devices will not pass a check involving the BTM_VSC_CHIP_CAPABILITY_RSP_LEN_M_RELEASE capability. This commit allows BTM_VSC_CHIP_CAPABILITY_RSP_LEN_M_RELEASE to be adjusted as a workaround for these firmwares. This issue was seen on some v20 and g5 oreo release BCM firmwares and the BCM4358A3_001.004.015.0095.0168_KR_ORC.HCD fw found on the v20 f800k pie release (lge/elsa_kt_kr/elsa:9/PKQ1.190522.001/20192161159c5) Log snippet: ``` 08-14 11:16:52.534 3468 3468 F DEBUG : Abort message: '[FATAL:btm_ble_gap.cc(668)] Check failed: p_vcs_cplt_params->param_len >= BTM_VSC_CHIP_CAPABILITY_RSP_LEN_M_RELEASE. ``` Change-Id: I1fccfd0f8877bdc878e7a2068f654369b136956e Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
SamarV-121 authored
Certain devices may assert support for it, yet they may not genuinely possess it, resulting in a crash of the entire Bluetooth stack. Change-Id: I5d0d90b107ddcbfd99eaccc178146333eb3bd6f8 Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
someone5678 authored
* Add .gitignore so don't mess up with this repo's commit history Change-Id: I2514890c64350a3f344f58b6fc6b9995b9d4ec32 Signed-off-by:
someone5678 <nemui3353@gmail.com> Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Peter Cai authored
Required to support sysbta, our system-side bt audio implementation. Change-Id: I59973e6ec84c5923be8a7c67b36b2e237f000860 Signed-off-by:
Nishant Kumar <www.rajsonu13@gmail.com> Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
LuK1337 authored
This allows us to disable selected commands in case they behave in unexpected ways. e.g. bluetooth.hci.disabled_commands=377 will disable LE_EXTENDED_CREATE_CONNECTION. Change-Id: I1fcc624df9fd07200a8406c51772ccb856a4258e Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
me-cafebabe authored
* It's broken on some legacy devices, rendering Bluetooth crashing Change-Id: I4b1764b7551150e78dd8e2dfc99a6472c1293c2b Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Peter Cai authored
For some reason, on some old devices, the controller will report a remote to support SNIFF_SUBRATING even when it does not. Just ignore the error here (the status event comes from the failure response). Change-Id: Ifb9a65fd77f21d15a8dc1ced9240194d38218ef6 Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Christian Hoffmann authored
* To expose to c legacy hals * Like hardware/realtek/rtkbt. Change-Id: Ic67f9697b032b66a8af364ed41e90d51dc75dd6f Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
Ji Luo authored
bluetooth app is signed with local certificate ':com.android.bluetooth.certificate' which is located at 'android/app/certs/*' and is aligned with the certificate in 'build/target/product/security'. However, some vendors may specify their own certificates path by 'PRODUCT_DEFAULT_DEV_CERTIFICATE' and generate their own release bluetooth certificates, bluetooth app will fail to load in such scenario because of the certificate doesn't match and cause selinux error: ... E SELinux : seapp_context_lookup: No match for app with uid 1002, seinfo default, name com.android.bluetooth E SELinux : selinux_android_setcontext: Error setting context for app with uid 1002, seinfo default:privapp:targetSdkVersion=33:complete: Success ... This CL use the certificate name 'bluetooth' so the app can be signed with the same certificate which is located at 'PRODUCT_DEFAULT_DEV_CERTIFICATE/*'. Test: Bluetooth on&off. Signed-off-by:
Ji Luo <ji.luo@nxp.com> Change-Id: I286aed5a3b895272f5ffc077ecd1d76351e02af7 Signed-off-by:
HeroBuxx <me@herobuxx.me>
-
- Dec 15, 2023
-
-
Android Build Coastguard Worker authored
Merge cherrypicks of ['googleplex-android-review.googlesource.com/22948134', 'googleplex-android-review.googlesource.com/25503067'] into udc-qpr1-release. Change-Id: I9bc3fb9371a94f6da2490dc693e61ba5eae13442
-
Hui Peng authored
Bug: 297524203 Test: m com.android.btservices Ignore-AOSP-First: security (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:140c41e3553bc59fe97e3f5ee96c64e2251971e2) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e9b40c3dfd81c3fa99b3f115135de7e2c356ece9) Merged-In: I2a95bbcce9a16ac84dd714eb4561428711a9872e Change-Id: I2a95bbcce9a16ac84dd714eb4561428711a9872e
-
Hui Peng authored
1. The size of `p_src->attr_value.value` is dependent on `p_src->attr_value.len`. While copying `p_src->attr_value.value`, to `p_dest->attr_value.value`, it always copies GATT_MAX_ATTR_LEN bytes, it may result in OOB read in `p_src->attr_value.value`; 2. As the `p_dest->attr_value.len` does not map the length of `p_dest->attr_value.value`, it may result in OOB read in attp_build_value_cmd; Bug: 276898739 Test: manual Tag: #security Ignore-AOSP-First: security (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:59c9e84bd31d4935a875d588bf4d2cc5bfb07d59) Merged-In: Iefa66f3a293ac2072ba79853a9ec23cdfe4c1368 Change-Id: Iefa66f3a293ac2072ba79853a9ec23cdfe4c1368
-
- Oct 12, 2023
-
-
Android Build Coastguard Worker authored
Change-Id: Ia58d141979cfa7c90d34cdd09da0b1a7ae0e6653
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am: a96fc61b -s ours am: 34cb3892 -s ours am: af783646 -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: Id3eee2f6f12e149da2612580f27312ff6bfa454f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am: a96fc61b -s ours am: 34cb3892 -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: Ia591fe76fc898336f01c1cc184580794a88e3eb4 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am: a96fc61b -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I164bd861dfef94bd28880eb80afe60a7bbfcd6f9 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am: 8296d56f -s ours am: 8877ca1b -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I48d418a3d659a76ffb28a20389edff74eec84b52 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 71f5916b am: f9291d8d am: c8fd1ec2 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: If9b2328d3b4dac2e4fd2e479375df3dc5bda9096 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
- Oct 11, 2023
-
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am: 8296d56f -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: Iac5483ec84e268c96215327de85ff8a80803a599 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I982abf6e055addef55bf475bfe43221a1d54ebcd Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
[automerger skipped] Merge "Fix some OOB errors in BTM parsing" into tm-dev am: 9e249e5c am: 7d348ff0 am: 5040d587 -s ours am skip reason: Merged-In If7752f6edd749d6d5a4bb957b4824c22b5602737 with SHA-1 5d1a3feb is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I5aafdfabdb0119b9a30c67f1c0138c0ddc1450fb Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I1416df8c533bd6bf5cbc78b5ed70f509a38d1b75 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Android Build Coastguard Worker authored
Change-Id: Ic19db7549c2b5bc0ad3bb550329cb3cf96e571db
-
Brian Delwiche authored
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I66d2858b161029f02cfdf2c9930d67854be3c865 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I0ae20aae5633720b8a6426f892a6a647872095d7 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: I6e24d2e5b627ca5bf26354bc16bc6922f62577a2 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23398897 Change-Id: Ie92bafd1b534b5f60c931ec381ed44cd34c2ce99 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
-
Brian Delwiche authored
Merge "Fix timing attack in BTM_BleVerifySignature" into tm-dev am: b9bcb27e am: 1e2c136b am: 342bbf79 am: 53d76cac am: 8be3d03d am: b00e5032 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/24972364 Change-Id: If6e94ff5775340bd90577184745dda9c5c12c46d Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
Merge "Fix UAF in ~CallbackEnv" into tm-dev am: d42f6181 am: ac0f825c am: 1c406b4b am: caf66424 am: 20dfd3c3 am: 0f155ff2 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/24234506 Change-Id: Ifde7ea3dec8966d2509dae153754a37116e5d9a4 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Brian Delwiche authored
[automerger skipped] Merge "Add bounds checks in btif_avrcp_audio_track.cc" into tm-dev am: 0b68bd68 am: 691976ac am: 0c9a8a38 -s ours am: 0e266ff0 -s ours am: 6b6cbc16 -s ours am: 172bc492 -s ours am skip reason: Merged-In I7a13261429797769cf5b913912a30e249668ac93 with SHA-1 46803ae9 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/23356997 Change-Id: I2b85734b517cad6fcff910eb9e94a5e8948eca96 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Automerger Merge Worker authored
* changes: [automerger skipped] Merge changes I03522897,I938467ca,Ia5871919 into tm-dev am: b2e32466 am: b89cb6bb am: eecf84df -s ours am: f2fdde2b -s ours am: fa2a717c -s ours am: 461130a1 -s ours [automerger skipped] Add validation on attr type and size in a2dp_api.cc am: c5bc4c49 am: c750219d am: e3a39b88 -s ours am: 952bc38d -s ours am: c7c40285 -s ours am: b54fb6f7 -s ours [automerger skipped] Add tests for the following change am: bd32fb5c am: 7803268a am: 8d5d900f -s ours am: 5e4c98d1 -s ours am: f8d4c84d -s ours am: 01206f0a -s ours
-
Hui Peng authored
[automerger skipped] Merge changes I03522897,I938467ca,Ia5871919 into tm-dev am: b2e32466 am: b89cb6bb am: eecf84df -s ours am: f2fdde2b -s ours am: fa2a717c -s ours am: 461130a1 -s ours am skip reason: Merged-In I03522897e93af59508efa2f536dd217d48f78110 with SHA-1 8ecede4b is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/24640068 Change-Id: I0a28a28ef1adbdb9a8b0eb585aea7c15af6302ed Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-