1//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17filegroup {
18    name: "framework-connectivity-tiramisu-updatable-sources",
19    defaults: ["framework-sources-module-defaults"],
20    srcs: [
21        "src/**/*.java",
22        "src/**/*.aidl",
23    ],
24    path: "src",
25    visibility: ["//packages/modules/Connectivity:__subpackages__"],
26}
27
28cc_library_shared {
29    name: "libframework-connectivity-tiramisu-jni",
30    min_sdk_version: "30",
31    cflags: [
32        "-Wall",
33        "-Werror",
34        "-Wno-unused-parameter",
35        // Don't warn about S API usage even with
36        // min_sdk 30: the library is only loaded
37        // on S+ devices
38        "-Wno-unguarded-availability",
39        "-Wthread-safety",
40    ],
41    srcs: [
42        "jni/android_net_TrafficStats.cpp",
43        "jni/onload.cpp",
44    ],
45    shared_libs: [
46        "libandroid",
47        "liblog",
48        "libnativehelper",
49    ],
50    stl: "none",
51    apex_available: [
52        "com.android.tethering",
53    ],
54}
55