blob: e3cb2e317d3c020783680f8c314f226e5a410995 [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",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010036 // For android.sysprop.HypervisorProperties
37 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090038 ],
39
40 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010041
Jiyong Park9b8253b2021-06-28 18:37:26 +090042 permitted_packages: [
43 "android.system.virtualmachine",
44 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010045 // android.sysprop.*, renamed by jarjar
46 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090047 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000048 errorprone: {
Alan Stokes36a58d92022-11-09 13:35:40 +000049 enabled: true,
50 javacflags: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000051 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
Alan Stokes36a58d92022-11-09 13:35:40 +000052 "-Xep:GuardedBy:ERROR",
53 ],
54 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010055
Nikita Ioffe30b50e62022-11-15 11:27:45 +000056 sdk_version: "core_platform",
Nikita Ioffe69d297a2022-11-21 12:32:05 +000057 stub_only_libs: [
58 "android_module_lib_stubs_current",
59 ],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000060 impl_only_libs: [
61 "framework",
62 ],
63 impl_library_visibility: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000064 "//packages/modules/Virtualization:__subpackages__",
Nikita Ioffe30b50e62022-11-15 11:27:45 +000065 ],
Alan Stokes34f06882022-08-17 11:38:24 +010066}