blob: 3f957d2b4c029c72998f1f4752f97f79a97395f8 [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",
Jiyong Park9b8253b2021-06-28 18:37:26 +090015
Nikita Ioffe6d340a22022-12-06 14:16:20 +000016 defaults: ["non-updatable-framework-module-defaults"],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000017
Alan Stokes5c1d9c02022-09-01 11:10:32 +010018 jarjar_rules: "jarjar-rules.txt",
19
Jiyong Park9b8253b2021-06-28 18:37:26 +090020 srcs: ["src/**/*.java"],
21 static_libs: [
22 "android.system.virtualizationservice-java",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010023 // For android.sysprop.HypervisorProperties
24 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090025 ],
26
27 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010028
Jiyong Park9b8253b2021-06-28 18:37:26 +090029 permitted_packages: [
30 "android.system.virtualmachine",
31 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010032 // android.sysprop.*, renamed by jarjar
33 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090034 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000035 errorprone: {
Alan Stokes36a58d92022-11-09 13:35:40 +000036 enabled: true,
37 javacflags: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000038 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
Alan Stokes36a58d92022-11-09 13:35:40 +000039 "-Xep:GuardedBy:ERROR",
40 ],
41 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010042
Nikita Ioffe30b50e62022-11-15 11:27:45 +000043 sdk_version: "core_platform",
Nikita Ioffe69d297a2022-11-21 12:32:05 +000044 stub_only_libs: [
45 "android_module_lib_stubs_current",
46 ],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000047 impl_only_libs: [
48 "framework",
49 ],
50 impl_library_visibility: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000051 "//packages/modules/Virtualization:__subpackages__",
Nikita Ioffe30b50e62022-11-15 11:27:45 +000052 ],
Alan Stokes34f06882022-08-17 11:38:24 +010053}
54
55prebuilt_apis {
56 name: "android-virtualization-framework-sdk",
57 api_dirs: ["32"],
Jiyong Park9b8253b2021-06-28 18:37:26 +090058}