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 libs: [ 23 "device_policy_aconfig_flags_lib", 24 ], 25 platform_apis: true, 26 certificate: "platform", 27 privileged: true, 28 jacoco: { 29 include_filter: ["com.android.shell.*"], 30 }, 31} 32 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} 47