So that Monkey can set it before running and reset it after running.
@Override
protected void onResume() {
super.onResume();
-
+
mEnableAdb.setChecked(Settings.Secure.getInt(getContentResolver(),
Settings.Secure.ADB_ENABLED, 0) != 0);
mKeepScreenOn.setChecked(Settings.System.getInt(getContentResolver(),
// Those monkeys kept committing suicide, so we add this property
// to disable this functionality
- if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
+ if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return false;
}
// Input Method stuff
// Those monkeys kept committing suicide, so we add this property
// to disable this functionality
- if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
+ if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return false;
}
*/
private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
public void onClick(View v) {
-
+
// Those monkeys kept committing suicide, so we add this property
// to disable going through with the master clear
- if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
+ if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return;
}
-
+
ICheckinService service =
ICheckinService.Stub.asInterface(ServiceManager.getService("checkin"));
if (service != null) {
private View mFinalView;
private Button mFinalButton;
- /**
+ /**
* The user has gone through the multiple confirmation, so now we go ahead
* and invoke the Mount Service to format the SD card.
*/
private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
public void onClick(View v) {
-
+
// Those monkeys kept committing suicide, so we add this property
// to disable going through with the format
- if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
+ if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
return;
}
IMountService service =