2019-11-28 02:17:03 +00: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 22:45:04 +00:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2021-11-22 02:36:32 +00:00
|
|
|
// Defaults to enable/disable java targets which uses development APIs. "enabled" may have a
|
|
|
|
// different value depending on the branch.
|
|
|
|
java_defaults {
|
|
|
|
name: "ConnectivityNextEnableDefaults",
|
2021-11-24 07:34:39 +00:00
|
|
|
enabled: false,
|
2021-11-22 02:36:32 +00:00
|
|
|
}
|
|
|
|
apex_defaults {
|
|
|
|
name: "ConnectivityApexDefaults",
|
|
|
|
// Tethering app to include in the AOSP apex. Branches that disable the "next" targets may use
|
|
|
|
// a stable tethering app instead, but will generally override the AOSP apex to use updatable
|
|
|
|
// package names and keys, so that apex will be unused anyway.
|
2021-11-24 07:34:39 +00:00
|
|
|
apps: ["Tethering"], // Replace to "Tethering" if ConnectivityNextEnableDefaults is false.
|
2021-11-22 02:36:32 +00:00
|
|
|
}
|
|
|
|
// This is a placeholder comment to avoid merge conflicts
|
|
|
|
// as the above target may have different "enabled" values
|
|
|
|
// depending on the branch
|
|
|
|
|
2019-11-28 02:17:03 +00:00
|
|
|
apex {
|
2019-12-18 09:47:26 +00:00
|
|
|
name: "com.android.tethering",
|
2021-11-22 02:36:32 +00:00
|
|
|
defaults: ["ConnectivityApexDefaults"],
|
2021-01-13 06:44:38 +00:00
|
|
|
compile_multilib: "both",
|
|
|
|
updatable: true,
|
|
|
|
min_sdk_version: "30",
|
2021-05-12 12:28:58 +00:00
|
|
|
bootclasspath_fragments: [
|
|
|
|
"com.android.tethering-bootclasspath-fragment",
|
|
|
|
],
|
2021-01-08 01:19:44 +00:00
|
|
|
java_libs: [
|
|
|
|
"service-connectivity",
|
|
|
|
],
|
2021-01-13 06:44:38 +00:00
|
|
|
multilib: {
|
|
|
|
first: {
|
2021-05-26 09:46:20 +00:00
|
|
|
jni_libs: ["libservice-connectivity"],
|
2021-01-13 06:44:38 +00:00
|
|
|
},
|
|
|
|
both: {
|
|
|
|
jni_libs: ["libframework-connectivity-jni"],
|
2021-05-26 09:46:20 +00:00
|
|
|
},
|
2021-01-13 06:44:38 +00:00
|
|
|
},
|
2021-01-15 04:02:08 +00:00
|
|
|
bpfs: [
|
|
|
|
"offload.o",
|
|
|
|
"test.o",
|
|
|
|
],
|
2021-03-08 14:09:31 +00:00
|
|
|
apps: [
|
|
|
|
"ServiceConnectivityResources",
|
|
|
|
],
|
2021-05-20 16:53:46 +00:00
|
|
|
prebuilts: ["current_sdkinfo"],
|
2019-11-28 02:17:03 +00:00
|
|
|
manifest: "manifest.json",
|
2019-12-18 09:47:26 +00: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 02:17:03 +00:00
|
|
|
|
|
|
|
androidManifest: "AndroidManifest.xml",
|
|
|
|
}
|
|
|
|
|
|
|
|
apex_key {
|
2019-12-18 09:47:26 +00:00
|
|
|
name: "com.android.tethering.key",
|
|
|
|
public_key: "com.android.tethering.avbpubkey",
|
|
|
|
private_key: "com.android.tethering.pem",
|
2019-11-28 02:17:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
android_app_certificate {
|
2019-12-18 09:47:26 +00:00
|
|
|
name: "com.android.tethering.certificate",
|
|
|
|
certificate: "com.android.tethering",
|
2019-11-28 02:17:03 +00:00
|
|
|
}
|
2020-05-05 09:42:44 +00:00
|
|
|
|
2021-05-12 12:28:58 +00:00
|
|
|
// Encapsulate the contributions made by the com.android.tethering to the bootclasspath.
|
|
|
|
bootclasspath_fragment {
|
|
|
|
name: "com.android.tethering-bootclasspath-fragment",
|
|
|
|
contents: [
|
|
|
|
"framework-connectivity",
|
2021-12-14 01:30:22 +00:00
|
|
|
"framework-connectivity-tiramisu",
|
2021-05-12 12:28:58 +00:00
|
|
|
"framework-tethering",
|
|
|
|
],
|
|
|
|
apex_available: ["com.android.tethering"],
|
2021-05-26 09:46:20 +00: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",
|
|
|
|
],
|
|
|
|
|
|
|
|
// Additional hidden API flag files to override the defaults. This must only be
|
|
|
|
// modified by the Soong or platform compat team.
|
|
|
|
hidden_api: {
|
2021-12-14 01:30:22 +00:00
|
|
|
max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-loprio.txt"],
|
2021-05-26 09:46:20 +00:00
|
|
|
max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
|
|
|
|
unsupported: ["hiddenapi/hiddenapi-unsupported.txt"],
|
|
|
|
},
|
2021-05-12 12:28:58 +00:00
|
|
|
}
|
|
|
|
|
2020-05-05 09:42:44 +00: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 09:42:44 +00:00
|
|
|
"InProcessTethering",
|
|
|
|
],
|
|
|
|
}
|