1// 2// Copyright (C) 2019 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17genrule { 18 name: "statslog-permissioncontroller-java-gen", 19 tools: ["stats-log-api-gen"], 20 cmd: "$(location stats-log-api-gen) --java $(out) --module permissioncontroller --javaPackage com.android.packageinstaller --javaClass PermissionControllerStatsLog", 21 out: ["com/android/packageinstaller/PermissionControllerStatsLog.java"], 22} 23 24java_library { 25 name: "permissioncontroller-statsd", 26 sdk_version: "system_current", 27 28 srcs: [ 29 ":statslog-permissioncontroller-java-gen", 30 ], 31} 32 33android_app { 34 name: "PermissionController", 35 sdk_version: "system_current", 36 min_sdk_version: "28", 37 privileged: true, 38 certificate: "platform", 39 40 srcs: [ 41 "src/**/*.java", 42 "src/**/*.proto", 43 ], 44 45 static_libs: [ 46 "iconloader", 47 "com.google.android.material_material", 48 "androidx.transition_transition", 49 "androidx-constraintlayout_constraintlayout", 50 "androidx.core_core", 51 "androidx.media_media", 52 "androidx.legacy_legacy-support-core-utils", 53 "androidx.legacy_legacy-support-core-ui", 54 "androidx.fragment_fragment", 55 "androidx.appcompat_appcompat", 56 "androidx.preference_preference", 57 "androidx.recyclerview_recyclerview", 58 "androidx.legacy_legacy-preference-v14", 59 "androidx.leanback_leanback", 60 "androidx.leanback_leanback-preference", 61 "androidx.lifecycle_lifecycle-extensions", 62 "androidx.lifecycle_lifecycle-common-java8", 63 "SettingsLibHelpUtils", 64 "SettingsLibRestrictedLockUtils", 65 "SettingsLibAppPreference", 66 "SettingsLibSearchWidget", 67 "SettingsLibLayoutPreference", 68 "SettingsLibBarChartPreference", 69 "SettingsLibActionBarShadow", 70 "SettingsLibProgressBar", 71 "androidx.annotation_annotation", 72 "permissioncontroller-statsd" 73 ], 74 75 proto: { 76 type: "lite", 77 }, 78 79 optimize: { 80 proguard_flags_files: ["proguard.flags"], 81 }, 82 83 plugins: ["java_api_finder"], 84} 85