diff options
author | Chiachang Wang <chiachangwang@google.com> | 2021-10-01 09:12:27 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-10-01 09:12:27 +0000 |
commit | 408042a7fa24d99438a6877862983e3c9506483d (patch) | |
tree | a8c034454e4e3100c9d29ec9ec2740f8c2ec3482 | |
parent | 1e07a915027a2ae8b94ca7789fd04211101b0f99 (diff) | |
parent | c035a4f6c1cd930143ab40bc6513ef9f3fafe3f5 (diff) | |
download | NetworkPermissionConfig-408042a7fa24d99438a6877862983e3c9506483d.tar.gz |
Cleanup empty class in NetworkPermissionConfig am: a46f16d7ec am: c035a4f6c1
Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkPermissionConfig/+/1836236
Change-Id: I14224458f3de152e2551441b6bb787525d1a25ca
-rw-r--r-- | Android.bp | 3 | ||||
-rw-r--r-- | AndroidManifest.xml | 3 | ||||
-rw-r--r-- | src/com/android/server/NetworkPermissionConfig.java | 26 |
3 files changed, 2 insertions, 30 deletions
@@ -20,9 +20,6 @@ package { 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, target_sdk_version: "30", min_sdk_version: "29", diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 219d1cd..9fa7b92 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -40,5 +40,6 @@ <!-- The application must declare usesClearTraffic because it uses the same UID as the NetworkStack module, which does cleartext traffic (b/161860610). --> <application android:name="com.android.server.NetworkPermissionConfig" - android:usesCleartextTraffic="true"/> + android:usesCleartextTraffic="true" + android:hasCode="false"/> </manifest> diff --git a/src/com/android/server/NetworkPermissionConfig.java b/src/com/android/server/NetworkPermissionConfig.java deleted file mode 100644 index c904e23..0000000 --- a/src/com/android/server/NetworkPermissionConfig.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2019 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.server; - -import android.app.Application; - -/** - * Empty application for NetworkPermissionConfig that only exists because - * soong builds complain if APKs have no source file. - */ -public class NetworkPermissionConfig extends Application { -} |