1package {
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
10apex_defaults {
11    name: "com.android.adbd-defaults",
12
13    defaults: ["r-launched-dcla-enabled-apex-module"],
14
15    binaries: ["adbd"],
16    compile_multilib: "both",
17    multilib: {
18        both: {
19            native_shared_libs: [
20                "libadb_pairing_auth",
21                "libadb_pairing_connection",
22                "libadb_pairing_server",
23                "libadbconnection_client",
24            ],
25        },
26    },
27    prebuilts: ["com.android.adbd.init.rc"],
28
29    manifest: "apex_manifest.json",
30    key: "com.android.adbd.key",
31    certificate: ":com.android.adbd.certificate",
32    compressible: true,
33}
34
35apex {
36    name: "com.android.adbd",
37    defaults: [
38        "com.android.adbd-defaults",
39    ],
40}
41
42// adbd apex with INT_MAX version code, to allow for upgrade/rollback testing.
43apex_test {
44    name: "test_com.android.adbd",
45    defaults: ["com.android.adbd-defaults"],
46    manifest: "test_apex_manifest.json",
47    file_contexts: ":com.android.adbd-file_contexts",
48    installable: false,
49}
50
51prebuilt_etc {
52    name: "com.android.adbd.init.rc",
53    src: "adbd.rc",
54    filename: "init.rc",
55    installable: false,
56}
57
58apex_key {
59    name: "com.android.adbd.key",
60    public_key: "com.android.adbd.avbpubkey",
61    private_key: "com.android.adbd.pem",
62}
63
64android_app_certificate {
65    name: "com.android.adbd.certificate",
66    certificate: "com.android.adbd",
67}
68