Merge "Add build targets for non-mainline NetworkStack" into qt-dev

This commit is contained in:
Remi NGUYEN VAN
2019-05-15 10:55:49 +00:00
committed by Android (Google) Code Review
3 changed files with 38 additions and 9 deletions

View File

@@ -14,12 +14,11 @@
// limitations under the License.
//
android_app {
name: "CaptivePortalLogin",
java_defaults {
name: "CaptivePortalLoginDefaults",
srcs: ["src/**/*.java"],
sdk_version: "system_current",
min_sdk_version: "28",
certificate: "networkstack",
static_libs: [
"androidx.legacy_legacy-support-v4",
"metrics-constants-protos",
@@ -27,3 +26,18 @@ android_app {
],
manifest: "AndroidManifest.xml",
}
android_app {
name: "CaptivePortalLogin",
defaults: ["CaptivePortalLoginDefaults"],
certificate: "networkstack",
}
// Alternative CaptivePortalLogin signed with the platform cert, to use
// with InProcessNetworkStack.
android_app {
name: "PlatformCaptivePortalLogin",
defaults: ["CaptivePortalLoginDefaults"],
certificate: "platform",
overrides: ["CaptivePortalLogin"],
}

View File

@@ -14,15 +14,28 @@
// limitations under the License.
//
// Stub APK to define permissions for NetworkStack
android_app {
name: "NetworkPermissionConfig",
java_defaults {
name: "NetworkPermissionConfigDefaults",
// TODO: mark app as hasCode=false in manifest once soong stops complaining about apps without
// a classes.dex.
srcs: ["src/**/*.java"],
platform_apis: true,
min_sdk_version: "28",
certificate: "networkstack",
privileged: true,
manifest: "AndroidManifest.xml",
}
// Stub APK to define permissions for NetworkStack
android_app {
name: "NetworkPermissionConfig",
defaults: ["NetworkPermissionConfigDefaults"],
certificate: "networkstack",
}
// Alternative stub APK signed with platform certificate. To use with InProcessNetworkStack.
android_app {
name: "PlatformNetworkPermissionConfig",
defaults: ["NetworkPermissionConfigDefaults"],
certificate: "platform",
overrides: ["NetworkPermissionConfig"],
}

View File

@@ -98,8 +98,6 @@ java_defaults {
optimize: {
proguard_flags_files: ["proguard.flags"],
},
// The permission configuration *must* be included to ensure security of the device
required: ["NetworkPermissionConfig"],
}
// Non-updatable network stack running in the system server process for devices not using the module
@@ -110,6 +108,8 @@ android_app {
manifest: "AndroidManifest_InProcess.xml",
// InProcessNetworkStack is a replacement for NetworkStack
overrides: ["NetworkStack"],
// The permission configuration *must* be included to ensure security of the device
required: ["PlatformNetworkPermissionConfig"],
}
// Updatable network stack packaged as an application
@@ -119,6 +119,8 @@ android_app {
certificate: "networkstack",
manifest: "AndroidManifest.xml",
use_embedded_native_libs: true,
// The permission configuration *must* be included to ensure security of the device
required: ["NetworkPermissionConfig"],
}
genrule {