blob: c87916fa3b956f2a2940c4c5113504f386373b70 [file] [log] [blame]
Bob Badour8a6a2bc2021-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,
Sasha Smundak995887e2019-05-02 21:35:45 -070022 platform_apis: true,
23 certificate: "platform",
24 privileged: true,
25 jacoco: {
26 include_filter: ["com.android.shell.*"],
27 },
28}
Keun young Parkbd16eb52021-01-08 17:21:36 -080029
30// A library for product type like auto to create a new shell package
31// with product specific permissions.
32android_library {
33 name: "Shell-package-library",
34 defaults: ["platform_app_defaults"],
35 srcs: shell_srcs,
36 aidl: {
37 include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
38 },
39 resource_dirs: ["res"],
40 static_libs: shell_static_libs,
41 platform_apis: true,
42 manifest: "AndroidManifest.xml",
43}