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 (legacy, do not use). |
| 17 | // TODO: Remove |
William Escande | bb37c5a | 2022-04-28 13:37:11 -0700 | [diff] [blame] | 18 | apex { |
| 19 | name: "com.android.bluetooth", |
| 20 | defaults: ["t-launched-apex-module"], |
| 21 | manifest: "apex_manifest.json", |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 22 | bootclasspath_fragments: ["com.android.btservices-bootclasspath-fragment"], |
| 23 | systemserverclasspath_fragments: ["com.android.btservices-systemserverclasspath-fragment"], |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 24 | apps: ["Bluetooth"], |
| 25 | |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 26 | multilib: { |
| 27 | first: { |
| 28 | // Extractor process runs only with the primary ABI. |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 29 | jni_libs: [ |
| 30 | "libbluetooth_jni", |
| 31 | ], |
| 32 | }, |
| 33 | }, |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 34 | |
William Escande | 5b0b518 | 2022-03-19 01:36:07 +0100 | [diff] [blame] | 35 | prebuilts: [ |
William Escande | b247faa | 2022-04-28 13:48:25 -0700 | [diff] [blame] | 36 | "audio_set_configurations_bfbs", |
| 37 | "audio_set_configurations_json", |
| 38 | "audio_set_scenarios_bfbs", |
| 39 | "audio_set_scenarios_json", |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 40 | "btservices-linker-config", |
William Escande | b247faa | 2022-04-28 13:48:25 -0700 | [diff] [blame] | 41 | "bt_did.conf", |
| 42 | "bt_stack.conf", |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 43 | "privapp_allowlist_com.android.bluetooth.xml", |
William Escande | 5b0b518 | 2022-03-19 01:36:07 +0100 | [diff] [blame] | 44 | ], |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 45 | key: "com.android.btservices.key", |
| 46 | certificate: ":com.android.btservices.certificate", |
| 47 | updatable: false, |
| 48 | compressible: false, |
| 49 | } |
William Escande | bb37c5a | 2022-04-28 13:37:11 -0700 | [diff] [blame] | 50 | |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 51 | // Mainline bluetooth apex module. |
| 52 | apex { |
| 53 | name: "com.android.btservices", |
| 54 | defaults: ["t-launched-apex-module"], |
| 55 | manifest: "apex_manifest.json", |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 56 | bootclasspath_fragments: ["com.android.btservices-bootclasspath-fragment"], |
| 57 | systemserverclasspath_fragments: ["com.android.btservices-systemserverclasspath-fragment"], |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 58 | apps: ["Bluetooth"], |
| 59 | |
| 60 | multilib: { |
| 61 | first: { |
| 62 | // Extractor process runs only with the primary ABI. |
| 63 | jni_libs: [ |
| 64 | "libbluetooth_jni", |
| 65 | ], |
| 66 | }, |
| 67 | }, |
| 68 | |
| 69 | prebuilts: [ |
| 70 | "audio_set_configurations_bfbs", |
| 71 | "audio_set_configurations_json", |
| 72 | "audio_set_scenarios_bfbs", |
| 73 | "audio_set_scenarios_json", |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 74 | "btservices-linker-config", |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 75 | "bt_did.conf", |
| 76 | "bt_stack.conf", |
| 77 | "privapp_allowlist_com.android.bluetooth.xml", |
| 78 | ], |
| 79 | key: "com.android.btservices.key", |
| 80 | certificate: ":com.android.btservices.certificate", |
| 81 | updatable: false, |
| 82 | compressible: false, |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 83 | } |
| 84 | |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 85 | apex_key { |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 86 | name: "com.android.btservices.key", |
| 87 | public_key: "com.android.btservices.avbpubkey", |
| 88 | private_key: "com.android.btservices.pem", |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 89 | } |
| 90 | |
| 91 | android_app_certificate { |
Oriol Prieto Gasco | ecb4b3a | 2022-06-17 18:31:43 +0000 | [diff] [blame] | 92 | name: "com.android.btservices.certificate", |
| 93 | certificate: "com.android.btservices", |
Zach Johnson | 7f1c87e | 2019-11-09 18:24:47 -0800 | [diff] [blame] | 94 | } |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 95 | |
| 96 | sdk { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 97 | name: "btservices-module-sdk", |
| 98 | bootclasspath_fragments: ["com.android.btservices-bootclasspath-fragment"], |
| 99 | systemserverclasspath_fragments: ["com.android.btservices-systemserverclasspath-fragment"], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | // Encapsulate the contributions made by the com.android.bluetooth to the bootclasspath. |
| 103 | bootclasspath_fragment { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 104 | name: "com.android.btservices-bootclasspath-fragment", |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 105 | contents: ["framework-bluetooth"], |
| 106 | apex_available: ["com.android.bluetooth"], |
| 107 | |
| 108 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 109 | fragments: [ |
| 110 | { |
| 111 | apex: "com.android.art", |
| 112 | module: "art-bootclasspath-fragment", |
| 113 | }, |
| 114 | ], |
| 115 | |
| 116 | // Additional stubs libraries that this fragment's contents use which are |
| 117 | // not provided by another bootclasspath_fragment. |
| 118 | additional_stubs: [ |
| 119 | "android-non-updatable", |
| 120 | ], |
| 121 | |
| 122 | // Additional hidden API flag files to override the defaults. This must only be |
| 123 | // modified by the Soong or platform compat team. |
| 124 | hidden_api: { |
| 125 | max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], |
| 126 | max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"], |
| 127 | unsupported: ["hiddenapi/hiddenapi-unsupported.txt"], |
Paul Duffin | 4f29e5f | 2022-03-31 12:46:11 +0000 | [diff] [blame] | 128 | |
| 129 | // The following packages contain classes from other modules on the |
| 130 | // bootclasspath. That means that the hidden API flags for this module |
| 131 | // has to explicitly list every single class this module provides in |
| 132 | // that package to differentiate them from the classes provided by other |
| 133 | // modules. That can include private classes that are not part of the |
| 134 | // API. |
| 135 | split_packages: [ |
| 136 | "android.bluetooth", |
| 137 | ], |
| 138 | |
| 139 | // The following packages and all their subpackages currently only |
| 140 | // contain classes from this bootclasspath_fragment. Listing a package |
| 141 | // here won't prevent other bootclasspath modules from adding classes in |
| 142 | // any of those packages but it will prevent them from adding those |
| 143 | // classes into an API surface, e.g. public, system, etc.. Doing so will |
| 144 | // result in a build failure due to inconsistent flags. |
| 145 | package_prefixes: [ |
| 146 | "android.bluetooth.le", |
| 147 | "com.android.bluetooth", |
| 148 | ], |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 149 | }, |
| 150 | |
| 151 | } |
| 152 | |
| 153 | systemserverclasspath_fragment { |
William Escande | 8e1ae01 | 2022-06-22 13:13:42 -0700 | [diff] [blame^] | 154 | name: "com.android.btservices-systemserverclasspath-fragment", |
Roopa Sattiraju | 1e7b381 | 2022-02-03 09:13:02 -0800 | [diff] [blame] | 155 | standalone_contents: ["service-bluetooth"], |
| 156 | apex_available: ["com.android.bluetooth"], |
| 157 | } |