blob: c0c19129d79f08a8d63fabd37af3ef947595e306 [file] [log] [blame]
Bob Badoure539dba2021-02-12 17:07:05 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_base_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_base_license"],
8}
9
Keun young Parkbd16eb52021-01-08 17:21:36 -080010// used both for the android_app and android_library
Hani Kazmi75342ef2024-08-15 10:44:37 +000011shell_srcs = [
12 "src/**/*.java",
13 ":dumpstate_aidl",
14]
Rana Mouawibbfbd1f2024-12-03 12:06:52 +000015shell_static_libs = [
16 "androidx.legacy_legacy-support-v4",
17 "wear_aconfig_declarations_flags_java_lib",
18]
Keun young Parkbd16eb52021-01-08 17:21:36 -080019
Sasha Smundak995887e2019-05-02 21:35:45 -070020android_app {
21 name: "Shell",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060022 defaults: ["platform_app_defaults"],
Keun young Parkbd16eb52021-01-08 17:21:36 -080023 srcs: shell_srcs,
Sasha Smundak995887e2019-05-02 21:35:45 -070024 aidl: {
25 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
26 },
Keun young Parkbd16eb52021-01-08 17:21:36 -080027 static_libs: shell_static_libs,
Kholoud Mohamedf51ced62024-04-11 14:00:01 +000028 libs: [
29 "device_policy_aconfig_flags_lib",
30 ],
Hani Kazmi75342ef2024-08-15 10:44:37 +000031 flags_packages: [
Vladimir Komsiyski66fec942025-01-27 04:45:08 -080032 "android.companion.virtualdevice.flags-aconfig",
Hani Kazmi75342ef2024-08-15 10:44:37 +000033 "android.security.flags-aconfig",
Justin Lanninc45c27b2024-11-20 20:52:35 +000034 "android.permission.flags-aconfig",
Rana Mouawibbfbd1f2024-12-03 12:06:52 +000035 "wear_aconfig_declarations",
Hani Kazmi75342ef2024-08-15 10:44:37 +000036 ],
Sasha Smundak995887e2019-05-02 21:35:45 -070037 platform_apis: true,
38 certificate: "platform",
39 privileged: true,
40 jacoco: {
41 include_filter: ["com.android.shell.*"],
42 },
43}
Keun young Parkbd16eb52021-01-08 17:21:36 -080044
45// A library for product type like auto to create a new shell package
46// with product specific permissions.
47android_library {
48 name: "Shell-package-library",
49 defaults: ["platform_app_defaults"],
50 srcs: shell_srcs,
51 aidl: {
52 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
53 },
54 resource_dirs: ["res"],
55 static_libs: shell_static_libs,
56 platform_apis: true,
57 manifest: "AndroidManifest.xml",
Hani Kazmi75342ef2024-08-15 10:44:37 +000058 flags_packages: [
Vladimir Komsiyski66fec942025-01-27 04:45:08 -080059 "android.companion.virtualdevice.flags-aconfig",
Hani Kazmi75342ef2024-08-15 10:44:37 +000060 "android.security.flags-aconfig",
Justin Lanninc45c27b2024-11-20 20:52:35 +000061 "android.permission.flags-aconfig",
Hani Kazmi75342ef2024-08-15 10:44:37 +000062 ],
Keun young Parkbd16eb52021-01-08 17:21:36 -080063}