1// Runtime (Bionic) APEX module
2//
3// In Q this contained Bionic, ART and Libcore.
4// It keeps the name /apex/com.android.runtime for app compat reasons.
5
6package {
7    default_applicable_licenses: ["bionic_apex_license"],
8}
9
10license {
11    name: "bionic_apex_license",
12    visibility: [":__subpackages__"],
13    license_kinds: [
14        "SPDX-license-identifier-Apache-2.0",
15    ],
16    license_text: [
17        "NOTICE",
18    ],
19}
20
21android_app_certificate {
22    name: "com.android.runtime.certificate",
23    certificate: "com.android.runtime",
24}
25
26apex_key {
27    name: "com.android.runtime.key",
28    public_key: "com.android.runtime.avbpubkey",
29    private_key: "com.android.runtime.pem",
30}
31
32apex {
33    name: "com.android.runtime",
34    compile_multilib: "both",
35    manifest: "manifest.json",
36    native_shared_libs: [
37        "libc",
38        "libm",
39        "libdl",
40        "libdl_android",
41        "libc_malloc_debug",
42        "libc_malloc_hooks",
43    ],
44    binaries: [
45        "linkerconfig",
46    ],
47    multilib: {
48        both: {
49            binaries: [
50                "crash_dump",
51                "linker",
52            ],
53        },
54    },
55    key: "com.android.runtime.key",
56    certificate: ":com.android.runtime.certificate",
57    prebuilts: [
58        "bionic-linker-config",
59    ],
60    updatable: false,
61    generate_hashtree: false,
62}
63
64sdk {
65    name: "runtime-module-sdk",
66    defaults: ["linux_bionic_supported"],
67
68    native_header_libs: [
69        "bionic_libc_platform_headers",
70        "libc_headers",
71    ],
72    native_shared_libs: [
73        "libc",
74        "libdl",
75        "libdl_android",
76        "libm",
77    ],
78    native_static_libs: [
79        "libasync_safe",
80        "note_memtag_heap_async",
81        "note_memtag_heap_sync",
82    ],
83    native_objects: [
84        "crtbegin_dynamic",
85        "crtbegin_so",
86        "crtend_android",
87        "crtend_so",
88    ],
89}
90
91module_exports {
92    name: "runtime-module-host-exports",
93    host_supported: true,
94    device_supported: false,
95    compile_multilib: "64",
96
97    native_binaries: ["linkerconfig"],
98    target: {
99        linux_bionic: {
100            native_binaries: ["linker"],
101        },
102    },
103}
104
105linker_config {
106    name: "bionic-linker-config",
107    src: "linker.config.json",
108    installable: false,
109}
110