From 0580abcc9acfa5d5e0967d547263a10c3399d698 Mon Sep 17 00:00:00 2001 From: Junyu Lai Date: Mon, 17 Jan 2022 10:02:00 +0000 Subject: [PATCH] Create framework-connectivity shared filegroup Since data usage related code is going to move to mainline module, hidden classes and methods can no longer be accessed. However, some of the hidden classes in the platform are still needed, and cannot be moved because of other callers. Thus, create a shared srcs filegroup to allow these classes build with the module to solve the dependencies. Test: TH Bug: 204830222 (cherry-picked from ag/16656704) Change-Id: I3813bc2177b2f0b4237056f64c57c63fa29c3081 Merged-In: I3813bc2177b2f0b4237056f64c57c63fa29c3081 --- core/java/Android.bp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/java/Android.bp b/core/java/Android.bp index 778796311da4e..27f3fc53101cd 100644 --- a/core/java/Android.bp +++ b/core/java/Android.bp @@ -164,6 +164,18 @@ filegroup { "com/android/internal/util/IndentingPrintWriter.java", "com/android/internal/util/MessageUtils.java", "com/android/internal/util/WakeupMessage.java", + // TODO: delete as soon as NetworkStatsFactory stops using + "com/android/internal/util/ProcFileReader.java", + ], +} + +// keep these files in sync with the packages/modules/Connectivity jarjar-rules.txt for +// the connectivity module. +filegroup { + name: "framework-connectivity-api-shared-srcs", + srcs: [ + "android/util/IndentingPrintWriter.java", + "com/android/internal/util/FileRotator.java", ], }