From a7e62844cf9d715c7946ff7ac7f0853735986fde Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 22 Jan 2022 11:51:54 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 24 ++++++++++++------------ servers/logcat.php | 8 ++++++++ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a589574..9324f93 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,9 +3,7 @@ - - - + diff --git a/servers/logcat.php b/servers/logcat.php index 0603df5..15bab07 100644 --- a/servers/logcat.php +++ b/servers/logcat.php @@ -11,10 +11,18 @@ while (true) { echo 'sleep ' . $device . "\n"; off($device); }, + 'Going to sleep due to power_button' => function () use ($device) { + echo 'sleep ' . $device . "\n"; + off($device); + }, 'Waking up from sleep' => function () use ($device) { echo 'wakeup ' . $device . "\n"; shieldRunActivity(null, true); }, + 'Waking up from Asleep' => function () use ($device) { + echo 'wakeup ' . $device . "\n"; + shieldRunActivity(null, true); + }, 'WindowManager: handleComboKeys keyCode: 25, keyAction: 1' => function () use ($device) { echo 'volume-down ' . $device . "\n"; volume(config('VOLUME_STEP'), '-'); -- 2.39.5