blob: 5fdf0451d2c84affddd618d49b061ab4a0ef2112 [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: [
32 "android.security.flags-aconfig",
Justin Lanninc45c27b2024-11-20 20:52:35 +000033 "android.permission.flags-aconfig",
Rana Mouawibbfbd1f2024-12-03 12:06:52 +000034 "wear_aconfig_declarations",
Hani Kazmi75342ef2024-08-15 10:44:37 +000035 ],
Sasha Smundak995887e2019-05-02 21:35:45 -070036 platform_apis: true,
37 certificate: "platform",
38 privileged: true,
39 jacoco: {
40 include_filter: ["com.android.shell.*"],
41 },
42}
Keun young Parkbd16eb52021-01-08 17:21:36 -080043
44// A library for product type like auto to create a new shell package
45// with product specific permissions.
46android_library {
47 name: "Shell-package-library",
48 defaults: ["platform_app_defaults"],
49 srcs: shell_srcs,
50 aidl: {
51 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
52 },
53 resource_dirs: ["res"],
54 static_libs: shell_static_libs,
55 platform_apis: true,
56 manifest: "AndroidManifest.xml",
Hani Kazmi75342ef2024-08-15 10:44:37 +000057 flags_packages: [
58 "android.security.flags-aconfig",
Justin Lanninc45c27b2024-11-20 20:52:35 +000059 "android.permission.flags-aconfig",
Hani Kazmi75342ef2024-08-15 10:44:37 +000060 ],
Keun young Parkbd16eb52021-01-08 17:21:36 -080061}