2019-11-28 10:17:03 +08:00
|
|
|
//
|
|
|
|
|
// Copyright (C) 2019 The Android Open Source Project
|
|
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
//
|
|
|
|
|
|
2021-02-12 14:45:04 -08:00
|
|
|
package {
|
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-28 10:17:03 +08:00
|
|
|
apex {
|
2019-12-18 17:47:26 +08:00
|
|
|
name: "com.android.tethering",
|
2021-01-08 01:19:44 +00:00
|
|
|
// TODO: make updatable again once this contains only updatable artifacts (in particular, this
|
|
|
|
|
// cannot build as updatable unless service-connectivity builds against stable API).
|
2021-02-16 14:58:27 +00:00
|
|
|
updatable: false,
|
2021-01-08 01:19:44 +00:00
|
|
|
// min_sdk_version: "30",
|
2021-05-12 13:28:58 +01:00
|
|
|
bootclasspath_fragments: [
|
|
|
|
|
"com.android.tethering-bootclasspath-fragment",
|
|
|
|
|
],
|
2021-01-08 01:19:44 +00:00
|
|
|
java_libs: [
|
|
|
|
|
"service-connectivity",
|
|
|
|
|
],
|
|
|
|
|
jni_libs: [
|
|
|
|
|
"libservice-connectivity",
|
|
|
|
|
],
|
2021-01-14 20:02:08 -08:00
|
|
|
bpfs: [
|
|
|
|
|
"offload.o",
|
|
|
|
|
"test.o",
|
|
|
|
|
],
|
2021-03-08 23:09:31 +09:00
|
|
|
apps: [
|
|
|
|
|
"ServiceConnectivityResources",
|
|
|
|
|
"Tethering",
|
|
|
|
|
],
|
2021-05-20 17:53:46 +01:00
|
|
|
prebuilts: ["current_sdkinfo"],
|
2019-11-28 10:17:03 +08:00
|
|
|
manifest: "manifest.json",
|
2019-12-18 17:47:26 +08:00
|
|
|
key: "com.android.tethering.key",
|
2021-02-04 01:42:45 +00:00
|
|
|
// Indicates that pre-installed version of this apex can be compressed.
|
|
|
|
|
// Whether it actually will be compressed is controlled on per-device basis.
|
|
|
|
|
compressible: true,
|
2019-11-28 10:17:03 +08:00
|
|
|
|
|
|
|
|
androidManifest: "AndroidManifest.xml",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apex_key {
|
2019-12-18 17:47:26 +08:00
|
|
|
name: "com.android.tethering.key",
|
|
|
|
|
public_key: "com.android.tethering.avbpubkey",
|
|
|
|
|
private_key: "com.android.tethering.pem",
|
2019-11-28 10:17:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android_app_certificate {
|
2019-12-18 17:47:26 +08:00
|
|
|
name: "com.android.tethering.certificate",
|
|
|
|
|
certificate: "com.android.tethering",
|
2019-11-28 10:17:03 +08:00
|
|
|
}
|
2020-05-05 17:42:44 +08:00
|
|
|
|
2021-05-12 13:28:58 +01:00
|
|
|
// Encapsulate the contributions made by the com.android.tethering to the bootclasspath.
|
|
|
|
|
bootclasspath_fragment {
|
|
|
|
|
name: "com.android.tethering-bootclasspath-fragment",
|
|
|
|
|
contents: ["framework-tethering"],
|
|
|
|
|
apex_available: ["com.android.tethering"],
|
2021-05-26 10:46:20 +01:00
|
|
|
|
|
|
|
|
// The bootclasspath_fragments that provide APIs on which this depends.
|
|
|
|
|
fragments: [
|
|
|
|
|
{
|
|
|
|
|
apex: "com.android.art",
|
|
|
|
|
module: "art-bootclasspath-fragment",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
// Additional stubs libraries that this fragment's contents use which are
|
|
|
|
|
// not provided by another bootclasspath_fragment.
|
|
|
|
|
additional_stubs: [
|
|
|
|
|
"android-non-updatable",
|
|
|
|
|
],
|
2021-05-12 13:28:58 +01:00
|
|
|
}
|
|
|
|
|
|
2020-05-05 17:42:44 +08:00
|
|
|
override_apex {
|
|
|
|
|
name: "com.android.tethering.inprocess",
|
|
|
|
|
base: "com.android.tethering",
|
|
|
|
|
package_name: "com.android.tethering.inprocess",
|
|
|
|
|
apps: [
|
2021-03-12 15:04:29 +00:00
|
|
|
"ServiceConnectivityResources",
|
2020-05-05 17:42:44 +08:00
|
|
|
"InProcessTethering",
|
|
|
|
|
],
|
|
|
|
|
}
|