diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2019-05-15 16:14:51 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2019-05-21 12:20:21 +0900 |
commit | 90d9a8ef688dea6bdd971d61934b984b89661956 (patch) | |
tree | 6be0e80dd9e5666ed1b9e19fd964260eb44505a2 /Android.bp | |
parent | a0fe0d48e7f4fc71a0e89734e3e3e816dbfc3fe2 (diff) | |
download | NetworkPermissionConfig-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
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -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"], +} |