From 312503ea4082d8f109665154eefc8468c4fd693f Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 15 Nov 2020 09:17:08 +0100 Subject: [PATCH] . --- .idea/workspace.xml | 32 ++++++++++++++++++-------------- scripts/lib/shield.php | 1 + servers/logcat.php | 12 ++++++++++++ 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 1e50fc4..5705bf0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,11 @@ - + + + + + @@ -1286,12 +1290,12 @@ - + - + @@ -1315,11 +1319,11 @@ - + - + diff --git a/scripts/lib/shield.php b/scripts/lib/shield.php index c56d436..f8496b2 100644 --- a/scripts/lib/shield.php +++ b/scripts/lib/shield.php @@ -244,6 +244,7 @@ function shieldGetApps() function shieldHome($device = null) { + shieldWakeup($device); shieldKey('home', $device); usleep(0.5 * 1000000); } diff --git a/servers/logcat.php b/servers/logcat.php index 61ab15d..5671808 100644 --- a/servers/logcat.php +++ b/servers/logcat.php @@ -18,6 +18,18 @@ $cases = [ echo 'wakeup' . "\n"; shieldRunActivity($device); }, + 'WindowManager: handleComboKeys keyCode: 25, keyAction: 1' => function () use ($device) { + if ($device === 'salon') { + echo 'volume-down' . "\n"; + harmonyRequest('commands/volume-down?repeat=5', 'POST'); + } + }, + 'WindowManager: handleComboKeys keyCode: 24, keyAction: 1' => function () use ($device) { + if ($device === 'salon') { + echo 'volume-up' . "\n"; + harmonyRequest('commands/volume-up?repeat=4', 'POST'); + } + } ]; echo 'Run home server logcat ' . $device . "\n"; -- 2.39.5