blob: a7c531eba6bf69fdd2e95b4af6719e708e7e7fb5 [file] [log] [blame]
Jiyong Park9b8253b2021-06-28 18:37:26 +09001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Alan Stokesd09b2982023-09-19 15:54:11 +01005soong_config_module_type {
6 name: "avf_flag_aware_android_app",
7 module_type: "android_app",
8 config_namespace: "ANDROID",
9 bool_variables: ["release_avf_allow_preinstalled_apps"],
10 properties: ["manifest"],
11}
12
Alan Stokes5c1d9c02022-09-01 11:10:32 +010013// Defines our permissions
Alan Stokesd09b2982023-09-19 15:54:11 +010014avf_flag_aware_android_app {
Alan Stokes5c1d9c02022-09-01 11:10:32 +010015 name: "android.system.virtualmachine.res",
16 installable: true,
17 apex_available: ["com.android.virt"],
Alan Stokes97a2bfe2022-10-24 12:02:35 +010018 platform_apis: true,
Alan Stokesd09b2982023-09-19 15:54:11 +010019 soong_config_variables: {
20 release_avf_allow_preinstalled_apps: {
21 manifest: "AndroidManifestNext.xml",
22 },
23 },
Alan Stokes5c1d9c02022-09-01 11:10:32 +010024}
25
Jiyong Park9b8253b2021-06-28 18:37:26 +090026java_sdk_library {
Nikita Ioffef28eec22022-10-18 23:17:34 +010027 name: "framework-virtualization",
Jiyong Park9b8253b2021-06-28 18:37:26 +090028
Nikita Ioffe6d340a22022-12-06 14:16:20 +000029 defaults: ["non-updatable-framework-module-defaults"],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000030
Alan Stokes5c1d9c02022-09-01 11:10:32 +010031 jarjar_rules: "jarjar-rules.txt",
32
Jiyong Park9b8253b2021-06-28 18:37:26 +090033 srcs: ["src/**/*.java"],
34 static_libs: [
35 "android.system.virtualizationservice-java",
Nikita Ioffee3a049f2024-02-15 15:47:23 +000036 "avf_aconfig_flags_java",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010037 // For android.sysprop.HypervisorProperties
38 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090039 ],
40
41 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010042
Jiyong Park9b8253b2021-06-28 18:37:26 +090043 permitted_packages: [
44 "android.system.virtualmachine",
45 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010046 // android.sysprop.*, renamed by jarjar
47 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090048 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000049 errorprone: {
Alan Stokes36a58d92022-11-09 13:35:40 +000050 enabled: true,
51 javacflags: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000052 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
Alan Stokes36a58d92022-11-09 13:35:40 +000053 "-Xep:GuardedBy:ERROR",
54 ],
55 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010056
Nikita Ioffe30b50e62022-11-15 11:27:45 +000057 sdk_version: "core_platform",
Nikita Ioffe69d297a2022-11-21 12:32:05 +000058 stub_only_libs: [
59 "android_module_lib_stubs_current",
60 ],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000061 impl_only_libs: [
62 "framework",
63 ],
64 impl_library_visibility: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000065 "//packages/modules/Virtualization:__subpackages__",
Nikita Ioffe30b50e62022-11-15 11:27:45 +000066 ],
Alan Stokes34f06882022-08-17 11:38:24 +010067}