• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_team: "trendy_team_framework_android_packages",
17    default_applicable_licenses: [
18        "frameworks_base_packages_PackageInstaller_license",
19    ],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25    name: "frameworks_base_packages_PackageInstaller_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29    ],
30    license_text: [
31        "NOTICE",
32    ],
33}
34
35android_app {
36    name: "PackageInstaller",
37    defaults: ["platform_app_defaults"],
38
39    srcs: [
40        "src/**/*.java",
41        "src/**/*.kt",
42    ],
43
44    certificate: "platform",
45    privileged: true,
46    platform_apis: false,
47    sdk_version: "system_current",
48    rename_resources_package: false,
49    static_libs: [
50        "android.content.pm.flags-aconfig-java",
51        "android.multiuser.flags-aconfig-java",
52        "android.os.flags-aconfig-java",
53        "androidx.annotation_annotation",
54        "androidx.fragment_fragment",
55        "androidx.leanback_leanback",
56        "androidx.lifecycle_lifecycle-extensions",
57        "androidx.lifecycle_lifecycle-livedata",
58        "kotlin-parcelize-runtime",
59    ],
60
61    lint: {
62        error_checks: ["Recycle"],
63    },
64    kotlin_plugins: ["kotlin-parcelize-compiler-plugin"],
65}
66
67android_app {
68    name: "PackageInstaller_tablet",
69    defaults: ["platform_app_defaults"],
70
71    srcs: [
72        "src/**/*.java",
73        "src/**/*.kt",
74    ],
75
76    certificate: "platform",
77    privileged: true,
78    platform_apis: false,
79    sdk_version: "system_current",
80    rename_resources_package: false,
81    overrides: ["PackageInstaller"],
82
83    static_libs: [
84        "android.content.pm.flags-aconfig-java",
85        "android.multiuser.flags-aconfig-java",
86        "android.os.flags-aconfig-java",
87        "androidx.annotation_annotation",
88        "androidx.fragment_fragment",
89        "androidx.leanback_leanback",
90        "androidx.lifecycle_lifecycle-extensions",
91        "androidx.lifecycle_lifecycle-livedata",
92        "kotlin-parcelize-runtime",
93    ],
94    aaptflags: ["--product tablet"],
95
96    lint: {
97        error_checks: ["Recycle"],
98    },
99    kotlin_plugins: ["kotlin-parcelize-compiler-plugin"],
100}
101
102android_app {
103    name: "PackageInstaller_tv",
104    defaults: ["platform_app_defaults"],
105
106    srcs: [
107        "src/**/*.java",
108        "src/**/*.kt",
109    ],
110
111    certificate: "platform",
112    privileged: true,
113    platform_apis: false,
114    sdk_version: "system_current",
115    rename_resources_package: false,
116    overrides: ["PackageInstaller"],
117
118    static_libs: [
119        "android.content.pm.flags-aconfig-java",
120        "android.multiuser.flags-aconfig-java",
121        "android.os.flags-aconfig-java",
122        "androidx.annotation_annotation",
123        "androidx.fragment_fragment",
124        "androidx.leanback_leanback",
125        "androidx.lifecycle_lifecycle-extensions",
126        "androidx.lifecycle_lifecycle-livedata",
127        "kotlin-parcelize-runtime",
128    ],
129    aaptflags: ["--product tv"],
130
131    lint: {
132        error_checks: ["Recycle"],
133    },
134    kotlin_plugins: ["kotlin-parcelize-compiler-plugin"],
135}
136