Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 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 Park | bd16eb5 | 2021-01-08 17:21:36 -0800 | [diff] [blame] | 10 | // used both for the android_app and android_library |
| 11 | shell_srcs = ["src/**/*.java",":dumpstate_aidl"] |
| 12 | shell_static_libs = ["androidx.legacy_legacy-support-v4"] |
| 13 | |
Sasha Smundak | 995887e | 2019-05-02 21:35:45 -0700 | [diff] [blame] | 14 | android_app { |
| 15 | name: "Shell", |
Jeff Sharkey | d23b537 | 2020-10-23 14:30:42 -0600 | [diff] [blame] | 16 | defaults: ["platform_app_defaults"], |
Keun young Park | bd16eb5 | 2021-01-08 17:21:36 -0800 | [diff] [blame] | 17 | srcs: shell_srcs, |
Sasha Smundak | 995887e | 2019-05-02 21:35:45 -0700 | [diff] [blame] | 18 | aidl: { |
| 19 | include_dirs: ["frameworks/native/cmds/dumpstate/binder"], |
| 20 | }, |
Keun young Park | bd16eb5 | 2021-01-08 17:21:36 -0800 | [diff] [blame] | 21 | static_libs: shell_static_libs, |
Sasha Smundak | 995887e | 2019-05-02 21:35:45 -0700 | [diff] [blame] | 22 | platform_apis: true, |
| 23 | certificate: "platform", |
| 24 | privileged: true, |
| 25 | jacoco: { |
| 26 | include_filter: ["com.android.shell.*"], |
| 27 | }, |
| 28 | } |
Keun young Park | bd16eb5 | 2021-01-08 17:21:36 -0800 | [diff] [blame] | 29 | |
| 30 | // A library for product type like auto to create a new shell package |
| 31 | // with product specific permissions. |
| 32 | android_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 | } |