blob: 4588d237daca6d1bd93547b6da080905199f1cf1 [file] [log] [blame]
Bob Badour4a6774b2021-02-12 19:46:09 -08001package {
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 "packages_modules_adb_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["packages_modules_adb_license"],
8}
9
Josh Gao9553de62020-01-21 13:32:16 -080010apex_defaults {
11 name: "com.android.adbd-defaults",
Gurpreet Singh061ba792022-03-02 18:23:03 +000012 defaults: ["r-launched-apex-module"],
Josh Gao9553de62020-01-21 13:32:16 -080013
14 binaries: ["adbd"],
Josh Gaobf5a9362020-01-22 17:58:03 -080015 compile_multilib: "both",
16 multilib: {
17 both: {
Joshua Duong47882022020-02-09 22:50:19 -080018 native_shared_libs: [
19 "libadb_pairing_auth",
20 "libadb_pairing_connection",
21 "libadb_pairing_server",
22 "libadbconnection_client",
23 ],
Josh Gaobf5a9362020-01-22 17:58:03 -080024 },
25 },
Kiyoung Kim03134db2020-02-20 15:59:26 +090026 prebuilts: ["com.android.adbd.init.rc"],
Josh Gao9553de62020-01-21 13:32:16 -080027
Liz Kammer4e9d6432021-05-13 12:52:15 -040028 manifest: "apex_manifest.json",
Josh Gao9553de62020-01-21 13:32:16 -080029 key: "com.android.adbd.key",
30 certificate: ":com.android.adbd.certificate",
Samiul Islambb5b6012021-06-24 12:14:42 +010031 compressible: true,
Josh Gao9553de62020-01-21 13:32:16 -080032}
33
Liz Kammer6836b052021-01-22 13:39:03 -050034soong_config_module_type_import {
35 from: "system/apex/Android.bp",
36 module_types: ["library_linking_strategy_apex_defaults"],
37}
38
Liz Kammer6836b052021-01-22 13:39:03 -050039library_linking_strategy_apex_defaults {
40 name: "adbd_manifest_defaults",
41 soong_config_variables: {
42 library_linking_strategy: {
43 prefer_static: {
Liz Kammer02923f92021-03-10 15:39:01 -050044 min_sdk_version: "30",
Liz Kammer6836b052021-01-22 13:39:03 -050045 },
46 conditions_default: {
Liz Kammer02923f92021-03-10 15:39:01 -050047 min_sdk_version: "current",
Liz Kammer6836b052021-01-22 13:39:03 -050048 },
49 },
50 },
51}
52
Josh Gao9553de62020-01-21 13:32:16 -080053apex {
54 name: "com.android.adbd",
Liz Kammer6836b052021-01-22 13:39:03 -050055 defaults: [
56 "com.android.adbd-defaults",
57 "adbd_manifest_defaults",
58 ],
59}
60
Josh Gao9553de62020-01-21 13:32:16 -080061// adbd apex with INT_MAX version code, to allow for upgrade/rollback testing.
Jiyong Parke830e9f2020-02-05 18:44:10 +090062apex_test {
Josh Gao9553de62020-01-21 13:32:16 -080063 name: "test_com.android.adbd",
64 defaults: ["com.android.adbd-defaults"],
65 manifest: "test_apex_manifest.json",
66 file_contexts: ":com.android.adbd-file_contexts",
67 installable: false,
68}
69
70prebuilt_etc {
Josh Gao9553de62020-01-21 13:32:16 -080071 name: "com.android.adbd.init.rc",
72 src: "adbd.rc",
73 filename: "init.rc",
74 installable: false,
75}
76
77apex_key {
78 name: "com.android.adbd.key",
79 public_key: "com.android.adbd.avbpubkey",
80 private_key: "com.android.adbd.pem",
81}
82
83android_app_certificate {
84 name: "com.android.adbd.certificate",
85 certificate: "com.android.adbd",
86}