blob: 1d89059890b7b67723b7c0dd64a7b5666cf3fa6b [file] [log] [blame]
Jiyong Park9b8253b2021-06-28 18:37:26 +09001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Alan Stokes5c1d9c02022-09-01 11:10:32 +01005// Defines our permissions
6android_app {
7 name: "android.system.virtualmachine.res",
8 installable: true,
9 apex_available: ["com.android.virt"],
Alan Stokes97a2bfe2022-10-24 12:02:35 +010010 platform_apis: true,
Alan Stokes5c1d9c02022-09-01 11:10:32 +010011}
12
Jiyong Park9b8253b2021-06-28 18:37:26 +090013java_sdk_library {
Nikita Ioffef28eec22022-10-18 23:17:34 +010014 name: "framework-virtualization",
15 installable: false,
Jiyong Park9b8253b2021-06-28 18:37:26 +090016 compile_dex: true,
17
Nikita Ioffef28eec22022-10-18 23:17:34 +010018 shared_library: false,
19
20 // TODO(b/243512044): use framework-module-defaults
21
22 dist_group: "android",
23
Alan Stokes5c1d9c02022-09-01 11:10:32 +010024 jarjar_rules: "jarjar-rules.txt",
25
Jiyong Park9b8253b2021-06-28 18:37:26 +090026 srcs: ["src/**/*.java"],
27 static_libs: [
28 "android.system.virtualizationservice-java",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010029 // For android.sysprop.HypervisorProperties
30 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090031 ],
32
33 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010034
Jiyong Park9b8253b2021-06-28 18:37:26 +090035 permitted_packages: [
36 "android.system.virtualmachine",
37 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010038 // android.sysprop.*, renamed by jarjar
39 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090040 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000041 errorprone: {
42 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
43 enabled: true,
44 javacflags: [
45 "-Xep:GuardedBy:ERROR",
46 ],
47 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010048
49 // Temporary workaround, will be removed in a follow-up child cl.
50 unsafe_ignore_missing_latest_api: true,
Alan Stokes34f06882022-08-17 11:38:24 +010051}
52
53prebuilt_apis {
54 name: "android-virtualization-framework-sdk",
55 api_dirs: ["32"],
Jiyong Park9b8253b2021-06-28 18:37:26 +090056}