From 0ef41fbca2491d79e02373b70d71c7cdada82960 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Mon, 10 May 2021 14:45:32 +0000 Subject: [PATCH] Add back @UnsupportedAppUsage to IS_DEBUGGABLE The annotation was removed when adding the constant to the public API, but it was removed from the public API in favor of Build.isDebuggable() in a later change. Add back the @UnsupportedAppUsage annotation that should have been added back when removing the constant from the public API. Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33 Fixes: 187432390 Test: m --- core/java/android/os/Build.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index e47ffcc4ff4ce..966291b0891cd 100755 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -1311,6 +1311,7 @@ public class Build { * selinux into "permissive" mode in particular. * @hide */ + @UnsupportedAppUsage public static final boolean IS_DEBUGGABLE = SystemProperties.getInt("ro.debuggable", 0) == 1;