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 | 6d575ca | 2021-01-13 15:44:38 +0900 | [diff] [blame] | 23 | compile_multilib: "both", |
| 24 | updatable: true, |
| 25 | min_sdk_version: "30", |
satayev | 8bb425a | 2021-05-12 13:28:58 +0100 | [diff] [blame] | 26 | bootclasspath_fragments: [ |
| 27 | "com.android.tethering-bootclasspath-fragment", |
| 28 | ], |
Remi NGUYEN VAN | 2812f60 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 29 | java_libs: [ |
Remi NGUYEN VAN | 2812f60 | 2021-01-08 01:19:44 +0000 | [diff] [blame] | 30 | "service-connectivity", |
| 31 | ], |
Remi NGUYEN VAN | 6d575ca | 2021-01-13 15:44:38 +0900 | [diff] [blame] | 32 | multilib: { |
| 33 | first: { |
Paul Duffin | b28cb44 | 2021-05-26 10:46:20 +0100 | [diff] [blame^] | 34 | jni_libs: ["libservice-connectivity"], |
Remi NGUYEN VAN | 6d575ca | 2021-01-13 15:44:38 +0900 | [diff] [blame] | 35 | }, |
| 36 | both: { |
| 37 | jni_libs: ["libframework-connectivity-jni"], |
Paul Duffin | b28cb44 | 2021-05-26 10:46:20 +0100 | [diff] [blame^] | 38 | }, |
Remi NGUYEN VAN | 6d575ca | 2021-01-13 15:44:38 +0900 | [diff] [blame] | 39 | }, |
Maciej Żenczykowski | e9810ff | 2021-01-14 20:02:08 -0800 | [diff] [blame] | 40 | bpfs: [ |
| 41 | "offload.o", |
| 42 | "test.o", |
| 43 | ], |
Remi NGUYEN VAN | affd94b | 2021-03-08 23:09:31 +0900 | [diff] [blame] | 44 | apps: [ |
| 45 | "ServiceConnectivityResources", |
| 46 | "Tethering", |
| 47 | ], |
Anton Hansson | 89eb55f | 2021-05-20 17:53:46 +0100 | [diff] [blame] | 48 | prebuilts: ["current_sdkinfo"], |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 49 | manifest: "manifest.json", |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 50 | key: "com.android.tethering.key", |
Nikita Ioffe | 5f33357 | 2021-02-04 01:42:45 +0000 | [diff] [blame] | 51 | // Indicates that pre-installed version of this apex can be compressed. |
| 52 | // Whether it actually will be compressed is controlled on per-device basis. |
| 53 | compressible: true, |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 54 | |
| 55 | androidManifest: "AndroidManifest.xml", |
| 56 | } |
| 57 | |
| 58 | apex_key { |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 59 | name: "com.android.tethering.key", |
| 60 | public_key: "com.android.tethering.avbpubkey", |
| 61 | private_key: "com.android.tethering.pem", |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | android_app_certificate { |
markchien | 8f831c0 | 2019-12-18 17:47:26 +0800 | [diff] [blame] | 65 | name: "com.android.tethering.certificate", |
| 66 | certificate: "com.android.tethering", |
markchien | 0abdd11 | 2019-11-28 10:17:03 +0800 | [diff] [blame] | 67 | } |
markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 68 | |
satayev | 8bb425a | 2021-05-12 13:28:58 +0100 | [diff] [blame] | 69 | // Encapsulate the contributions made by the com.android.tethering to the bootclasspath. |
| 70 | bootclasspath_fragment { |
| 71 | name: "com.android.tethering-bootclasspath-fragment", |
| 72 | contents: [ |
| 73 | "framework-connectivity", |
| 74 | "framework-tethering", |
| 75 | ], |
| 76 | apex_available: ["com.android.tethering"], |
Paul Duffin | b28cb44 | 2021-05-26 10:46:20 +0100 | [diff] [blame^] | 77 | |
| 78 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 79 | fragments: [ |
| 80 | { |
| 81 | apex: "com.android.art", |
| 82 | module: "art-bootclasspath-fragment", |
| 83 | }, |
| 84 | ], |
| 85 | |
| 86 | // Additional stubs libraries that this fragment's contents use which are |
| 87 | // not provided by another bootclasspath_fragment. |
| 88 | additional_stubs: [ |
| 89 | "android-non-updatable", |
| 90 | ], |
| 91 | |
| 92 | // Additional hidden API flag files to override the defaults. This must only be |
| 93 | // modified by the Soong or platform compat team. |
| 94 | hidden_api: { |
| 95 | max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], |
| 96 | unsupported: ["hiddenapi/hiddenapi-unsupported.txt"], |
| 97 | }, |
satayev | 8bb425a | 2021-05-12 13:28:58 +0100 | [diff] [blame] | 98 | } |
| 99 | |
markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 100 | override_apex { |
| 101 | name: "com.android.tethering.inprocess", |
| 102 | base: "com.android.tethering", |
| 103 | package_name: "com.android.tethering.inprocess", |
| 104 | apps: [ |
Remi NGUYEN VAN | f0f0cca | 2021-03-12 15:04:29 +0000 | [diff] [blame] | 105 | "ServiceConnectivityResources", |
markchien | dbaff66 | 2020-05-05 17:42:44 +0800 | [diff] [blame] | 106 | "InProcessTethering", |
| 107 | ], |
| 108 | } |