Yabin Huang | 59237eb | 2020-02-19 17:44:36 -0800 | [diff] [blame] | 1 | // Copyright (C) 2020 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 | android_app { |
| 16 | name: "CarRotaryController", |
| 17 | srcs: ["src/**/*.java"], |
| 18 | resource_dirs: ["res"], |
Yabin Huang | 4091750 | 2020-03-31 11:30:17 -0700 | [diff] [blame] | 19 | |
Danny Epstein | 346b25c | 2021-03-05 10:28:23 -0800 | [diff] [blame] | 20 | // This app uses allowlisted privileged permissions. |
| 21 | required: ["allowed_privapp_com.android.car.rotary"], |
| 22 | |
Yabin Huang | 4091750 | 2020-03-31 11:30:17 -0700 | [diff] [blame] | 23 | // Because it uses a platform API (CarInputManager). |
| 24 | platform_apis: true, |
| 25 | |
| 26 | // This app should be platform signed because it requires android.permission.MONITOR_INPUT |
| 27 | // permission, which is of type "signature". |
| 28 | certificate: "platform", |
| 29 | |
Danny Epstein | 346b25c | 2021-03-05 10:28:23 -0800 | [diff] [blame] | 30 | // This app uses allowlisted privileged permissions. |
| 31 | privileged: true, |
| 32 | |
Yabin Huang | 59237eb | 2020-02-19 17:44:36 -0800 | [diff] [blame] | 33 | optimize: { |
| 34 | enabled: false, |
| 35 | }, |
| 36 | dex_preopt: { |
| 37 | enabled: false, |
| 38 | }, |
Yabin Huang | 4091750 | 2020-03-31 11:30:17 -0700 | [diff] [blame] | 39 | libs: [ |
| 40 | "android.car", |
| 41 | ], |
Yabin Huang | 59237eb | 2020-02-19 17:44:36 -0800 | [diff] [blame] | 42 | static_libs: [ |
| 43 | "car-ui-lib", |
| 44 | ], |
| 45 | product_variables: { |
| 46 | pdk: { |
| 47 | enabled: false, |
| 48 | }, |
| 49 | }, |
| 50 | } |
Heemin Seog | 5343a0f | 2020-12-11 20:20:39 -0800 | [diff] [blame] | 51 | |
| 52 | android_library { |
| 53 | name: "CarRotaryControllerForUnitTesting", |
| 54 | |
| 55 | manifest: "tests/unit/AndroidManifest.xml", |
| 56 | |
| 57 | srcs: ["src/**/*.java"], |
| 58 | |
| 59 | resource_dirs: [ |
Heemin Seog | 0b83526 | 2020-12-23 14:57:56 -0800 | [diff] [blame] | 60 | "tests/unit/res", |
Heemin Seog | 5343a0f | 2020-12-11 20:20:39 -0800 | [diff] [blame] | 61 | "res", |
| 62 | ], |
| 63 | |
| 64 | platform_apis: true, |
| 65 | |
| 66 | optimize: { |
| 67 | enabled: false, |
| 68 | }, |
| 69 | dex_preopt: { |
| 70 | enabled: false, |
| 71 | }, |
| 72 | libs: [ |
| 73 | "android.car", |
| 74 | ], |
| 75 | static_libs: [ |
| 76 | "car-ui-lib", |
| 77 | ], |
| 78 | product_variables: { |
| 79 | pdk: { |
| 80 | enabled: false, |
| 81 | }, |
| 82 | }, |
| 83 | |
| 84 | aaptflags: ["--extra-packages com.android.car.rotary"], |
| 85 | } |