1package {
2    default_applicable_licenses: ["packages_apps_SecureElement_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20    name: "packages_apps_SecureElement_license",
21    visibility: [":__subpackages__"],
22    license_kinds: [
23        "SPDX-license-identifier-Apache-2.0",
24        "SPDX-license-identifier-BSD",
25    ],
26    license_text: [
27        "NOTICE",
28    ],
29}
30
31genrule {
32    name: "statslog-secure-element-java-gen",
33    tools: ["stats-log-api-gen"],
34    cmd: "$(location stats-log-api-gen) --java $(out) --module secure_element"
35        + " --javaPackage com.android.se --javaClass SecureElementStatsLog",
36    out: ["com/android/se/SecureElementStatsLog.java"],
37}
38
39android_app {
40    name: "SecureElement",
41    srcs: [
42        "src/**/*.java",
43        ":statslog-secure-element-java-gen",
44    ],
45    platform_apis: true,
46    certificate: "platform",
47    static_libs: ["android.hardware.secure_element-V1.0-java",
48                  "android.hardware.secure_element-V1.1-java",
49                  "android.hardware.secure_element-V1.2-java"],
50    optimize: {
51        enabled: false,
52    },
53}
54