summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2019-05-15 16:14:51 +0900
committerRemi NGUYEN VAN <reminv@google.com>2019-05-21 12:20:21 +0900
commit90d9a8ef688dea6bdd971d61934b984b89661956 (patch)
tree6be0e80dd9e5666ed1b9e19fd964260eb44505a2
parenta0fe0d48e7f4fc71a0e89734e3e3e816dbfc3fe2 (diff)
downloadNetworkPermissionConfig-90d9a8ef688dea6bdd971d61934b984b89661956.tar.gz
Add build targets for non-mainline NetworkStackmaster_migrated
Add PlatformCaptivePortalLogin and PlatformNetworkPermissionConfig build targets to override CaptivePortalLogin and NetworkPermissionConfig with platform-key-signed packages easily. The added packages are unused by default but can simplify setup for OEMs that use InProcessNetworkStack. Bug: 132635211 Test: Added the new packages to sailfish build, built image: device has the proper packages signed with the right keys, networking and captive portal working fine. (clean cherry-pick from qt-dev) Change-Id: Id7590c7d10958467e900fd32a70de53398f18721 Merged-In: I09656deb6ba928f56b478adebb60268fa6f484b0
-rw-r--r--Android.bp21
1 files changed, 17 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index d0d3276..6e50459 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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"],
+}