blob: e018565039cd19be6840edfb45bfaea7c9ecd0e9 [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",
Jiyong Park52315052020-02-24 18:39:23 +090012 updatable: true,
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 Kammer040fb932021-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 Islama9822c02021-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
39// TODO(b/178585590): delete after testing linking strategy
40library_linking_strategy_apex_defaults {
41 name: "adbd_manifest_defaults",
42 soong_config_variables: {
43 library_linking_strategy: {
44 prefer_static: {
Liz Kammer02923f92021-03-10 15:39:01 -050045 min_sdk_version: "30",
Liz Kammer6836b052021-01-22 13:39:03 -050046 },
47 conditions_default: {
Liz Kammer02923f92021-03-10 15:39:01 -050048 min_sdk_version: "current",
Liz Kammer6836b052021-01-22 13:39:03 -050049 },
50 },
51 },
52}
53
Josh Gao9553de62020-01-21 13:32:16 -080054apex {
55 name: "com.android.adbd",
Liz Kammer6836b052021-01-22 13:39:03 -050056 defaults: [
57 "com.android.adbd-defaults",
58 "adbd_manifest_defaults",
59 ],
60}
61
Josh Gao9553de62020-01-21 13:32:16 -080062// adbd apex with INT_MAX version code, to allow for upgrade/rollback testing.
Jiyong Parke830e9f2020-02-05 18:44:10 +090063apex_test {
Josh Gao9553de62020-01-21 13:32:16 -080064 name: "test_com.android.adbd",
65 defaults: ["com.android.adbd-defaults"],
66 manifest: "test_apex_manifest.json",
Liz Kammer7e6ce492021-06-18 17:49:27 +000067 min_sdk_version: "30",
Josh Gao9553de62020-01-21 13:32:16 -080068 file_contexts: ":com.android.adbd-file_contexts",
69 installable: false,
70}
71
72prebuilt_etc {
Josh Gao9553de62020-01-21 13:32:16 -080073 name: "com.android.adbd.init.rc",
74 src: "adbd.rc",
75 filename: "init.rc",
76 installable: false,
77}
78
79apex_key {
80 name: "com.android.adbd.key",
81 public_key: "com.android.adbd.avbpubkey",
82 private_key: "com.android.adbd.pem",
83}
84
85android_app_certificate {
86 name: "com.android.adbd.certificate",
87 certificate: "com.android.adbd",
88}