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