You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.2 KiB
89 lines
2.2 KiB
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "packages_modules_adb_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["packages_modules_adb_license"],
|
|
}
|
|
|
|
apex_defaults {
|
|
name: "com.android.adbd-defaults",
|
|
updatable: true,
|
|
|
|
binaries: ["adbd"],
|
|
compile_multilib: "both",
|
|
multilib: {
|
|
both: {
|
|
native_shared_libs: [
|
|
"libadb_pairing_auth",
|
|
"libadb_pairing_connection",
|
|
"libadb_pairing_server",
|
|
"libadbconnection_client",
|
|
],
|
|
},
|
|
},
|
|
prebuilts: ["com.android.adbd.init.rc"],
|
|
|
|
manifest: "apex_manifest.json",
|
|
key: "com.android.adbd.key",
|
|
certificate: ":com.android.adbd.certificate",
|
|
compressible: true,
|
|
}
|
|
|
|
soong_config_module_type_import {
|
|
from: "system/apex/Android.bp",
|
|
module_types: ["library_linking_strategy_apex_defaults"],
|
|
}
|
|
|
|
// TODO(b/178585590): delete after testing linking strategy
|
|
library_linking_strategy_apex_defaults {
|
|
name: "adbd_manifest_defaults",
|
|
soong_config_variables: {
|
|
library_linking_strategy: {
|
|
prefer_static: {
|
|
min_sdk_version: "30",
|
|
},
|
|
conditions_default: {
|
|
min_sdk_version: "current",
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
apex {
|
|
name: "com.android.adbd",
|
|
defaults: [
|
|
"com.android.adbd-defaults",
|
|
"adbd_manifest_defaults",
|
|
],
|
|
}
|
|
|
|
// adbd apex with INT_MAX version code, to allow for upgrade/rollback testing.
|
|
apex_test {
|
|
name: "test_com.android.adbd",
|
|
defaults: ["com.android.adbd-defaults"],
|
|
manifest: "test_apex_manifest.json",
|
|
min_sdk_version: "30",
|
|
file_contexts: ":com.android.adbd-file_contexts",
|
|
installable: false,
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "com.android.adbd.init.rc",
|
|
src: "adbd.rc",
|
|
filename: "init.rc",
|
|
installable: false,
|
|
}
|
|
|
|
apex_key {
|
|
name: "com.android.adbd.key",
|
|
public_key: "com.android.adbd.avbpubkey",
|
|
private_key: "com.android.adbd.pem",
|
|
}
|
|
|
|
android_app_certificate {
|
|
name: "com.android.adbd.certificate",
|
|
certificate: "com.android.adbd",
|
|
}
|