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