Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbcf179f authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7929046 from 4b137660 to mainline-adbd-release

Change-Id: If6a33f2ad05998a7ae6c25135f28bb7ab1947a83
parents dcf6951a 4b137660
Loading
Loading
Loading
Loading
+42 −13
Original line number Diff line number Diff line
@@ -45,6 +45,17 @@ package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

// Defaults to enable/disable java targets that depend on
// NetworkStackNext, which uses development APIs. "enabled" may
// have a different value depending on the branch.
java_defaults {
    name: "NetworkStackNextEnableDefaults",
    enabled: true,
}
// This is a placeholder comment to avoid merge conflicts
// as the above target may have different "enabled" values
// depending on the branch

java_defaults {
    name: "NetworkStackDevApiLevel",
    min_sdk_version: "29",
@@ -68,7 +79,7 @@ java_defaults {
    name: "NetworkStackShimsDefaults",
    libs: [
        "androidx.annotation_annotation",
        "networkstack-client",
        "networkstack-aidl-latest",
    ],
    static_libs : [
        "modules-utils-build_system"
@@ -119,7 +130,7 @@ java_library {
    sdk_version: "system_30",
    visibility: ["//visibility:private"],
    lint: {
        baseline_filename: "lint-baseline-api-30-shims.xml",
        strict_updatability_linting: true,
    },
}

@@ -214,8 +225,10 @@ java_defaults {
    libs: ["unsupportedappusage"],
    static_libs: [
        "androidx.annotation_annotation",
        "modules-utils-build_system",
        "modules-utils-preconditions",
        "modules-utils-statemachine",
        "netd_aidl_interface-lateststable-java",
        "netlink-client",
        "networkstack-client",
        "net-utils-framework-common",
        // See note on statsprotos when adding/updating proto build rules
@@ -223,6 +236,7 @@ java_defaults {
        "statsprotos",
        "captiveportal-lib",
        "net-utils-device-common",
        "net-utils-device-common-netlink",
    ],
    plugins: ["java_api_finder"],
}
@@ -230,7 +244,11 @@ java_defaults {
// The versions of the android library containing network stack code compiled for each SDK variant.
android_library {
    name: "NetworkStackApiCurrentLib",
    defaults: ["NetworkStackDevApiLevel", "NetworkStackAndroidLibraryDefaults"],
    defaults: [
        "NetworkStackDevApiLevel",
        "NetworkStackAndroidLibraryDefaults",
        "NetworkStackNextEnableDefaults",
    ],
    srcs: [
        "src/**/*.java",
        ":statslog-networkstack-java-gen-current"
@@ -244,9 +262,7 @@ android_library {
        "//packages/modules/NetworkStack/tests/unit",
        "//packages/modules/NetworkStack/tests/integration",
    ],
    lint: {
        baseline_filename: "lint-baseline-current-lib.xml",
    },
    lint: { strict_updatability_linting: true },
}

android_library {
@@ -267,9 +283,7 @@ android_library {
        "//packages/modules/NetworkStack/tests/unit",
        "//packages/modules/NetworkStack/tests/integration",
    ],
    lint: {
        baseline_filename: "lint-baseline-stable-lib.xml",
    },
    lint: { strict_updatability_linting: true },
}

filegroup {
@@ -278,6 +292,7 @@ filegroup {
    visibility: [
        "//packages/modules/NetworkStack/tests/unit",
        "//packages/modules/NetworkStack/tests/integration",
        "//packages/modules/Connectivity/tests:__subpackages__",
        "//packages/modules/Connectivity/Tethering/tests/integration",
    ]
}
@@ -302,7 +317,11 @@ java_defaults {
// Non-updatable network stack running in the system server process for devices not using the module
android_app {
    name: "InProcessNetworkStack",
    defaults: [ "NetworkStackAppDefaults", "NetworkStackDevApiLevel"],
    defaults: [
        "NetworkStackAppDefaults",
        "NetworkStackDevApiLevel",
        "NetworkStackNextEnableDefaults",
    ],
    static_libs: ["NetworkStackApiCurrentLib"],
    certificate: "platform",
    manifest: "AndroidManifest_InProcess.xml",
@@ -320,7 +339,11 @@ android_app {
// Pre-merge the AndroidManifest for NetworkStackNext, so that its manifest can be merged on top
android_library {
    name: "NetworkStackNextManifestBase",
    defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"],
    defaults: [
        "NetworkStackAppDefaults",
        "NetworkStackDevApiLevel",
        "NetworkStackNextEnableDefaults",
    ],
    static_libs: ["NetworkStackApiCurrentLib"],
    manifest: "AndroidManifest.xml"
}
@@ -328,7 +351,11 @@ android_library {
// NetworkStack build targeting the current API release, for testing on in-development SDK
android_app {
    name: "NetworkStackNext",
    defaults: ["NetworkStackAppDefaults", "NetworkStackDevApiLevel"],
    defaults: [
        "NetworkStackAppDefaults",
        "NetworkStackDevApiLevel",
        "NetworkStackNextEnableDefaults",
    ],
    static_libs: ["NetworkStackNextManifestBase"],
    certificate: "networkstack",
    manifest: "AndroidManifest_Next.xml",
@@ -337,6 +364,7 @@ android_app {
        "NetworkPermissionConfig",
        "privapp_whitelist_com.android.networkstack",
    ],
    lint: { strict_updatability_linting: true },
}

// Updatable network stack for finalized API
@@ -352,6 +380,7 @@ android_app {
        "privapp_whitelist_com.android.networkstack",
    ],
    updatable: true,
    lint: { strict_updatability_linting: true },
}

cc_library_shared {
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
  android:sharedUserId="android.uid.networkstack"
  android:versionCode="319999900"
  android:versionName="s_aml_319999900"
  coreApp="true"
>
    <!-- Permissions must be defined here, and not in the base manifest, as the network stack
         running in the system server process does not need any permission, and having privileged
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.android.networkstack.inprocess"
          android:sharedUserId="android.uid.system"
          android:process="system">
          android:process="system"
          coreApp="true">
    <application>
        <service android:name="com.android.server.NetworkStackService"
                 android:process="system"
+2 −1
Original line number Diff line number Diff line
@@ -18,5 +18,6 @@
          package="com.android.networkstack"
          android:sharedUserId="android.uid.networkstack"
          android:versionCode="320000000"
          android:versionName="T-next">
          android:versionName="T-next"
          coreApp="true">
</manifest>
+2 −8
Original line number Diff line number Diff line
codewiz@google.com
jchalard@google.com
junyulai@google.com
lorenzo@google.com
maze@google.com
reminv@google.com
satk@google.com
xiaom@google.com
set noparent
file:platform/packages/modules/Connectivity:master:/OWNERS_core_networking
Loading