blob: 2a9e31a6aa58d00bf0ef450be7e45920e8b57e02 [file] [log] [blame]
markchien0abdd112019-11-28 10:17:03 +08001//
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 Badour97e6be22021-02-12 14:45:04 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
markchien0abdd112019-11-28 10:17:03 +080021apex {
markchien8f831c02019-12-18 17:47:26 +080022 name: "com.android.tethering",
Remi NGUYEN VAN6d575ca2021-01-13 15:44:38 +090023 compile_multilib: "both",
24 updatable: true,
25 min_sdk_version: "30",
satayev8bb425a2021-05-12 13:28:58 +010026 bootclasspath_fragments: [
27 "com.android.tethering-bootclasspath-fragment",
28 ],
Remi NGUYEN VAN2812f602021-01-08 01:19:44 +000029 java_libs: [
Remi NGUYEN VAN2812f602021-01-08 01:19:44 +000030 "service-connectivity",
31 ],
Remi NGUYEN VAN6d575ca2021-01-13 15:44:38 +090032 multilib: {
33 first: {
34 jni_libs: ["libservice-connectivity"]
35 },
36 both: {
37 jni_libs: ["libframework-connectivity-jni"],
38 }
39 },
Maciej Żenczykowskie9810ff2021-01-14 20:02:08 -080040 bpfs: [
41 "offload.o",
42 "test.o",
43 ],
Remi NGUYEN VANaffd94b2021-03-08 23:09:31 +090044 apps: [
45 "ServiceConnectivityResources",
46 "Tethering",
47 ],
Anton Hansson89eb55f2021-05-20 17:53:46 +010048 prebuilts: ["current_sdkinfo"],
markchien0abdd112019-11-28 10:17:03 +080049 manifest: "manifest.json",
markchien8f831c02019-12-18 17:47:26 +080050 key: "com.android.tethering.key",
Nikita Ioffe5f333572021-02-04 01:42:45 +000051 // 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,
markchien0abdd112019-11-28 10:17:03 +080054
55 androidManifest: "AndroidManifest.xml",
56}
57
58apex_key {
markchien8f831c02019-12-18 17:47:26 +080059 name: "com.android.tethering.key",
60 public_key: "com.android.tethering.avbpubkey",
61 private_key: "com.android.tethering.pem",
markchien0abdd112019-11-28 10:17:03 +080062}
63
64android_app_certificate {
markchien8f831c02019-12-18 17:47:26 +080065 name: "com.android.tethering.certificate",
66 certificate: "com.android.tethering",
markchien0abdd112019-11-28 10:17:03 +080067}
markchiendbaff662020-05-05 17:42:44 +080068
satayev8bb425a2021-05-12 13:28:58 +010069// Encapsulate the contributions made by the com.android.tethering to the bootclasspath.
70bootclasspath_fragment {
71 name: "com.android.tethering-bootclasspath-fragment",
72 contents: [
73 "framework-connectivity",
74 "framework-tethering",
75 ],
76 apex_available: ["com.android.tethering"],
77}
78
markchiendbaff662020-05-05 17:42:44 +080079override_apex {
80 name: "com.android.tethering.inprocess",
81 base: "com.android.tethering",
82 package_name: "com.android.tethering.inprocess",
83 apps: [
Remi NGUYEN VANf0f0cca2021-03-12 15:04:29 +000084 "ServiceConnectivityResources",
markchiendbaff662020-05-05 17:42:44 +080085 "InProcessTethering",
86 ],
87}