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 = [ 12 "src/**/*.java", 13 ":dumpstate_aidl", 14] 15shell_static_libs = [ 16 "androidx.legacy_legacy-support-v4", 17 "wear_aconfig_declarations_flags_java_lib", 18] 19 20android_app { 21 name: "Shell", 22 defaults: ["platform_app_defaults"], 23 srcs: shell_srcs, 24 aidl: { 25 include_dirs: ["frameworks/native/cmds/dumpstate/binder"], 26 }, 27 static_libs: shell_static_libs, 28 libs: [ 29 "device_policy_aconfig_flags_lib", 30 ], 31 flags_packages: [ 32 "android.security.flags-aconfig", 33 "android.permission.flags-aconfig", 34 "wear_aconfig_declarations", 35 ], 36 platform_apis: true, 37 certificate: "platform", 38 privileged: true, 39 jacoco: { 40 include_filter: ["com.android.shell.*"], 41 }, 42} 43 44// A library for product type like auto to create a new shell package 45// with product specific permissions. 46android_library { 47 name: "Shell-package-library", 48 defaults: ["platform_app_defaults"], 49 srcs: shell_srcs, 50 aidl: { 51 include_dirs: ["frameworks/native/cmds/dumpstate/binder"], 52 }, 53 resource_dirs: ["res"], 54 static_libs: shell_static_libs, 55 platform_apis: true, 56 manifest: "AndroidManifest.xml", 57 flags_packages: [ 58 "android.security.flags-aconfig", 59 "android.permission.flags-aconfig", 60 ], 61} 62