summaryrefslogtreecommitdiff
path: root/core/java/android/os/Build.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-05-10 14:45:32 +0000
committerRemi NGUYEN VAN <reminv@google.com>2021-05-10 14:45:38 +0000
commit0ef41fbca2491d79e02373b70d71c7cdada82960 (patch)
treeb8623e89960ffe01cd2307bd738cf1743bea46db /core/java/android/os/Build.java
parentc27a2ab087b6db8a5db6566b43430a45b8463f66 (diff)
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
Diffstat (limited to 'core/java/android/os/Build.java')
-rwxr-xr-xcore/java/android/os/Build.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java
index e47ffcc4ff4c..966291b0891c 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;