blob: 253145468e471f035e38e0b78c543ed12c7e2597 [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
11shell_srcs = ["src/**/*.java",":dumpstate_aidl"]
12shell_static_libs = ["androidx.legacy_legacy-support-v4"]
13
Sasha Smundak995887e2019-05-02 21:35:45 -070014android_app {
15 name: "Shell",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060016 defaults: ["platform_app_defaults"],
Keun young Parkbd16eb52021-01-08 17:21:36 -080017 srcs: shell_srcs,
Sasha Smundak995887e2019-05-02 21:35:45 -070018 aidl: {
19 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
20 },
Keun young Parkbd16eb52021-01-08 17:21:36 -080021 static_libs: shell_static_libs,
Kholoud Mohamedf51ced62024-04-11 14:00:01 +000022 libs: [
23 "device_policy_aconfig_flags_lib",
24 ],
Sasha Smundak995887e2019-05-02 21:35:45 -070025 platform_apis: true,
26 certificate: "platform",
27 privileged: true,
28 jacoco: {
29 include_filter: ["com.android.shell.*"],
30 },
31}
Keun young Parkbd16eb52021-01-08 17:21:36 -080032
33// A library for product type like auto to create a new shell package
34// with product specific permissions.
35android_library {
36 name: "Shell-package-library",
37 defaults: ["platform_app_defaults"],
38 srcs: shell_srcs,
39 aidl: {
40 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
41 },
42 resource_dirs: ["res"],
43 static_libs: shell_static_libs,
44 platform_apis: true,
45 manifest: "AndroidManifest.xml",
46}