summaryrefslogtreecommitdiff
path: root/packages/Shell/Android.bp
blob: c0c19129d79f08a8d63fabd37af3ef947595e306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_base_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_base_license"],
}

// used both for the android_app and android_library
shell_srcs = [
    "src/**/*.java",
    ":dumpstate_aidl",
]
shell_static_libs = [
    "androidx.legacy_legacy-support-v4",
    "wear_aconfig_declarations_flags_java_lib",
]

android_app {
    name: "Shell",
    defaults: ["platform_app_defaults"],
    srcs: shell_srcs,
    aidl: {
        include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
    },
    static_libs: shell_static_libs,
    libs: [
        "device_policy_aconfig_flags_lib",
    ],
    flags_packages: [
        "android.companion.virtualdevice.flags-aconfig",
        "android.security.flags-aconfig",
        "android.permission.flags-aconfig",
        "wear_aconfig_declarations",
    ],
    platform_apis: true,
    certificate: "platform",
    privileged: true,
    jacoco: {
        include_filter: ["com.android.shell.*"],
    },
}

// A library for product type like auto to create a new shell package
// with product specific permissions.
android_library {
    name: "Shell-package-library",
    defaults: ["platform_app_defaults"],
    srcs: shell_srcs,
    aidl: {
        include_dirs: ["frameworks/native/cmds/dumpstate/binder"],
    },
    resource_dirs: ["res"],
    static_libs: shell_static_libs,
    platform_apis: true,
    manifest: "AndroidManifest.xml",
    flags_packages: [
        "android.companion.virtualdevice.flags-aconfig",
        "android.security.flags-aconfig",
        "android.permission.flags-aconfig",
    ],
}