From aa2ba8e941dd15e796d6b865e30ec73fc9193d43 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Mon, 13 Jan 2020 09:43:21 -0800 Subject: [PATCH] Expose logToRadioBuffer as system API Bug: 144374158 Test: make Change-Id: I2d25a5844733ed7f1e0bb3f66d39f746f0f7acd8 --- api/module-lib-current.txt | 8 ++++++++ core/java/android/util/Log.java | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/api/module-lib-current.txt b/api/module-lib-current.txt index c8253a0b9e88a..1cb1c20c738c6 100644 --- a/api/module-lib-current.txt +++ b/api/module-lib-current.txt @@ -124,3 +124,11 @@ package android.timezone { } +package android.util { + + public final class Log { + method public static int logToRadioBuffer(int, @Nullable String, @Nullable String); + } + +} + diff --git a/core/java/android/util/Log.java b/core/java/android/util/Log.java index f324113da9258..9921bf0bc5278 100644 --- a/core/java/android/util/Log.java +++ b/core/java/android/util/Log.java @@ -19,6 +19,7 @@ package android.util; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; +import android.annotation.SystemApi; import android.compat.annotation.UnsupportedAppUsage; import android.os.DeadSystemException; @@ -400,7 +401,7 @@ public final class Log { * @param message The message you would like logged. * @hide */ - // @SystemApi(client= SystemApi.Client.MODULE_LIBRARIES) // TODO Uncomment once http://ag/9956147 is in. + @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) public static int logToRadioBuffer(@Level int priority, @Nullable String tag, @Nullable String message) { return println_native(LOG_ID_RADIO, priority, tag, message);