1package { 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 10// used both for the android_app and android_library 11shell_srcs = ["src/**/*.java",":dumpstate_aidl"] 12shell_static_libs = ["androidx.legacy_legacy-support-v4"] 13 14android_app { 15 name: "Shell", 16 defaults: ["platform_app_defaults"], 17 srcs: shell_srcs, 18 aidl: { 19 include_dirs: ["frameworks/native/cmds/dumpstate/binder"], 20 }, 21 static_libs: shell_static_libs, 22 platform_apis: true, 23 certificate: "platform", 24 privileged: true, 25 jacoco: { 26 include_filter: ["com.android.shell.*"], 27 }, 28} 29 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} 44