Rename ro.monkey to monkey.running
So that Monkey can set it before running and reset it after running.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -206,7 +206,7 @@ public class LanguageSettings extends PreferenceActivity {
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ public class MasterClear extends Activity {
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ public class MediaFormat extends Activity {
|
||||
|
||||
// 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 =
|
||||
|
Reference in New Issue
Block a user