markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 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 | |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 21 | apex { |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 22 | name: "com.android.tethering", |
Remi NGUYEN VAN | 2812f60 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 23 | // TODO: make updatable again once this contains only updatable artifacts (in particular, this |
| 24 | // cannot build as updatable unless service-connectivity builds against stable API). |
Mathew Inwood | adfc933 | 2021-02-16 14:58:27 +0000 | [diff] [blame] | 25 | updatable: false, |
Remi NGUYEN VAN | 2812f60 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 26 | // min_sdk_version: "30", |
satayev | 5ba2950 | 2021-05-12 13:28:58 +0100 | [diff] [blame] | 27 | bootclasspath_fragments: [ |
| 28 | "com.android.tethering-bootclasspath-fragment", |
| 29 | ], |
Remi NGUYEN VAN | 2812f60 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 30 | java_libs: [ |
Remi NGUYEN VAN | 2812f60 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 31 | "service-connectivity", |
| 32 | ], |
| 33 | jni_libs: [ |
| 34 | "libservice-connectivity", |
| 35 | ], |
Maciej Żenczykowski | e9810ff | 2021-01-14 20:02:08 -0800 | [diff] [blame] | 36 | bpfs: [ |
| 37 | "offload.o", |
| 38 | "test.o", |
| 39 | ], |
Remi NGUYEN VAN | 60f4c2f | 2021-03-08 23:09:31 +0900 | [diff] [blame] | 40 | apps: [ |
| 41 | "ServiceConnectivityResources", |
| 42 | "Tethering", |
| 43 | ], |
Anton Hansson | db3b069 | 2021-05-20 17:53:46 +0100 | [diff] [blame] | 44 | prebuilts: ["current_sdkinfo"], |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 45 | manifest: "manifest.json", |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 46 | key: "com.android.tethering.key", |
Nikita Ioffe | 31cef5e | 2021-02-04 01:42:45 +0000 | [diff] [blame] | 47 | // Indicates that pre-installed version of this apex can be compressed. |
| 48 | // Whether it actually will be compressed is controlled on per-device basis. |
| 49 | compressible: true, |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 50 | |
| 51 | androidManifest: "AndroidManifest.xml", |
| 52 | } |
| 53 | |
| 54 | apex_key { |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 55 | name: "com.android.tethering.key", |
| 56 | public_key: "com.android.tethering.avbpubkey", |
| 57 | private_key: "com.android.tethering.pem", |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | android_app_certificate { |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 61 | name: "com.android.tethering.certificate", |
| 62 | certificate: "com.android.tethering", |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 63 | } |
markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 64 | |
satayev | 5ba2950 | 2021-05-12 13:28:58 +0100 | [diff] [blame] | 65 | // Encapsulate the contributions made by the com.android.tethering to the bootclasspath. |
| 66 | bootclasspath_fragment { |
| 67 | name: "com.android.tethering-bootclasspath-fragment", |
| 68 | contents: ["framework-tethering"], |
| 69 | apex_available: ["com.android.tethering"], |
| 70 | } |
| 71 | |
markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 72 | override_apex { |
| 73 | name: "com.android.tethering.inprocess", |
| 74 | base: "com.android.tethering", |
| 75 | package_name: "com.android.tethering.inprocess", |
| 76 | apps: [ |
Remi NGUYEN VAN | 2fb22c2 | 2021-03-12 15:04:29 +0000 | [diff] [blame] | 77 | "ServiceConnectivityResources", |
markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 78 | "InProcessTethering", |
| 79 | ], |
| 80 | } |