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.companion.virtualdevice.flags-aconfig", 33 "android.security.flags-aconfig", 34 "android.permission.flags-aconfig", 35 "wear_aconfig_declarations", 36 ], 37 platform_apis: true, 38 certificate: "platform", 39 privileged: true, 40 jacoco: { 41 include_filter: ["com.android.shell.*"], 42 }, 43} 44 45// A library for product type like auto to create a new shell package 46// with product specific permissions. 47android_library { 48 name: "Shell-package-library", 49 defaults: ["platform_app_defaults"], 50 srcs: shell_srcs, 51 aidl: { 52 include_dirs: ["frameworks/native/cmds/dumpstate/binder"], 53 }, 54 resource_dirs: ["res"], 55 static_libs: shell_static_libs, 56 platform_apis: true, 57 manifest: "AndroidManifest.xml", 58 flags_packages: [ 59 "android.companion.virtualdevice.flags-aconfig", 60 "android.security.flags-aconfig", 61 "android.permission.flags-aconfig", 62 ], 63} 64