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 "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 "androidx.leanback_leanback", 83 "androidx.fragment_fragment", 84 "androidx.lifecycle_lifecycle-livedata", 85 "androidx.lifecycle_lifecycle-extensions", 86 "android.content.pm.flags-aconfig-java", 87 "android.os.flags-aconfig-java", 88 "android.multiuser.flags-aconfig-java", 89 ], 90 aaptflags: ["--product tablet"], 91 92 lint: { 93 error_checks: ["Recycle"], 94 }, 95} 96 97android_app { 98 name: "PackageInstaller_tv", 99 defaults: ["platform_app_defaults"], 100 101 srcs: [ 102 "src/**/*.java", 103 "src/**/*.kt", 104 ], 105 106 certificate: "platform", 107 privileged: true, 108 platform_apis: false, 109 sdk_version: "system_current", 110 rename_resources_package: false, 111 overrides: ["PackageInstaller"], 112 113 static_libs: [ 114 "androidx.leanback_leanback", 115 "androidx.annotation_annotation", 116 "androidx.fragment_fragment", 117 "androidx.lifecycle_lifecycle-livedata", 118 "androidx.lifecycle_lifecycle-extensions", 119 "android.content.pm.flags-aconfig-java", 120 "android.os.flags-aconfig-java", 121 "android.multiuser.flags-aconfig-java", 122 ], 123 aaptflags: ["--product tv"], 124 125 lint: { 126 error_checks: ["Recycle"], 127 }, 128} 129