Revert "Expose ro.secure test endpoint for cts."

This reverts commit 045c55c4b3.

Reason for revert: As of ag/20645656 , this endpoint is not needed anymore. The affected CTS tests were moved to host tests in aosp/2319610

Bug: 260183784
Change-Id: I0f53177d2134da809efe1acae86a7203379c4bdb
This commit is contained in:
Alessandra Loro
2022-12-06 09:54:44 +00:00
committed by Android (Google) Code Review
parent 045c55c4b3
commit 9228d2f1e8
2 changed files with 0 additions and 23 deletions

View File

@@ -1711,7 +1711,6 @@ package android.os {
public class Build {
method public static boolean is64BitAbi(String);
method public static boolean isDebuggable();
method public static boolean isSecure();
field public static final boolean IS_EMULATOR;
}

View File

@@ -1446,28 +1446,6 @@ public class Build {
return IS_DEBUGGABLE;
}
/**
* Returns true if the device is running a secure build, such as "user" or "userdebug".
*
* Secure builds drop adbd privileges by default, though debuggable builds still allow users
* to gain root access via local shell. See should_drop_privileges() in adb for details.
* @hide
*/
private static final boolean IS_SECURE =
SystemProperties.getBoolean("ro.secure", true);
/**
* Returns true if the device is running a secure build, such as "user" or "userdebug".
*
* Secure builds drop adbd privileges by default, though debuggable builds still allow users
* to gain root access via local shell. See should_drop_privileges() in adb for details.
* @hide
*/
@TestApi
public static boolean isSecure() {
return IS_SECURE;
}
/** {@hide} */
public static final boolean IS_ENG = "eng".equals(TYPE);
/** {@hide} */