Skip to content
Snippets Groups Projects
  1. Nov 08, 2022
    • William Escande's avatar
      Link AptX and AptXHD encoder into Bt · f74a2fe8
      William Escande authored
      Statically link the encoder lib in order to provide them into the apex
      Remove the apex external loading rule
      
      Bug: 226572369
      Test: manual testing
      Tag: #refactor
      Change-Id: I45adfe7ca51c304b8fc09ee30ce6e810bf9f0e3e
      f74a2fe8
  2. Sep 22, 2022
    • Rubin Xu's avatar
      Security logging for Bluetooth connection events · 0d03f92c
      Rubin Xu authored
      As required by NIAP certification, log various Bluetooth connection and
      disconnection events to security log.
      
      Bug: 232283779
      Test: manual
      Change-Id: Iff04258a7ca1c19deb1e692c30724f2491fd4ed6
      0d03f92c
  3. Sep 09, 2022
  4. Sep 08, 2022
  5. Aug 30, 2022
    • Abhishek Pandit-Subedi's avatar
      Remove set noparent from OWNERS · d9265978
      Abhishek Pandit-Subedi authored
      Downstream repos of Bluetooth get broken whenever "set noparent" are
      used.
      
      Bug: 244347299
      Tag: #floss
      Test: None (Owners change)
      Change-Id: Iadd47b7a754440f21a651131d94a4084eb12dd08
      d9265978
  6. Aug 27, 2022
  7. Aug 25, 2022
  8. Aug 22, 2022
  9. Jul 16, 2022
    • Paul Duffin's avatar
      Dedup *fragments information common to apex and sdk · 548f8846
      Paul Duffin authored
      Previously, both the sdk and apex had to specify the same *fragments
      property to ensure that building a system image from a prebuilt
      version of the module (both APEX and sdk snapshots) would work.
      
      This change avoids the duplication by adding the apex to the sdk which
      allows the sdk to automatically export any APIs and related information
      provided by the APEX. At the moment that just includes information from
      *fragments properties but may expand in future.
      
      Ignore-AOSP-First: sdk is not present in AOSP
      
      Bug: 232401814
      Test: # Build snapshots with a fixed build number
            BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh
            # Remove api diff files as they contain file stamps of generated files so
            # differ every time they are generated.
            find out/dist/mainline-sdks -name \*txt | xargs rm
            # Save the snapshots away.
            mv out/dist/mainline-sdks before-changes
            # Apply this change.
            # Repeat the first two steps above and then run the following to verify
            # that this change had no effect on the generated snapshot contents.
            meld before-changes out/dist/mainline-sdks
      Change-Id: I875b16f4deddda08295caaa97e00c7b01501566d
      548f8846
  10. Jul 11, 2022
    • Alexei Nicoara's avatar
      Setting apex version to the placeholder value · ceafd9f4
      Alexei Nicoara authored
      When the apex version is set to 0, the version number will be replaced by the build system to the default value for the current branch.
      The default value for mainline module manifest version is stored in the defaultManifestVersion constant: https://android.googlesource.com/platform/build/soong/+/refs/heads/master/apex/constants.go#36
      
      The version should not be changed manually in the manifest. Release tooling will set this version to the release version on the release branches.
      
      Test: presubmit
      Bug: 231691643
      Change-Id: I30b5b486bca521ebdeed17dba7afc61f2c529ab8
      Merged-In: I30b5b486bca521ebdeed17dba7afc61f2c529ab8
      Ignore-AOSP-First: fixing merge conflicts
      (cherry picked from commit 6173f6a3)
      Merged-In: I30b5b486bca521ebdeed17dba7afc61f2c529ab8
      ceafd9f4
  11. Jul 08, 2022
  12. Jul 07, 2022
  13. Jun 23, 2022
  14. Jun 22, 2022
    • William Escande's avatar
      Change Bluetooth apex mountpoint · 8e1ae018
      William Escande authored
      Apex name has been changed to com.android.btservices
      Changing mount point accordingly
      
      Bug: 235892590
      Test: Flash / boot bt / look logs & pair a device
      Ignore-AOSP-First: Apex only on tm-dev
      Change-Id: Id4e3410c00a9afd4c3c99af18c55e34bc89b4a30
      8e1ae018
    • William Escande's avatar
      Move version in apex_manifest · fa4d1e3b
      William Escande authored
      This is creating merge_conflict for wider incoming change.
      By moving the version to the top and adding emptyline comment in the
      json, we aim to facilitate the incoming topic to merge
      
      Bug: 235892590
      Ignore-AOSP-First: apex on internal only
      Test: Build + TH
      Merged-In: Ib198d65c7c653c6185120ec179f6c937b20ab51b
      Change-Id: Ib198d65c7c653c6185120ec179f6c937b20ab51b
      fa4d1e3b
  15. Jun 21, 2022
  16. Jun 17, 2022
    • Rahul Sabnis's avatar
      Remove the BT APK's dependency on the DUMP permission. · 0ac3961d
      Rahul Sabnis authored
      The permission enforcement was moved to the binder and therefore it is
      not required when dumpsys is directly invoked on the AdapterService
      
      Tag: #feature
      Bug: 232437658
      Test: Manual
      Ignore-AOSP-First: Missing some APEX-related files in AOSP
      Change-Id: Id39d7fdd9c1ee7e363d99458b0de6349a791d1af
      0ac3961d
  17. May 26, 2022
    • satayev's avatar
      Bump version codes in tm-dev to match tm-mainline-prod · a4b9dbeb
      satayev authored
      T FRC signals cannot be gathered from tm-frc-<module>-release branches
      and instead tm-release is being used. tm-release uses default source
      based version codes which are lower than prebuilts now. Bump them to
      allow installation on tm-release based system images.
      
      Bug: 233587299
      Test: presubmit
      Merged-In: Ibad07f10fe8c82b014cea0004f604c5854fdfde5
      Change-Id: I204c56d1194f6ea6f7cdcc8a5cbe59b875bef89f
      a4b9dbeb
  18. May 12, 2022
    • William Escande's avatar
      Load external library in the default namespace · 283a99ff
      William Escande authored
      Aptx and aptx-Hd are both loaded from system_ext.
      In order to load their dependencies from a compatible environement we
      need to set the lib as a requirredLibs in the manifest
      
      Fix: 231967310
      Test: atest net_test_stack_a2dp_native
      Test: Log analyze after bluetooth boot
      Tag: #refactor
      Ignore-AOSP-First: Apex only on tm and below
      Merged-In: I084536b137adde5754eb98d80012bc7fdad1af74
      Change-Id: I084536b137adde5754eb98d80012bc7fdad1af74
      283a99ff
  19. May 11, 2022
  20. Apr 29, 2022
  21. Apr 28, 2022
    • William Escande's avatar
      Include Bluetooth config files in APEX prebuilts · b247faa4
      William Escande authored
      * So that it is included in the apex directory and can be
        updated when loading a new APEX
      
      Bug: 230359868
      Test: adb install <apex>; and check the files on phone
      Tag: #refactor
      Ignore-AOSP-First: No apex on aosp
      Change-Id: I592190be9eea3d341bfcadd2ffbec2f9762509b6
      b247faa4
    • William Escande's avatar
      Merge bluetooth apex default in it's only usage · bb37c5a4
      William Escande authored
      This is to avoid confusion on witch value is apply, the one from default
      or the one from the apex or the one from the vendor override if any.
      
      Rules are:
      * module `apex` and module `apex_default` are merged (like in this CL)
      * module `override_apex` keep all existing values as long as the key is
        not repeated inside the `override_apex`. If it is, discard all change
        in the base apex (or its default)
      
      Bug: 230359868
      Test: adb install <apex>; and check the files on phone
      Tag: #refactor
      Ignore-AOSP-First: No apex on aosp
      Change-Id: Ie9adfc04dbe0920db8ce8d6aa756ca91a3101865
      bb37c5a4
  22. Apr 19, 2022
  23. Apr 14, 2022
  24. Apr 06, 2022
    • Andrei Onea's avatar
      Add allowlist for Bluetooth apk · f91afd6e
      Andrei Onea authored
      Bundle the allowlist for the Bluetooth apk-in-apex.
      
      Test: boots
      Bug: 220807590
      Change-Id: I855c0d8dce075c75166346b89a6023f0cd754c6a
      f91afd6e
  25. Mar 31, 2022
    • Paul Duffin's avatar
      Remove implementation details from bluetooth hidden api flags · 4f29e5f5
      Paul Duffin authored
      Ran the following to compute the set of split_packages and
      package_prefixes properties.
          m analyze_bcpf && analyze_bcpf --bcpf com.android.bluetooth-bootclasspath-fragment --fix
      
      Ignore-AOSP-First: com.android.bluetooth-bootclasspath-fragment is not present in AOSP.
      Bug: 194063708
      Test: m out/soong/hiddenapi/hiddenapi-flags.csv
      Change-Id: Icb1c8a6732971dfb35394c09cc8923dd37ab7207
      4f29e5f5
  26. Mar 25, 2022
  27. Mar 23, 2022
    • William Escande's avatar
      Add permission to load library from system_ext · 5b0b518c
      William Escande authored
      Bluetooth a2dp vendor codec are manage by the presence (or absence) of
      the corresponding `.so`. Since we moved as an apex, the `.so` cannot be
      found in the current directory.
      This CL try to load each `.so` from various location.
      This CL add the `/system_ext/${LIB}` to the list of permitted_paths, to
      allow dlopen of aptx & aptxHD library.
      We ensure we don't load a 32 lib in a 64 module thanks to the
      permitted_paths.
      
      Test: build + start bt and watch log
      Fix: 223532240
      Tag: #refactor
      Ignore-AOSP-First: No apex on aosp
      Change-Id: Ie1dd9877edc905230a4f6d05b991e26c9908f8c7
      5b0b518c
  28. Mar 14, 2022
    • Gurpreet Singh's avatar
      Using common apex_defaults for com.android.bluetooth module. · 35388400
      Gurpreet Singh authored
      In /packages/modules/common/sdk/ModuleDefaults.bp file, some
      apex_defaults are added to provide common parameters corresponding to
      Q, R, S, and T releases.
      (Refer to CL link for above mentioned change -
      https://android-review.googlesource.com/c/platform/packages/modules/common/+/2005890?forceReload=true)
      
      This CL is using the apex_default corresponding to T release for the
      com.google.android.bluetooth module.
      
      Note - currently the updatable field is overriden as false as multiple
      allowed_deps changes are required to set it true. For more info, a bug
      has been filed - b/223839432
      
      Bug: 172589606
      Test: USE_RBE=true m
      Since there are no runtime changes, successful code build is enough for
      testing.
      Ignore-AOSP-First: AOSP gives merge-conflict presubmit errors
      corresponding to tm-dev branch.
      
      Change-Id: Ieec62f971632cb57ba998b9d61ff25f669cfa8ef
      35388400
  29. Mar 12, 2022
    • William Escande's avatar
      Revert^2 "check check, is anyone there? *static*" · ae01e9b3
      William Escande authored
      check check, is anyone there? *static*
      
      * statically link libbluetooth into libbluetooth_jni
      * clean up some build rule defaults
      * statically link libchrome
      * stop using whole static libs, to increase ability to prune unused code
      * remove required libbluetooth
      * statically link libstatlog_bt in a few location
      
      :party:
      :party:
      
      Still some issue on local test. I suppose they should only be run in
      the test suite. Test are:
      * bluetooth-test-audio-hal-interface
      * bluetooth_flatbuffer_bundler_test
      * net_test_rfcomm_suite
      * net_test_stack_rfcomm
      
      Bug: 220805766
      Test: compile, verify BT boots & basic use cases work
      Testeted with all cc_test in packages/modules/Bluetooth:
      `atest $(grep -w cc_test -A 1 $(find packages/modules/Bluetooth -name Android.bp) | grep name | cut -d '"' -f 2)`
      Test: m bluetoothtbd
      Test: atest bluetoothtbd_test
      Test: m libstatslog_bt bt_headless libbluetooth_gd libbtif libbt-common bluetooth_stack_with_facade bluetooth_test_gd_unit bluetooth_gd_fuzz_test libbt_audio_hal_a2dp_encoding_fuzzer
      
      Ignore-AOSP-First: apex changes not in AOSP yet
      
      e634b3db
      
      Change-Id: I99ea709fe591ca362208547051d7fd5810ed42ed
      ae01e9b3
  30. Mar 10, 2022
    • Gurpreet Singh's avatar
      Using common apex_defaults for com.android.bluetooth module. · 95b895cf
      Gurpreet Singh authored
      In /packages/modules/common/sdk/ModuleDefaults.bp file, some
      apex_defaults are added to provide common parameters corresponding to
      Q, R, S, and T releases.
      (Refer to CL link for above mentioned change -
      https://android-review.googlesource.com/c/platform/packages/modules/common/+/2005890?forceReload=true)
      
      This CL is using the apex_default corresponding to T release for the
      com.google.android.bluetooth module.
      
      Bug: 172589606
      Test: USE_RBE=true m
      Since there are no runtime changes, successful code build is enough for
      testing.
      
      Merged-In: Ieec62f971632cb57ba998b9d61ff25f669cfa8ef
      Change-Id: Ieec62f971632cb57ba998b9d61ff25f669cfa8ef
      95b895cf
    • ahujapalash's avatar
      Updating min_sdk_version to Tiramisu · 5add3d54
      ahujapalash authored
      Ignore-AOSP-First: Updating it for apex which is on tm-dev
      Test: make a full build with m -j64
      Bug: 220216883
      Change-Id: I171d904e4b811cfd114be05e4329669e965a7599
      5add3d54
    • Richard Gaywood's avatar
      Revert "check check, is anyone there? *static*" · e634b3db
      Richard Gaywood authored
      Revert submission 17016040-change-17016040
      
      Reason for revert: DroidMonitor-triggered revert due to breakage , bug b/223737148
      BUG: 223737148
      Reverted Changes:
      I6cdcee15a:Fix bluetooth and aac dependency
      I0d232c8bc:check check, is anyone there? *static*
      
      Change-Id: I76a03e2b2d54e27e590a97001e9ef0ef6c98a374
      Test: N/A, this is a rollback
      e634b3db
  31. Mar 09, 2022
    • Zach Johnson's avatar
      check check, is anyone there? *static* · 81e644e9
      Zach Johnson authored
      * statically link libbluetooth into libbluetooth_jni
      * clean up some build rule defaults
      * statically link libchrome
      * stop using whole static libs, to increase ability to prune unused code
      
      :party:
      :party:
      
      Still some issue on local test. I suppose they should only be run in
      the test suite. Test are:
      * bluetooth-test-audio-hal-interface
      * bluetooth_flatbuffer_bundler_test
      * net_test_rfcomm_suite
      * net_test_stack_rfcomm
      
      Bug: 220805766
      Test: compile, verify BT boots & basic use cases work
      Testeted with all cc_test in packages/modules/Bluetooth:
      atest $(grep -w cc_test -A 1 $(find packages/modules/Bluetooth -name Android.bp) | grep name | cut -d '"' -f 2)
      Test: m bluetoothtbd
      Test: atest bluetoothtbd_test
      
      Ignore-AOSP-First: apex changes not in AOSP yet
      
      Change-Id: I0d232c8bcbe1f9065c6e6caa75021a6cd627c78f
      81e644e9
  32. Feb 25, 2022
    • Roopa Sattiraju's avatar
      Enabling Apex in BT · 1e7b3815
      Roopa Sattiraju authored
      Bug: 217736913
      Test: Compile, bringup and test user journeys
      Change-Id: Ie9a1abd52d6219bc91779f7146ab9734cf5df4c0
      1e7b3815
  33. Dec 15, 2021
  34. Feb 14, 2021
    • Bob Badour's avatar
      [LSC] Add LOCAL_LICENSE_KINDS to system/bt · 92ecf7c4
      Bob Badour authored
      Added SPDX-license-identifier-Apache-2.0 to:
        apex/Android.bp
        audio_a2dp_hw/Android.bp
        audio_bluetooth_hw/Android.bp
        audio_hal_interface/Android.bp
        audio_hearing_aid_hw/Android.bp
        binder/Android.bp
        bta/Android.bp
        btcore/Android.bp
        btif/Android.bp
        build/Android.bp
        common/Android.bp
        conf/Android.bp
        device/Android.bp
        embdrv/g722/fuzzer/Android.bp
        embdrv/sbc/Android.bp
        embdrv/sbc/decoder/Android.bp
        embdrv/sbc/encoder/Android.bp
        gd/att/Android.bp
        gd/common/Android.bp
        gd/dumpsys/Android.bp
        gd/dumpsys/bundler/Android.bp
        gd/fuzz/Android.bp
        gd/hal/Android.bp
        gd/hci/Android.bp
        gd/iso/Android.bp
        gd/l2cap/Android.bp
        gd/l2cap/fuzz/Android.bp
        gd/neighbor/Android.bp
        gd/os/Android.bp
        gd/packet/Android.bp
        gd/packet/parser/Android.bp
        gd/packet/parser/test/Android.bp
        gd/proto/Android.bp
        gd/rust/common/Android.bp
        gd/rust/facade/Android.bp
        gd/rust/gddi/Android.bp
        gd/rust/hal/Android.bp
        gd/rust/hci/Android.bp
        gd/rust/link/Android.bp
        gd/rust/main/Android.bp
        gd/rust/shim/Android.bp
        gd/security/Android.bp
        gd/security/channel/Android.bp
        gd/security/pairing/Android.bp
        gd/security/record/Android.bp
        gd/shim/Android.bp
        gd/storage/Android.bp
        hci/Android.bp
        include/Android.bp
        internal_include/Android.bp
        main/Android.bp
        main/shim/Android.bp
        osi/test/fuzzers/Android.bp
        osi/test/fuzzers/alarm/Android.bp
        osi/test/fuzzers/allocation_tracker/Android.bp
        osi/test/fuzzers/allocator/Android.bp
        osi/test/fuzzers/array/Android.bp
        osi/test/fuzzers/buffer/Android.bp
        osi/test/fuzzers/compat/Android.bp
        osi/test/fuzzers/fixed_queue/Android.bp
        osi/test/fuzzers/future/Android.bp
        osi/test/fuzzers/list/Android.bp
        osi/test/fuzzers/ringbuffer/Android.bp
        packet/Android.bp
        packet/avrcp/Android.bp
        packet/base/Android.bp
        packet/tests/fuzzers/Android.bp
        profile/avrcp/Android.bp
        profile/sdp/Android.bp
        service/Android.bp
        service/common/Android.bp
        stack/test/fuzzers/Android.bp
        stack/test/fuzzers/a2dp/Android.bp
        stack/test/fuzzers/a2dp/codec/Android.bp
        stack/test/fuzzers/sdp/Android.bp
        test/Android.bp
        test/headless/Android.bp
        test/rootcanal/Android.bp
        test/suite/Android.bp
        types/Android.bp
        udrv/Android.bp
        utils/Android.bp
        vendor_libs/Android.bp
        vendor_libs/linux/Android.bp
        vendor_libs/linux/interface/Android.bp
        vendor_libs/test_vendor_lib/Android.bp
        vendor_libs/test_vendor_lib/types/Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
        gd/Android.bp
        gd/crypto_toolbox/Android.bp
        stack/Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
          SPDX-license-identifier-MIT legacy_unencumbered
      to:
        Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
          legacy_unencumbered
      to:
        embdrv/g722/Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
      to:
        osi/Android.bp
      
      Bug: 68860345
      Bug: 151177513
      Bug: 151953481
      
      Test: m all
      
      Exempt-From-Owner-Approval: janitorial work
      Change-Id: I883bd6b68223a5bc77fdac89e0280993f617d6d0
      92ecf7c4
  35. Dec 09, 2020
  36. Dec 04, 2020
Loading