Rename ro.monkey to monkey.running
So that Monkey can set it before running and reset it after running.
This commit is contained in:
@@ -62,7 +62,7 @@ public class DevelopmentSettings extends PreferenceActivity
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
||||
|
||||
mEnableAdb.setChecked(Settings.Secure.getInt(getContentResolver(),
|
||||
Settings.Secure.ADB_ENABLED, 0) != 0);
|
||||
mKeepScreenOn.setChecked(Settings.System.getInt(getContentResolver(),
|
||||
@@ -76,7 +76,7 @@ public class DevelopmentSettings extends PreferenceActivity
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user