blob: a44cd43d4d634a9b560fe0690605871f7383484d [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_bt_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_bt_license"],
}
apex_defaults {
name: "com.android.bluetooth-defaults",
bootclasspath_fragments: ["com.android.bluetooth-bootclasspath-fragment"],
systemserverclasspath_fragments: ["com.android.bluetooth-systemserverclasspath-fragment"],
apps: ["Bluetooth"],
multilib: {
first: {
// Extractor process runs only with the primary ABI.
jni_libs: [
"libbluetooth_jni",
],
},
},
prebuilts: [
"bluetooth-linker-config",
],
key: "com.android.bluetooth.key",
certificate: ":com.android.bluetooth.certificate",
defaults: ["t-launched-apex-module"],
updatable: true,
// Indicates that pre-installed version of this apex can be compressed.
// Whether it actually will be compressed is controlled on per-device basis.
compressible: true,
}
linker_config {
name: "bluetooth-linker-config",
src: "linker.config.json",
installable: false,
}
//Mainline bluetooth apex module.
apex {
name: "com.android.bluetooth",
defaults: ["com.android.bluetooth-defaults"],
manifest: "apex_manifest.json",
prebuilts: ["privapp_allowlist_com.android.bluetooth.services.xml"],
}
apex_key {
name: "com.android.bluetooth.key",
public_key: "com.android.bluetooth.avbpubkey",
private_key: "com.android.bluetooth.pem",
}
android_app_certificate {
name: "com.android.bluetooth.certificate",
certificate: "com.android.bluetooth",
}
sdk {
name: "bluetooth-module-sdk",
bootclasspath_fragments: ["com.android.bluetooth-bootclasspath-fragment"],
systemserverclasspath_fragments: ["com.android.bluetooth-systemserverclasspath-fragment"],
}
// Encapsulate the contributions made by the com.android.bluetooth to the bootclasspath.
bootclasspath_fragment {
name: "com.android.bluetooth-bootclasspath-fragment",
contents: ["framework-bluetooth"],
apex_available: ["com.android.bluetooth"],
// The bootclasspath_fragments that provide APIs on which this depends.
fragments: [
{
apex: "com.android.art",
module: "art-bootclasspath-fragment",
},
],
// Additional stubs libraries that this fragment's contents use which are
// not provided by another bootclasspath_fragment.
additional_stubs: [
"android-non-updatable",
],
// Additional hidden API flag files to override the defaults. This must only be
// modified by the Soong or platform compat team.
hidden_api: {
max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"],
unsupported: ["hiddenapi/hiddenapi-unsupported.txt"],
},
}
systemserverclasspath_fragment {
name: "com.android.bluetooth-systemserverclasspath-fragment",
standalone_contents: ["service-bluetooth"],
apex_available: ["com.android.bluetooth"],
}