Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Alan Stokes | 5c1d9c0 | 2022-09-01 11:10:32 +0100 | [diff] [blame] | 5 | // Defines our permissions |
| 6 | android_app { |
| 7 | name: "android.system.virtualmachine.res", |
| 8 | installable: true, |
| 9 | apex_available: ["com.android.virt"], |
Alan Stokes | 97a2bfe | 2022-10-24 12:02:35 +0100 | [diff] [blame] | 10 | platform_apis: true, |
Alan Stokes | 5c1d9c0 | 2022-09-01 11:10:32 +0100 | [diff] [blame] | 11 | } |
| 12 | |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 13 | java_sdk_library { |
Nikita Ioffe | f28eec2 | 2022-10-18 23:17:34 +0100 | [diff] [blame] | 14 | name: "framework-virtualization", |
| 15 | installable: false, |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 16 | compile_dex: true, |
| 17 | |
Nikita Ioffe | f28eec2 | 2022-10-18 23:17:34 +0100 | [diff] [blame] | 18 | shared_library: false, |
| 19 | |
| 20 | // TODO(b/243512044): use framework-module-defaults |
| 21 | |
| 22 | dist_group: "android", |
| 23 | |
Alan Stokes | 5c1d9c0 | 2022-09-01 11:10:32 +0100 | [diff] [blame] | 24 | jarjar_rules: "jarjar-rules.txt", |
| 25 | |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 26 | srcs: ["src/**/*.java"], |
| 27 | static_libs: [ |
| 28 | "android.system.virtualizationservice-java", |
Alan Stokes | 5c1d9c0 | 2022-09-01 11:10:32 +0100 | [diff] [blame] | 29 | // For android.sysprop.HypervisorProperties |
| 30 | "PlatformProperties", |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 31 | ], |
| 32 | |
| 33 | apex_available: ["com.android.virt"], |
Nikita Ioffe | f28eec2 | 2022-10-18 23:17:34 +0100 | [diff] [blame] | 34 | |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 35 | permitted_packages: [ |
| 36 | "android.system.virtualmachine", |
| 37 | "android.system.virtualizationservice", |
Alan Stokes | 5c1d9c0 | 2022-09-01 11:10:32 +0100 | [diff] [blame] | 38 | // android.sysprop.*, renamed by jarjar |
| 39 | "com.android.system.virtualmachine.sysprop", |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 40 | ], |
Alan Stokes | 36a58d9 | 2022-11-09 13:35:40 +0000 | [diff] [blame] | 41 | errorprone: { |
| 42 | // We use @GuardedBy and we want a test failure if our locking isn't consistent with it. |
| 43 | enabled: true, |
| 44 | javacflags: [ |
| 45 | "-Xep:GuardedBy:ERROR", |
| 46 | ], |
| 47 | }, |
Nikita Ioffe | f28eec2 | 2022-10-18 23:17:34 +0100 | [diff] [blame] | 48 | |
| 49 | // Temporary workaround, will be removed in a follow-up child cl. |
| 50 | unsafe_ignore_missing_latest_api: true, |
Alan Stokes | 34f0688 | 2022-08-17 11:38:24 +0100 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | prebuilt_apis { |
| 54 | name: "android-virtualization-framework-sdk", |
| 55 | api_dirs: ["32"], |
Jiyong Park | 9b8253b | 2021-06-28 18:37:26 +0900 | [diff] [blame] | 56 | } |