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

Commit a3a430e4 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 6a294ce7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ class LockScreen extends LinearLayout implements KeyguardScreen, KeyguardUpdateM
    private boolean shouldEnableMenuKey() {
        final Resources res = getResources();
        final boolean configDisabled = res.getBoolean(R.bool.config_disableMenuKeyInLockScreen);
        final boolean isMonkey = SystemProperties.getBoolean("ro.monkey", false);
        final boolean isMonkey = SystemProperties.getBoolean("monkey.running", false);
        final boolean fileOverride = (new File(ENABLE_MENU_KEY_FILE)).exists();
        return !configDisabled || isMonkey || fileOverride;
    }