blob: 2982a32906253fe404ad53dd0ad1ac209eb8ce7d [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 Ioffe30b50e62022-11-15 11:27:45 +000016 // TODO(b/243512044): introduce non-updatable-framework-module-defaults
Nikita Ioffe30b50e62022-11-15 11:27:45 +000017 defaults: ["framework-module-defaults"],
18
Alan Stokes5c1d9c02022-09-01 11:10:32 +010019 jarjar_rules: "jarjar-rules.txt",
20
Jiyong Park9b8253b2021-06-28 18:37:26 +090021 srcs: ["src/**/*.java"],
22 static_libs: [
23 "android.system.virtualizationservice-java",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010024 // For android.sysprop.HypervisorProperties
25 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090026 ],
27
28 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010029
Jiyong Park9b8253b2021-06-28 18:37:26 +090030 permitted_packages: [
31 "android.system.virtualmachine",
32 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010033 // android.sysprop.*, renamed by jarjar
34 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090035 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000036 errorprone: {
Alan Stokes36a58d92022-11-09 13:35:40 +000037 enabled: true,
38 javacflags: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000039 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
Alan Stokes36a58d92022-11-09 13:35:40 +000040 "-Xep:GuardedBy:ERROR",
Nikita Ioffe0ef49382022-11-18 14:28:08 +000041 // JavaApiUsedByMainlineModule is quite spammy, and since we com.android.virt is not
42 // an updatable module we don't need it.
43 "-Xep:JavaApiUsedByMainlineModule:OFF",
Alan Stokes36a58d92022-11-09 13:35:40 +000044 ],
45 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010046
Nikita Ioffe30b50e62022-11-15 11:27:45 +000047 test: {
48 enabled: true,
49 sdk_version: "module_current",
50 },
51
52 sdk_version: "core_platform",
Nikita Ioffe69d297a2022-11-21 12:32:05 +000053 stub_only_libs: [
54 "android_module_lib_stubs_current",
55 ],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000056 impl_only_libs: [
57 "framework",
58 ],
59 impl_library_visibility: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000060 "//packages/modules/Virtualization:__subpackages__",
Nikita Ioffe30b50e62022-11-15 11:27:45 +000061 ],
62
Nikita Ioffe0ef49382022-11-18 14:28:08 +000063 // TODO(b/243512044): remove once we have API tracking files in prebuilts/sdk
Nikita Ioffef28eec22022-10-18 23:17:34 +010064 unsafe_ignore_missing_latest_api: true,
Alan Stokes34f06882022-08-17 11:38:24 +010065}
66
67prebuilt_apis {
68 name: "android-virtualization-framework-sdk",
69 api_dirs: ["32"],
Jiyong Park9b8253b2021-06-28 18:37:26 +090070}