1// Copyright (C) 2016 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: ["Android-Apache-2.0"], 17} 18 19android_app { 20 name: "StorageManager", 21 defaults: ["SettingsLibDefaults"], 22 platform_apis: true, 23 certificate: "platform", 24 25 system_ext_specific: true, 26 privileged: true, 27 required: ["privapp_whitelist_com.android.storagemanager"], 28 29 static_libs: [ 30 "StorageManager-lib", 31 ], 32 33 libs: ["keepanno-annotations"], 34 35 uses_libs: ["org.apache.http.legacy"], 36 37 resource_dirs: [], 38} 39 40android_library { 41 name: "StorageManager-lib", 42 defaults: ["SettingsLibDefaults"], 43 platform_apis: true, 44 45 manifest: "AndroidManifest.xml", 46 47 static_libs: [ 48 "androidx.legacy_legacy-preference-v14", 49 "androidx.appcompat_appcompat", 50 "androidx.preference_preference", 51 ], 52 53 libs: ["keepanno-annotations"], 54 55 resource_dirs: [ 56 "res", 57 ], 58 59 aaptflags: [ 60 "--auto-add-overlay", 61 ], 62 63 srcs: ["src/**/*.java"], 64} 65