Bob Badour | 92ecf7c | 2021-02-12 18:05:29 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "system_bt_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["system_bt_license"], |
| 8 | } |
| 9 | |
William Escande | bb37c5a | 2022-04-28 13:37:11 -0700 | [diff] [blame] | 10 | linker_config { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame] | 11 | name: "btservices-linker-config", |
William Escande | bb37c5a | 2022-04-28 13:37:11 -0700 | [diff] [blame] | 12 | src: "linker.config.json", |
| 13 | installable: false, |
| 14 | } |
| 15 | |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 16 | // Mainline bluetooth apex module. |
| 17 | apex { |
| 18 | name: "com.android.btservices", |
| 19 | defaults: ["t-launched-apex-module"], |
| 20 | manifest: "apex_manifest.json", |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame] | 21 | bootclasspath_fragments: ["com.android.btservices-bootclasspath-fragment"], |
| 22 | systemserverclasspath_fragments: ["com.android.btservices-systemserverclasspath-fragment"], |
Hui Peng | a185069 | 2023-01-17 09:08:12 +0000 | [diff] [blame] | 23 | compat_configs: [ |
| 24 | "bluetooth-compat-config", |
David Duarte | 974b0e5 | 2023-03-29 20:46:09 +0000 | [diff] [blame] | 25 | "bluetoothapk-platform-compat-config", |
William Escande | 3525540 | 2023-04-07 05:46:23 -0700 | [diff] [blame] | 26 | "framework-bluetooth-compat-config", |
Hui Peng | a185069 | 2023-01-17 09:08:12 +0000 | [diff] [blame] | 27 | ], |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 28 | apps: ["Bluetooth"], |
| 29 | |
| 30 | multilib: { |
| 31 | first: { |
| 32 | // Extractor process runs only with the primary ABI. |
| 33 | jni_libs: [ |
| 34 | "libbluetooth_jni", |
| 35 | ], |
| 36 | }, |
| 37 | }, |
| 38 | |
| 39 | prebuilts: [ |
| 40 | "audio_set_configurations_bfbs", |
| 41 | "audio_set_configurations_json", |
| 42 | "audio_set_scenarios_bfbs", |
| 43 | "audio_set_scenarios_json", |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 44 | "bt_did.conf", |
| 45 | "bt_stack.conf", |
William Escande | 3525540 | 2023-04-07 05:46:23 -0700 | [diff] [blame] | 46 | "btservices-linker-config", |
Nitin Shivpure | c935977 | 2022-10-25 20:32:35 +0530 | [diff] [blame] | 47 | "interop_database.conf", |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 48 | ], |
| 49 | key: "com.android.btservices.key", |
| 50 | certificate: ":com.android.btservices.certificate", |
David Duarte | 44b7d99 | 2023-03-29 18:27:45 +0000 | [diff] [blame] | 51 | updatable: true, |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 52 | compressible: false, |
Jeongik Cha | 9e1513c | 2024-03-12 19:35:13 +0900 | [diff] [blame] | 53 | visibility: ["//packages/modules/common/build"], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 54 | } |
| 55 | |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 56 | apex_key { |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 57 | name: "com.android.btservices.key", |
| 58 | public_key: "com.android.btservices.avbpubkey", |
| 59 | private_key: "com.android.btservices.pem", |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | android_app_certificate { |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 63 | name: "com.android.btservices.certificate", |
| 64 | certificate: "com.android.btservices", |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 65 | } |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 66 | |
| 67 | sdk { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame] | 68 | name: "btservices-module-sdk", |
Paul Duffin | 548f884 | 2022-07-16 01:12:36 +0000 | [diff] [blame] | 69 | apexes: [ |
| 70 | // Adds exportable dependencies of the APEX to the sdk, |
| 71 | // e.g. *classpath_fragments. |
| 72 | "com.android.btservices", |
| 73 | ], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | // Encapsulate the contributions made by the com.android.bluetooth to the bootclasspath. |
| 77 | bootclasspath_fragment { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame] | 78 | name: "com.android.btservices-bootclasspath-fragment", |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 79 | contents: ["framework-bluetooth"], |
William Escande | 64949f0 | 2022-08-22 11:27:59 -0700 | [diff] [blame] | 80 | apex_available: ["com.android.btservices"], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 81 | |
| 82 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 83 | fragments: [ |
| 84 | { |
| 85 | apex: "com.android.art", |
| 86 | module: "art-bootclasspath-fragment", |
| 87 | }, |
| 88 | ], |
| 89 | |
| 90 | // Additional stubs libraries that this fragment's contents use which are |
| 91 | // not provided by another bootclasspath_fragment. |
| 92 | additional_stubs: [ |
| 93 | "android-non-updatable", |
| 94 | ], |
| 95 | |
| 96 | // Additional hidden API flag files to override the defaults. This must only be |
| 97 | // modified by the Soong or platform compat team. |
| 98 | hidden_api: { |
| 99 | max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], |
| 100 | max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"], |
| 101 | unsupported: ["hiddenapi/hiddenapi-unsupported.txt"], |
Paul Duffin | 4f29e5f | 2022-03-31 12:46:11 +0000 | [diff] [blame] | 102 | |
| 103 | // The following packages contain classes from other modules on the |
| 104 | // bootclasspath. That means that the hidden API flags for this module |
| 105 | // has to explicitly list every single class this module provides in |
| 106 | // that package to differentiate them from the classes provided by other |
| 107 | // modules. That can include private classes that are not part of the |
| 108 | // API. |
| 109 | split_packages: [ |
| 110 | "android.bluetooth", |
| 111 | ], |
| 112 | |
| 113 | // The following packages and all their subpackages currently only |
| 114 | // contain classes from this bootclasspath_fragment. Listing a package |
| 115 | // here won't prevent other bootclasspath modules from adding classes in |
| 116 | // any of those packages but it will prevent them from adding those |
| 117 | // classes into an API surface, e.g. public, system, etc.. Doing so will |
| 118 | // result in a build failure due to inconsistent flags. |
| 119 | package_prefixes: [ |
| 120 | "android.bluetooth.le", |
| 121 | "com.android.bluetooth", |
| 122 | ], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 123 | }, |
| 124 | |
| 125 | } |
| 126 | |
| 127 | systemserverclasspath_fragment { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame] | 128 | name: "com.android.btservices-systemserverclasspath-fragment", |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 129 | standalone_contents: ["service-bluetooth"], |
William Escande | 64949f0 | 2022-08-22 11:27:59 -0700 | [diff] [blame] | 130 | apex_available: ["com.android.btservices"], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 131 | } |