Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50cb76f5 authored by Ying Wang's avatar Ying Wang
Browse files

Rename ro.monkey to monkey.running

So that Monkey can set it before running and reset it after running.
parent d8eec52a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
        }

+1 −1
Original line number Diff line number Diff line
@@ -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;
        }

+3 −3
Original line number Diff line number Diff line
@@ -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;
                }

+3 −3
Original line number Diff line number Diff line
@@ -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 =