1// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: [
17        "frameworks_base_packages_PackageInstaller_license",
18    ],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24    name: "frameworks_base_packages_PackageInstaller_license",
25    visibility: [":__subpackages__"],
26    license_kinds: [
27        "SPDX-license-identifier-Apache-2.0",
28    ],
29    license_text: [
30        "NOTICE",
31    ],
32}
33
34android_app {
35    name: "PackageInstaller",
36    defaults: ["platform_app_defaults"],
37
38    srcs: ["src/**/*.java"],
39
40    certificate: "platform",
41    privileged: true,
42    platform_apis: true,
43    rename_resources_package: false,
44    static_libs: [
45        "xz-java",
46        "androidx.leanback_leanback",
47        "androidx.annotation_annotation",
48    ],
49}
50
51android_app {
52    name: "PackageInstaller_tablet",
53    defaults: ["platform_app_defaults"],
54
55    srcs: ["src/**/*.java"],
56
57    certificate: "platform",
58    privileged: true,
59    platform_apis: true,
60    rename_resources_package: false,
61    overrides: ["PackageInstaller"],
62
63    static_libs: [
64        "xz-java",
65        "androidx.leanback_leanback",
66    ],
67    aaptflags: ["--product tablet"],
68}
69
70android_app {
71    name: "PackageInstaller_tv",
72    defaults: ["platform_app_defaults"],
73
74    srcs: ["src/**/*.java"],
75
76    certificate: "platform",
77    privileged: true,
78    platform_apis: true,
79    rename_resources_package: false,
80    overrides: ["PackageInstaller"],
81
82    static_libs: [
83        "xz-java",
84        "androidx.leanback_leanback",
85        "androidx.annotation_annotation",
86    ],
87    aaptflags: ["--product tv"],
88}
89