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

Commit 424cba15 authored by Kun Niu's avatar Kun Niu Committed by android-build-merger
Browse files

Merge "Create a NetworkStack test version module."

am: 05bb41f1

Change-Id: If38fd503b32441ce3b3b7d1c6630add5fe74e9b4
parents 666abb39 05bb41f1
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -132,3 +132,21 @@ genrule {
         " --javaPackage com.android.networkstack.metrics --javaClass NetworkStackStatsLog",
    out: ["com/android/networkstack/metrics/NetworkStackStatsLog.java"],
}

genrule {
    name: "NetworkStackTestAndroidManifest",
    srcs: ["AndroidManifest.xml"],
    out: ["TestAndroidManifest.xml"],
    cmd: "sed 's/versionCode=\".*\"/versionCode=\"300000000\"/' $(in) > $(out)",
}

android_app {
    name: "TestNetworkStack",
    defaults: ["NetworkStackAppCommon"],
    certificate: "networkstack",
    manifest: ":NetworkStackTestAndroidManifest",
    use_embedded_native_libs: true,
    // The permission configuration *must* be included to ensure security of the device
    required: ["NetworkPermissionConfig"],
}