blob: 5f810858b7cd66c980271576db7005091bc53fc8 [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]
Keun young Parkbd16eb52021-01-08 17:21:36 -080015shell_static_libs = ["androidx.legacy_legacy-support-v4"]
16
Sasha Smundak995887e2019-05-02 21:35:45 -070017android_app {
18 name: "Shell",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060019 defaults: ["platform_app_defaults"],
Keun young Parkbd16eb52021-01-08 17:21:36 -080020 srcs: shell_srcs,
Sasha Smundak995887e2019-05-02 21:35:45 -070021 aidl: {
22 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
23 },
Keun young Parkbd16eb52021-01-08 17:21:36 -080024 static_libs: shell_static_libs,
Kholoud Mohamedf51ced62024-04-11 14:00:01 +000025 libs: [
26 "device_policy_aconfig_flags_lib",
27 ],
Hani Kazmi75342ef2024-08-15 10:44:37 +000028 flags_packages: [
29 "android.security.flags-aconfig",
Justin Lanninc45c27b2024-11-20 20:52:35 +000030 "android.permission.flags-aconfig",
Hani Kazmi75342ef2024-08-15 10:44:37 +000031 ],
Sasha Smundak995887e2019-05-02 21:35:45 -070032 platform_apis: true,
33 certificate: "platform",
34 privileged: true,
35 jacoco: {
36 include_filter: ["com.android.shell.*"],
37 },
38}
Keun young Parkbd16eb52021-01-08 17:21:36 -080039
40// A library for product type like auto to create a new shell package
41// with product specific permissions.
42android_library {
43 name: "Shell-package-library",
44 defaults: ["platform_app_defaults"],
45 srcs: shell_srcs,
46 aidl: {
47 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
48 },
49 resource_dirs: ["res"],
50 static_libs: shell_static_libs,
51 platform_apis: true,
52 manifest: "AndroidManifest.xml",
Hani Kazmi75342ef2024-08-15 10:44:37 +000053 flags_packages: [
54 "android.security.flags-aconfig",
Justin Lanninc45c27b2024-11-20 20:52:35 +000055 "android.permission.flags-aconfig",
Hani Kazmi75342ef2024-08-15 10:44:37 +000056 ],
Keun young Parkbd16eb52021-01-08 17:21:36 -080057}