diff options
| author | 2021-03-04 03:02:56 +0000 | |
|---|---|---|
| committer | 2021-03-04 03:02:56 +0000 | |
| commit | 9c16d8e25d96ab9ce350c6a611f10a43e91a86cc (patch) | |
| tree | 7f298004e7484dc5496c0a58054fa6756d303d0c | |
| parent | ae0fa6d359dc1c53f5eae44c1959d2ad9c7c0f87 (diff) | |
| parent | e5e38431766150b975605997c293550e8029b108 (diff) | |
Merge "Add Build.IS_DEBUGGABLE to public API"
| -rw-r--r-- | core/api/current.txt | 1 | ||||
| -rwxr-xr-x | core/java/android/os/Build.java | 8 | 
2 files changed, 6 insertions, 3 deletions
| diff --git a/core/api/current.txt b/core/api/current.txt index 8fbcfb3ef055..8b283a2c6fea 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -29261,6 +29261,7 @@ package android.os {      field public static final String HARDWARE;      field public static final String HOST;      field public static final String ID; +    field public static final boolean IS_DEBUGGABLE;      field public static final String MANUFACTURER;      field public static final String MODEL;      field @NonNull public static final String ODM_SKU; diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index 5ae53b502330..d7d3e5881219 100755 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -1287,10 +1287,12 @@ public class Build {      public static final String HOST = getString("ro.build.host");      /** -     * Returns true if we are running a debug build such as "user-debug" or "eng". -     * @hide +     * Returns true if the device is running a debuggable build such as "userdebug" or "eng". +     * +     * Debuggable builds allow users to gain root access via local shell, attach debuggers to any +     * application regardless of whether they have the "debuggable" attribute set, or downgrade +     * selinux into "permissive" mode in particular.       */ -    @UnsupportedAppUsage      public static final boolean IS_DEBUGGABLE =              SystemProperties.getInt("ro.debuggable", 0) == 1; |