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: [
39        "src/**/*.java",
40        "src/**/*.kt",
41    ],
42
43    certificate: "platform",
44    privileged: true,
45    platform_apis: false,
46    sdk_version: "system_current",
47    rename_resources_package: false,
48    static_libs: [
49        "xz-java",
50        "androidx.leanback_leanback",
51        "androidx.annotation_annotation",
52        "androidx.fragment_fragment",
53        "androidx.lifecycle_lifecycle-livedata",
54        "androidx.lifecycle_lifecycle-extensions",
55        "android.content.pm.flags-aconfig-java",
56        "android.os.flags-aconfig-java",
57        "android.multiuser.flags-aconfig-java",
58    ],
59
60    lint: {
61        error_checks: ["Recycle"],
62    },
63}
64
65android_app {
66    name: "PackageInstaller_tablet",
67    defaults: ["platform_app_defaults"],
68
69    srcs: [
70        "src/**/*.java",
71        "src/**/*.kt",
72    ],
73
74    certificate: "platform",
75    privileged: true,
76    platform_apis: false,
77    sdk_version: "system_current",
78    rename_resources_package: false,
79    overrides: ["PackageInstaller"],
80
81    static_libs: [
82        "xz-java",
83        "androidx.leanback_leanback",
84        "androidx.fragment_fragment",
85        "androidx.lifecycle_lifecycle-livedata",
86        "androidx.lifecycle_lifecycle-extensions",
87        "android.content.pm.flags-aconfig-java",
88        "android.os.flags-aconfig-java",
89        "android.multiuser.flags-aconfig-java",
90    ],
91    aaptflags: ["--product tablet"],
92
93    lint: {
94        error_checks: ["Recycle"],
95    },
96}
97
98android_app {
99    name: "PackageInstaller_tv",
100    defaults: ["platform_app_defaults"],
101
102    srcs: [
103        "src/**/*.java",
104        "src/**/*.kt",
105    ],
106
107    certificate: "platform",
108    privileged: true,
109    platform_apis: false,
110    sdk_version: "system_current",
111    rename_resources_package: false,
112    overrides: ["PackageInstaller"],
113
114    static_libs: [
115        "xz-java",
116        "androidx.leanback_leanback",
117        "androidx.annotation_annotation",
118        "androidx.fragment_fragment",
119        "androidx.lifecycle_lifecycle-livedata",
120        "androidx.lifecycle_lifecycle-extensions",
121        "android.content.pm.flags-aconfig-java",
122        "android.os.flags-aconfig-java",
123        "android.multiuser.flags-aconfig-java",
124    ],
125    aaptflags: ["--product tv"],
126
127    lint: {
128        error_checks: ["Recycle"],
129    },
130}
131