Merge "Add Build.IS_DEBUGGABLE to public API"
This commit is contained in:
@@ -29261,6 +29261,7 @@ package android.os {
|
|||||||
field public static final String HARDWARE;
|
field public static final String HARDWARE;
|
||||||
field public static final String HOST;
|
field public static final String HOST;
|
||||||
field public static final String ID;
|
field public static final String ID;
|
||||||
|
field public static final boolean IS_DEBUGGABLE;
|
||||||
field public static final String MANUFACTURER;
|
field public static final String MANUFACTURER;
|
||||||
field public static final String MODEL;
|
field public static final String MODEL;
|
||||||
field @NonNull public static final String ODM_SKU;
|
field @NonNull public static final String ODM_SKU;
|
||||||
|
|||||||
@@ -1287,10 +1287,12 @@ public class Build {
|
|||||||
public static final String HOST = getString("ro.build.host");
|
public static final String HOST = getString("ro.build.host");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if we are running a debug build such as "user-debug" or "eng".
|
* Returns true if the device is running a debuggable build such as "userdebug" or "eng".
|
||||||
* @hide
|
*
|
||||||
|
* 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 =
|
public static final boolean IS_DEBUGGABLE =
|
||||||
SystemProperties.getInt("ro.debuggable", 0) == 1;
|
SystemProperties.getInt("ro.debuggable", 0) == 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user