blob: 04ed273e0141afdee816c4667f914468b19c2ab5 [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 Ioffe30b50e62022-11-15 11:27:45 +000018 // TODO(b/243512044): introduce non-updatable-framework-module-defaults
19
20 defaults: ["framework-module-defaults"],
21
Nikita Ioffef28eec22022-10-18 23:17:34 +010022 shared_library: false,
23
Nikita Ioffe30b50e62022-11-15 11:27:45 +000024 default_to_stubs: false,
Nikita Ioffef28eec22022-10-18 23:17:34 +010025
26 dist_group: "android",
27
Alan Stokes5c1d9c02022-09-01 11:10:32 +010028 jarjar_rules: "jarjar-rules.txt",
29
Jiyong Park9b8253b2021-06-28 18:37:26 +090030 srcs: ["src/**/*.java"],
31 static_libs: [
32 "android.system.virtualizationservice-java",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010033 // For android.sysprop.HypervisorProperties
34 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090035 ],
36
37 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010038
Jiyong Park9b8253b2021-06-28 18:37:26 +090039 permitted_packages: [
40 "android.system.virtualmachine",
41 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010042 // android.sysprop.*, renamed by jarjar
43 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090044 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000045 errorprone: {
46 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
47 enabled: true,
48 javacflags: [
49 "-Xep:GuardedBy:ERROR",
50 ],
51 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010052
Nikita Ioffe30b50e62022-11-15 11:27:45 +000053 public: {
54 enabled: true,
55 sdk_version: "module_current",
56 },
57
58 system: {
59 enabled: true,
60 sdk_version: "module_current",
61 },
62
63 module_lib: {
64 enabled: true,
65 sdk_version: "module_current",
66 },
67
68 test: {
69 enabled: true,
70 sdk_version: "module_current",
71 },
72
73 sdk_version: "core_platform",
74 platform_apis: true,
75 impl_only_libs: [
76 "framework",
77 ],
78 impl_library_visibility: [
79 "//frameworks/base",
80 ],
81
Nikita Ioffef28eec22022-10-18 23:17:34 +010082 // Temporary workaround, will be removed in a follow-up child cl.
83 unsafe_ignore_missing_latest_api: true,
Alan Stokes34f06882022-08-17 11:38:24 +010084}
85
86prebuilt_apis {
87 name: "android-virtualization-framework-sdk",
88 api_dirs: ["32"],
Jiyong Park9b8253b2021-06-28 18:37:26 +090089}