blob: 3350efc33ad8501a5f7dc33b43fa910daf80541f [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",
30 ],
Sasha Smundak995887e2019-05-02 21:35:45 -070031 platform_apis: true,
32 certificate: "platform",
33 privileged: true,
34 jacoco: {
35 include_filter: ["com.android.shell.*"],
36 },
37}
Keun young Parkbd16eb52021-01-08 17:21:36 -080038
39// A library for product type like auto to create a new shell package
40// with product specific permissions.
41android_library {
42 name: "Shell-package-library",
43 defaults: ["platform_app_defaults"],
44 srcs: shell_srcs,
45 aidl: {
46 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
47 },
48 resource_dirs: ["res"],
49 static_libs: shell_static_libs,
50 platform_apis: true,
51 manifest: "AndroidManifest.xml",
Hani Kazmi75342ef2024-08-15 10:44:37 +000052 flags_packages: [
53 "android.security.flags-aconfig",
54 ],
Keun young Parkbd16eb52021-01-08 17:21:36 -080055}