1// Copyright (C) 2021 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// 15// 16 17// Build the Builtin Car service. This one is not updated from mainline. 18 19package { 20 default_team: "trendy_team_aaos_framework", 21 default_applicable_licenses: ["Android-Apache-2.0"], 22} 23 24car_service_sources = [ 25 "src/**/*.java", 26] 27 28android_app { 29 name: "CarService", 30 31 srcs: car_service_sources, 32 33 resource_dirs: ["res"], 34 35 platform_apis: true, 36 37 // Each update should be signed by OEMs 38 certificate: "platform", 39 privileged: true, 40 41 optimize: { 42 proguard_flags_files: ["proguard.flags"], 43 enabled: false, 44 }, 45 46 jni_libs: [ 47 "libcarservicejni", 48 ], 49 50 libs: [ 51 "android.car", 52 "android.car.builtin", 53 ], 54 55 static_libs: [ 56 "car-service-lib-for-builtin", 57 // TODO(b/181911960): remove this after moving NewUserDisclaimerActivity 58 // to CarSystemUi 59 "car-admin-ui-lib", 60 ], 61 62 required: ["allowed_privapp_com.android.car"], 63} 64 65android_library { 66 name: "car-service-builtin-test-static-lib", 67 68 srcs: car_service_sources, 69 70 resource_dirs: ["res"], 71 72 libs: [ 73 "android.car", 74 "android.car.builtin", 75 ], 76 77 static_libs: [ 78 "car-service-lib-for-builtin", 79 // TODO(b/181911960): remove this after moving NewUserDisclaimerActivity 80 // to CarSystemUi 81 "car-admin-ui-lib", 82 ], 83} 84