From b494c911731f2dbf8aada143ee772a4ed2c0edbb Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sat, 12 Oct 2019 09:39:06 -0700 Subject: [PATCH 1/8] Working on tests for issue 29 --- log.txt | 348 +++++++++++++++++++++++++++++++++++++++ tests/test_adb_device.py | 64 +++++++ 2 files changed, 412 insertions(+) create mode 100644 log.txt diff --git a/log.txt b/log.txt new file mode 100644 index 0000000..0df2abc --- /dev/null +++ b/log.txt @@ -0,0 +1,348 @@ +2019-10-12 10:48:27 WARNING (SyncWorker_1) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. +2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' +2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' +2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xb3\n\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(20): b'\x88Lo\x8a\x13\xa7\xbb\xbd\xb4<2\xce\xfdy\xad\xd8}J\xc8:' +2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xed}\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'\x80H\x1d\xd18\x9c\x1c\xe4\n\xbb\xdf|N\x86f*\x8d4\xed\xca\x86b~\xf1l\x1f\xdc{H\xea\x94\xa5\xa4MUe\xeb\x9d\x90\r\xde\xee\xd5\x14\xd2AM\x0b\xf8-"\xbb\xb7\xca\x85\xf1J"\x83\xd09\x8b-$\xd1\x0b\xc9f9\xdc\xcf\xbeB4\\\x00\xb9q\xeb\xff0\x170\xec\xb8\x92AT\x8b\xe2\x02\x05\x15\xcc\xbe\xfbE-u\x08\xbbC\'\xc0\x8d\xd5/\xd3\xdfF\xb4\xfe\\%c\xe1a3\xb3\xb6\x16z\xca8\xa8\xac\xea>\xa04\xd6w\xab\xb1Z\xfex\xec\xe3\xba\'\xaf\xe3\xb7y\xe1\x02\\K\x1c\xa0\x1b\x8c;\x90xA\xdd]AX\x9c\x92\xb8~\x1a\x03\x90c \x9a\xfc\xf7Z\x7fOF\x8dW\xa6]K\xd4a\xab\xc5\x16\x03\x7f&\xd97r\xbc\x14K\xb9G%\xee\xdaRz\x11\x0cql\xa2\xb0\xd4\xbc\xe6\xbdA\xe7' +2019-10-12 10:49:58 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" +2019-10-12 10:49:58 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' +2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'OKAY\x97\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'CLSE\x97\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x97\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:50:19 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:50:19 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:50:28 ERROR (SyncWorker_12) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) +2019-10-12 10:50:38 WARNING (SyncWorker_13) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. +2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' +2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' +2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(20): b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H" +2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xc9\x80\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'\xbe1\xf5\x80\xc5\xdbul\xce\xd0\xf5|:\x03~\x07d#\xdb\x8b.^\xc6\xba\xe0\x0b9p\xa7A\x04c\xe1\xb3\xd9\xffC\xbba\x96\x05w\xaf\x1a6\xfdN\x8f0\xb1\r\x84\xdc\xe0*e\xef\xcel\xeb%\xdcrI\xa8\xf4?\xec5\xa5l\x90&\xb6\xa3\\\xc9\xc4\xe0\xe6\xce\xda/\x0bcE \xd9:\xa8\x97d\x93\xea\xa8\x0ce\n5f\xf0\xed' +2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" +2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(1): b'0' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9a\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(1): b'0' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9a\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9a\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9b\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'0' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9b\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9b\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9c\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'0' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9c\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9c\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'0' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\xd7\x00\x00\x00\xe78\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(215): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00W\x00\x00\x00\xe7\x17\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(87): b' Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9e\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9e\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9f\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9f\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa0\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa0\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa1\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa1\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa2\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(1): b'1' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa2\x00\x00\x00\x01\x00\x00\x00b\x01\x00\x00\xd7b\x00\x00\xa8\xad\xab\xba' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(354): b'10Wake Locks: size=1\ncom.google.android.tvlauncher\n\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa3\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:53:34 ERROR (SyncWorker_12) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) +2019-10-12 10:53:44 WARNING (SyncWorker_1) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. +2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' +2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' +2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x94\t\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(20): b'P\xa5\x86\x97\xe8\x01\xb09\x8c>F\x9d\xc6\xbd\xc0J\x80!\xbb\x1a' +2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xd1\x7f\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'v\xc3\xd1)\xbd\xb0\x0b\x0e\x9a\xc3\xa0ZV\x10)\xeb\x8b\x98\xcc\xe5V\x10\x8a\xb9\x11>8"\xc7\xc9\x9a\xfc\x9e\x1b\xfc&:\xc0\x1dO\x80\xc3*\x01\xf1\xd7"\x1c9\x0e\xf7\xbc\xed\x08\x9e\xed9\x19s\xae\x16\x99\xe1_\n\xe2\xfc\x80\xd96\x87\xd0U\n\xe5xr%\x7f;$\x95\xce\xf7\xdd\x01\x10t\xb4\x08"@\xe0\xfe\x00\xd4\xc5\x0c\xd9K*w\x99\xc3\xe6V\xcf`\x81S\xa5\xfa\xa3\xe4uAn\t\x88\xe4\xcb\xa1RB\\w\xc3WQ\x9e\xd6v\xb43\x80:\\\x9d\xb2\x8e\x8f\x8d*\x86\xa1\x0f,\xbdw\x8bg!\xd2\x17A\x9a\xc3\xe4-\x85\x97\x12}\xa8}e\x8d:\xd4\x04p\x1b\xad(5\xec\x93\x0cMH\x1e2Z\xd0n4\xdd\x9b\xb3\x94u\t\xe2\x86\xf0\xb8W\xd2\x95\x80\xdf\x15\xf0X\xb9}\xd2N\x86=\x1c\xab\xa9\xfe\x1b2\xa9>\x8d\xe3c\xf44\xdf\xfc\xa7\x9c\xbe\xd5r\x14\xaa\xea7Z\xb2u\xfd=PSh\xdf2\xa8\xb9\x07\x81\xa5\xeb\xcc\x1d\xf2\xa1\xf0\x86' +2019-10-12 10:55:25 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" +2019-10-12 10:55:25 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' +2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa5\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:55:46 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:55:46 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:55:55 ERROR (SyncWorker_6) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) +2019-10-12 10:56:05 WARNING (SyncWorker_17) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00e\x0c\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(20): b'\xd3\xef\x7f_\xa6\xc0`b\x19\\z\xe4\xf3\xe2\xed\x8d\xe1W\xfbH' +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xaa\x8b\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'\xa0D\xbcO?\xab\x817G\xdc}^\x98Y\xe3\xa6\xc0\xdc\xdeY36\xdbU\xd5/\x9c\x91`\xff\x0f\xa7\x85L\xc3\xe2\x91\x8f~\xd9Q\xb2\x1f#\x01\xd12N\xd8\xf4[\xd5k\xd6\xb4y\x91El\xd6\xea[\xae/\x93\xf7o\xcc\xc7t\xdc\xc3\xfb\xad\xcc\x91\x0e\xfcs[\xfa\xc7\x83\xb3\xc7\xe4\xbdu\xc1\xbf\xd3\xe0\xcatIH\xae\xd87\xb12kgnQ-\xcca\xbc\x02KZ\x1a\xe49\xbe\xa1\xc9\xad\xa5\xd9>\x7f\x15\xcc\x86\xa6\x9a\x9f\xea\xae\x08I\xc8\xfc4\xf3\xbfh\xa5\x8a+A\xaa\xc7b\x90\x8b^|Z\xc7\xd4\xcd\x0e\x00_uX\xc2`\xf6\xc6\xcb\xda\x18\xf8`(\xdc\xbck\xe8\xe20\xeed7\xb5\x01\xe2\xfa\xa2P\x13\xb3\xb0r\xbfa$\x98\xf4\xebA\x1aiG\xbf\xcd\xc5\xf5b\xb1\x9d\x151\t\x10\xebM[\x02\x04\xe1\x12\xbb\x93\x8b\xc0\xe0\xe61\xaa\x9e\xa8\xb5GBM\xf3\xd5\x0f\x94\x11\x88\x8d\x8f\xb0\xb8\xfcj(E\x8ag\x96\xcde\x92\xe5,\xe4\xb1\x96\xff' +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" +2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' +2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:57:46 DEBUG (SyncWorker_14) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:57:46 DEBUG (SyncWorker_14) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:57:55 ERROR (SyncWorker_14) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) +2019-10-12 10:58:05 WARNING (SyncWorker_3) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x93\x08\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(20): b's\xd4_e\xa4s\x02\x95\x0f\x1e\xec\n\x95Y9[`\x8e\xe1f' +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xfb\x86\x00\x00\xbe\xaa\xab\xb7' +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"3\x98\x17A\x80<\xf8\xf3\x8a)\xf6\xa5\xbf\x90\x9b\xb8\x11\xc8\xbdO\xae\x14\xaf\xb1\xd3\x90\xaat\xaa4\xd0\x10-\x89tE\x8b\xfd)?u\xb5\x89\xe2$\xaei\xfd\x15 \x82\xee\xa7\x0b$\x9f\xe3\xd9\x7f\xcc\xe1\xa3E\xd6\xdf\xadS\x1d\xd7\xd6\x8b\x0fSK\xa5-~M\xdb{\xc9\xd7\x05\xea%u5\x15\xf7\xee\x06\x8c\xfeF\x95'\xed\x86\xd9}.$\n0\xc88?{7\xdeCd3\xe9\xdb\x06\xd3E`\xa9\x9b\xf1\xe6*\xe9\xff\xe3\x13\x93k)\xc3`a\xef\xdfR\xd9\x88\xd6g=\x89>\xc9})C\xec\x8c\xb2\xbdP\x0ec\xd5\x83go\xe2L\xd9d;\xf1\xadlw}i\xbcou\xa0\xd1\x15v\xa4.\xc5\xdb\xda^\xbf\xdd\xc6\xe6\xc1C\xcb\x94\xae\xe8\xef/\x08$8#\xb5P\xf6\x8b\x95\x83`\xa9\x99\xdf\xb0\x04\xef\xd6|\xa1\x1cm7\xab`>\x89U\xbb\xc2\xb3d\xf3\xc9\xb64;_\xdc\xd9\x93\xe1g\xee\x1c\x15A\xc6\x8b\xd5\\\xf7\xc3O<\xa8\x800\xdc\x16O" +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" +2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' +2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' +2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' +2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b'' +2019-10-12 10:59:45 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' +2019-10-12 10:59:45 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" +2019-10-12 10:59:54 ERROR (SyncWorker_0) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) +2019-10-12 11:00:05 WARNING (SyncWorker_4) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. diff --git a/tests/test_adb_device.py b/tests/test_adb_device.py index c533968..72fe906 100644 --- a/tests/test_adb_device.py +++ b/tests/test_adb_device.py @@ -252,6 +252,70 @@ def test_shell_error_remote_id2(self): with self.assertRaises(exceptions.InvalidResponseError): self.device.shell('TEST') + def test_issue29_lines26_59(self): + with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): + keygen('tests/adbkey') + signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') + + self.device._handle._bulk_read = b''.join([b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7', + b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H", + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2']) + + self.assertTrue(self.device.connect([signer])) + + self.device._handle._bulk_read = b''.join([b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', + b'1', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', + b'1', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba', + b'0', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba', + b'Wake Locks: size=0\n', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba', + b'com.google.android.youtube.tv\n', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba', + b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba', + b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n', + b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba']) + + self.device.shell('Android TV update command') + + def test_issue29_lines290_(self): + with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): + keygen('tests/adbkey') + signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') + + self.device._handle._bulk_read = b''.join([b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7', + b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H", + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2']) + + self.assertTrue(self.device.connect([signer])) + + self.device._handle._bulk_read = b''.join([b'OKAY\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', + b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', + b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', + b'1', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', + b'1', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba', + b'0', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba', + b'Wake Locks: size=0\n', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba', + b'com.google.android.youtube.tv\n', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba', + b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n', + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba', + b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n', + b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba']) + + self.device.shell('Android TV update command') + class TestAdbDeviceWithBanner(TestAdbDevice): def setUp(self): From ca4db778c5e0b14a3f285890f46213447e12d4da Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sat, 12 Oct 2019 10:12:23 -0700 Subject: [PATCH 2/8] Change '\xa2' to '\x99' --- tests/test_adb_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adb_device.py b/tests/test_adb_device.py index 72fe906..e4b4781 100644 --- a/tests/test_adb_device.py +++ b/tests/test_adb_device.py @@ -295,7 +295,7 @@ def test_issue29_lines290_(self): self.assertTrue(self.device.connect([signer])) - self.device._handle._bulk_read = b''.join([b'OKAY\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', + self.device._handle._bulk_read = b''.join([b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', From e4226635becb48eb11140f3858cdb1573c48e782 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sun, 13 Oct 2019 10:01:57 -0700 Subject: [PATCH 3/8] More unit testing for issue 29 --- tests/test_adb_device.py | 52 +++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/tests/test_adb_device.py b/tests/test_adb_device.py index e4b4781..9f4cd47 100644 --- a/tests/test_adb_device.py +++ b/tests/test_adb_device.py @@ -288,16 +288,16 @@ def test_issue29_lines290_(self): keygen('tests/adbkey') signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') + msg1 = AdbMessage(command=constants.OKAY, arg0=1, arg1=1, data=b'\x00') + msg2 = AdbMessage(command=constants.CLSE, arg0=1, arg1=1, data=b'') + self.device._handle._bulk_read = b''.join([b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7', b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H", b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", - b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2']) - - self.assertTrue(self.device.connect([signer])) - - self.device._handle._bulk_read = b''.join([b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', - b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', - b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', + b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # 5) Line 290 + b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # 6) Line 291 + b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # 7) Line 292 b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', b'1', b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', @@ -312,8 +312,44 @@ def test_issue29_lines290_(self): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n', b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba', b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n', - b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba']) + b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', + b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x94\t\x00\x00\xbe\xaa\xab\xb7', # 23) Line 297 + b'P\xa5\x86\x97\xe8\x01\xb09\x8c>F\x9d\xc6\xbd\xc0J\x80!\xbb\x1a', # 24) Line 298 + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # 25) Line 301 + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # 26) Line 302 + msg1.pack(), + msg1.data, + msg2.pack(), + #b'OKAY\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # 27) Line 305 + #b'CLSE\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # 28) Line 306 + b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00e\x0c\x00\x00\xbe\xaa\xab\xb7', # Line 315 + b'\xd3\xef\x7f_\xa6\xc0`b\x19\\z\xe4\xf3\xe2\xed\x8d\xe1W\xfbH', # Line 316 + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # Line 319 + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # Line 320 + msg1.pack(), + msg1.data, + msg2.pack(), + #b'OKAY\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 323 + #b'CLSE\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 324 + b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x93\x08\x00\x00\xbe\xaa\xab\xb7', # Line 333 + b's\xd4_e\xa4s\x02\x95\x0f\x1e\xec\n\x95Y9[`\x8e\xe1f', # Line 334 + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # Line 337 + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # Line 338 + msg1.pack(), + msg1.data, + msg2.pack()]) + #b'OKAY\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 341 + #b'CLSE\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'][:36]) # Line 342 + self.assertTrue(self.device.connect([signer])) + + self.device.shell('Android TV update command') + + self.assertTrue(self.device.connect([signer])) + self.device.shell('Android TV update command') + self.assertTrue(self.device.connect([signer])) + self.device.shell('Android TV update command') + self.assertTrue(self.device.connect([signer])) self.device.shell('Android TV update command') From be5de92c75931cb421ad7b9260b921318d7e2668 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sun, 13 Oct 2019 10:38:12 -0700 Subject: [PATCH 4/8] Update documentation for '_read_until_close' --- adb_shell/adb_device.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/adb_shell/adb_device.py b/adb_shell/adb_device.py index 6c8efad..84a4827 100644 --- a/adb_shell/adb_device.py +++ b/adb_shell/adb_device.py @@ -442,13 +442,6 @@ def _read_until_close(self, local_id, remote_id, timeout_s, total_timeout_s): data : bytes The data that was read by :meth:`AdbDevice._read_until` - Raises - ------ - adb_shell.exceptions.AdbCommandFailureException - Command failed (``b'FAIL'``) - adb_shell.exceptions.InvalidCommandError - Expected a ``b'WRTE'`` or ``b'CLSE'`` command, but got something else - """ while True: cmd, data = self._read_until(local_id, remote_id, [constants.CLSE, constants.WRTE], timeout_s, total_timeout_s) From 09fca44682062b60812d8e8961edaa913e74dc46 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sun, 13 Oct 2019 11:48:21 -0700 Subject: [PATCH 5/8] Rename test --- tests/test_adb_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_adb_device.py b/tests/test_adb_device.py index 9f4cd47..7d9715f 100644 --- a/tests/test_adb_device.py +++ b/tests/test_adb_device.py @@ -283,7 +283,7 @@ def test_issue29_lines26_59(self): self.device.shell('Android TV update command') - def test_issue29_lines290_(self): + def test_issue29_lines290_342(self): with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): keygen('tests/adbkey') signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') From 8e6eab62b111bd7ea2f259f4ecb61df0b2b31847 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sun, 13 Oct 2019 16:14:17 -0700 Subject: [PATCH 6/8] Annotate test for issue 27 --- tests/test_adb_device.py | 69 +++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/tests/test_adb_device.py b/tests/test_adb_device.py index 7d9715f..82b27a2 100644 --- a/tests/test_adb_device.py +++ b/tests/test_adb_device.py @@ -253,6 +253,7 @@ def test_shell_error_remote_id2(self): self.device.shell('TEST') def test_issue29_lines26_59(self): + # https://github.com/JeffLIrion/adb_shell/issues/29 with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): keygen('tests/adbkey') signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') @@ -284,6 +285,7 @@ def test_issue29_lines26_59(self): self.device.shell('Android TV update command') def test_issue29_lines290_342(self): + # https://github.com/JeffLIrion/adb_shell/issues/29 with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): keygen('tests/adbkey') signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') @@ -291,55 +293,55 @@ def test_issue29_lines290_342(self): msg1 = AdbMessage(command=constants.OKAY, arg0=1, arg1=1, data=b'\x00') msg2 = AdbMessage(command=constants.CLSE, arg0=1, arg1=1, data=b'') - self.device._handle._bulk_read = b''.join([b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7', - b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H", - b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", - b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', - b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # 5) Line 290 - b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # 6) Line 291 - b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # 7) Line 292 - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', - b'1', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', - b'1', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba', - b'0', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba', - b'Wake Locks: size=0\n', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba', - b'com.google.android.youtube.tv\n', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba', - b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba', - b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n', - b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', - b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x94\t\x00\x00\xbe\xaa\xab\xb7', # 23) Line 297 - b'P\xa5\x86\x97\xe8\x01\xb09\x8c>F\x9d\xc6\xbd\xc0J\x80!\xbb\x1a', # 24) Line 298 - b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # 25) Line 301 - b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # 26) Line 302 + self.device._handle._bulk_read = b''.join([b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7', # Line 22 + b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H", # Line 23 + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # Line 26 + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # Line 27 + b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 290 (modified --> Line 30) + b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 291 + b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 292 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', # Line 31 + b'1', # Line 32 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', # Line 35 + b'1', # Line 36 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba', # Line 39 + b'0', # Line 40 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba', # Line 43 + b'Wake Locks: size=0\n', # Line 44 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba', # Line 47 + b'com.google.android.youtube.tv\n', # Line 48 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba', # Line 51 + b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n', # Line 52 + b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba', # Line 55 + b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n', # Line 56 + b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 59 + b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x94\t\x00\x00\xbe\xaa\xab\xb7', # Line 297 + b'P\xa5\x86\x97\xe8\x01\xb09\x8c>F\x9d\xc6\xbd\xc0J\x80!\xbb\x1a', # Line 298 + b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # Line 301 + b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # Line 302 + b'OKAY\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 305 + b'CLSE\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 306 msg1.pack(), msg1.data, msg2.pack(), - #b'OKAY\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # 27) Line 305 - #b'CLSE\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # 28) Line 306 b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00e\x0c\x00\x00\xbe\xaa\xab\xb7', # Line 315 b'\xd3\xef\x7f_\xa6\xc0`b\x19\\z\xe4\xf3\xe2\xed\x8d\xe1W\xfbH', # Line 316 b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # Line 319 b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # Line 320 + b'OKAY\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 323 + b'CLSE\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 324 msg1.pack(), msg1.data, msg2.pack(), - #b'OKAY\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 323 - #b'CLSE\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 324 b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x93\x08\x00\x00\xbe\xaa\xab\xb7', # Line 333 b's\xd4_e\xa4s\x02\x95\x0f\x1e\xec\n\x95Y9[`\x8e\xe1f', # Line 334 b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", # Line 337 b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2', # Line 338 + b'OKAY\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 341 + b'CLSE\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba', # Line 342 msg1.pack(), msg1.data, msg2.pack()]) - #b'OKAY\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', # Line 341 - #b'CLSE\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba'][:36]) # Line 342 self.assertTrue(self.device.connect([signer])) @@ -347,10 +349,13 @@ def test_issue29_lines290_342(self): self.assertTrue(self.device.connect([signer])) self.device.shell('Android TV update command') + self.device.shell('Android TV update command') self.assertTrue(self.device.connect([signer])) self.device.shell('Android TV update command') + self.device.shell('Android TV update command') self.assertTrue(self.device.connect([signer])) self.device.shell('Android TV update command') + self.device.shell('Android TV update command') class TestAdbDeviceWithBanner(TestAdbDevice): From 95e2d10ffa57075b2187f34ca9de6edb3cad8fe5 Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sun, 13 Oct 2019 16:17:53 -0700 Subject: [PATCH 7/8] Consolidate tests for issue #29 --- tests/test_adb_device.py | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/tests/test_adb_device.py b/tests/test_adb_device.py index 82b27a2..ea7102b 100644 --- a/tests/test_adb_device.py +++ b/tests/test_adb_device.py @@ -252,39 +252,7 @@ def test_shell_error_remote_id2(self): with self.assertRaises(exceptions.InvalidResponseError): self.device.shell('TEST') - def test_issue29_lines26_59(self): - # https://github.com/JeffLIrion/adb_shell/issues/29 - with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): - keygen('tests/adbkey') - signer = PythonRSASigner.FromRSAKeyPath('tests/adbkey') - - self.device._handle._bulk_read = b''.join([b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7', - b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H", - b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1", - b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2']) - - self.assertTrue(self.device.connect([signer])) - - self.device._handle._bulk_read = b''.join([b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', - b'1', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba', - b'1', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba', - b'0', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba', - b'Wake Locks: size=0\n', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba', - b'com.google.android.youtube.tv\n', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba', - b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n', - b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba', - b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n', - b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba']) - - self.device.shell('Android TV update command') - - def test_issue29_lines290_342(self): + def test_issue29(self): # https://github.com/JeffLIrion/adb_shell/issues/29 with patch('adb_shell.auth.sign_pythonrsa.open', open_priv_pub), patch('adb_shell.auth.keygen.open', open_priv_pub): keygen('tests/adbkey') From 1e93c9a71fc3ba8c0d77f229c53b0f592dba7c3d Mon Sep 17 00:00:00 2001 From: Jeff Irion Date: Sun, 13 Oct 2019 17:09:25 -0700 Subject: [PATCH 8/8] Delete log.txt --- log.txt | 348 -------------------------------------------------------- 1 file changed, 348 deletions(-) delete mode 100644 log.txt diff --git a/log.txt b/log.txt deleted file mode 100644 index 0df2abc..0000000 --- a/log.txt +++ /dev/null @@ -1,348 +0,0 @@ -2019-10-12 10:48:27 WARNING (SyncWorker_1) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. -2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' -2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' -2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xb3\n\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(20): b'\x88Lo\x8a\x13\xa7\xbb\xbd\xb4<2\xce\xfdy\xad\xd8}J\xc8:' -2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xed}\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:49:57 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_write: b'\x80H\x1d\xd18\x9c\x1c\xe4\n\xbb\xdf|N\x86f*\x8d4\xed\xca\x86b~\xf1l\x1f\xdc{H\xea\x94\xa5\xa4MUe\xeb\x9d\x90\r\xde\xee\xd5\x14\xd2AM\x0b\xf8-"\xbb\xb7\xca\x85\xf1J"\x83\xd09\x8b-$\xd1\x0b\xc9f9\xdc\xcf\xbeB4\\\x00\xb9q\xeb\xff0\x170\xec\xb8\x92AT\x8b\xe2\x02\x05\x15\xcc\xbe\xfbE-u\x08\xbbC\'\xc0\x8d\xd5/\xd3\xdfF\xb4\xfe\\%c\xe1a3\xb3\xb6\x16z\xca8\xa8\xac\xea>\xa04\xd6w\xab\xb1Z\xfex\xec\xe3\xba\'\xaf\xe3\xb7y\xe1\x02\\K\x1c\xa0\x1b\x8c;\x90xA\xdd]AX\x9c\x92\xb8~\x1a\x03\x90c \x9a\xfc\xf7Z\x7fOF\x8dW\xa6]K\xd4a\xab\xc5\x16\x03\x7f&\xd97r\xbc\x14K\xb9G%\xee\xdaRz\x11\x0cql\xa2\xb0\xd4\xbc\xe6\xbdA\xe7' -2019-10-12 10:49:58 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" -2019-10-12 10:49:58 DEBUG (SyncWorker_4) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' -2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'OKAY\x97\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'CLSE\x97\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x97\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:50:08 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:50:19 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:50:19 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:50:28 ERROR (SyncWorker_12) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) -2019-10-12 10:50:38 WARNING (SyncWorker_13) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. -2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' -2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' -2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\xc5\n\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:51:21 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(20): b"\x17\xbf\xbf\xff\xc7\xa2eo'Sh\xdf\x8e\xf5\xff\xe0\tJ6H" -2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xc9\x80\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'\xbe1\xf5\x80\xc5\xdbul\xce\xd0\xf5|:\x03~\x07d#\xdb\x8b.^\xc6\xba\xe0\x0b9p\xa7A\x04c\xe1\xb3\xd9\xffC\xbba\x96\x05w\xaf\x1a6\xfdN\x8f0\xb1\r\x84\xdc\xe0*e\xef\xcel\xeb%\xdcrI\xa8\xf4?\xec5\xa5l\x90&\xb6\xa3\\\xc9\xc4\xe0\xe6\xce\xda/\x0bcE \xd9:\xa8\x97d\x93\xea\xa8\x0ce\n5f\xf0\xed' -2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" -2019-10-12 10:51:22 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'OKAY\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(1): b'0' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'WRTE\x99\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x99\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:24 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'CLSE\x99\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9a\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(1): b'0' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9a\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9a\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:35 DEBUG (SyncWorker_13) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9a\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9b\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'0' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9b\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9b\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:46 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9b\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9c\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'0' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9c\x00\x00\x00\x01\x00\x00\x00.\x01\x00\x00\xceP\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(302): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9c\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:51:57 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9c\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x000\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(1): b'0' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x13\x00\x00\x000\x06\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(19): b'Wake Locks: size=0\n' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x1e\x00\x00\x00V\x0b\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(30): b'com.google.android.youtube.tv\n' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\x98\x00\x00\x00\xa13\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(152): b' state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00\xd7\x00\x00\x00\xe78\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(215): b'- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9d\x00\x00\x00\x01\x00\x00\x00W\x00\x00\x00\xe7\x17\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(87): b' Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:08 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:19 DEBUG (SyncWorker_1) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9e\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9e\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:30 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'OKAY\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9f\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'WRTE\x9f\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\x9f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\x9f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:41 DEBUG (SyncWorker_10) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'CLSE\x9f\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa0\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa0\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:52:52 DEBUG (SyncWorker_7) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa0\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa1\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa1\x00\x00\x00\x01\x00\x00\x00\xf9\x01\x00\x00V\x96\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(505): b'10Wake Locks: size=0\ncom.google.android.youtube.tv\n state=PlaybackState {state=0, position=0, buffered position=0, speed=0.0, updated=0, actions=0, custom actions=[], active item id=-1, error=null}\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:03 DEBUG (SyncWorker_18) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa2\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x001\x00\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(1): b'1' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'WRTE\xa2\x00\x00\x00\x01\x00\x00\x00b\x01\x00\x00\xd7b\x00\x00\xa8\xad\xab\xba' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(354): b'10Wake Locks: size=1\ncom.google.android.tvlauncher\n\n- STREAM_MUSIC:\n Muted: false\n Min: 0\n Max: 15\n Current: 2 (speaker): 11, 4 (headset): 10, 8 (headphone): 10, 400 (hdmi): 6, 40000000 (default): 11\n Devices: hdmi\n- STREAM_ALARM:\n Muted: false\n Min: 0\n Max: 7\n Current: 40000000 (default): 6\n Devices: speaker\n- STREAM_NOTIFICATION:\n' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'OKAY\x01\x00\x00\x00\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:14 DEBUG (SyncWorker_2) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa3\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:25 DEBUG (SyncWorker_12) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa2\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:53:34 ERROR (SyncWorker_12) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) -2019-10-12 10:53:44 WARNING (SyncWorker_1) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. -2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' -2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' -2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x94\t\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(20): b'P\xa5\x86\x97\xe8\x01\xb09\x8c>F\x9d\xc6\xbd\xc0J\x80!\xbb\x1a' -2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xd1\x7f\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:55:24 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'v\xc3\xd1)\xbd\xb0\x0b\x0e\x9a\xc3\xa0ZV\x10)\xeb\x8b\x98\xcc\xe5V\x10\x8a\xb9\x11>8"\xc7\xc9\x9a\xfc\x9e\x1b\xfc&:\xc0\x1dO\x80\xc3*\x01\xf1\xd7"\x1c9\x0e\xf7\xbc\xed\x08\x9e\xed9\x19s\xae\x16\x99\xe1_\n\xe2\xfc\x80\xd96\x87\xd0U\n\xe5xr%\x7f;$\x95\xce\xf7\xdd\x01\x10t\xb4\x08"@\xe0\xfe\x00\xd4\xc5\x0c\xd9K*w\x99\xc3\xe6V\xcf`\x81S\xa5\xfa\xa3\xe4uAn\t\x88\xe4\xcb\xa1RB\\w\xc3WQ\x9e\xd6v\xb43\x80:\\\x9d\xb2\x8e\x8f\x8d*\x86\xa1\x0f,\xbdw\x8bg!\xd2\x17A\x9a\xc3\xe4-\x85\x97\x12}\xa8}e\x8d:\xd4\x04p\x1b\xad(5\xec\x93\x0cMH\x1e2Z\xd0n4\xdd\x9b\xb3\x94u\t\xe2\x86\xf0\xb8W\xd2\x95\x80\xdf\x15\xf0X\xb9}\xd2N\x86=\x1c\xab\xa9\xfe\x1b2\xa9>\x8d\xe3c\xf44\xdf\xfc\xa7\x9c\xbe\xd5r\x14\xaa\xea7Z\xb2u\xfd=PSh\xdf2\xa8\xb9\x07\x81\xa5\xeb\xcc\x1d\xf2\xa1\xf0\x86' -2019-10-12 10:55:25 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" -2019-10-12 10:55:25 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' -2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa5\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa5\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:55:35 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:55:46 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:55:46 DEBUG (SyncWorker_6) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:55:55 ERROR (SyncWorker_6) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) -2019-10-12 10:56:05 WARNING (SyncWorker_17) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00e\x0c\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(20): b'\xd3\xef\x7f_\xa6\xc0`b\x19\\z\xe4\xf3\xe2\xed\x8d\xe1W\xfbH' -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xaa\x8b\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_write: b'\xa0D\xbcO?\xab\x817G\xdc}^\x98Y\xe3\xa6\xc0\xdc\xdeY36\xdbU\xd5/\x9c\x91`\xff\x0f\xa7\x85L\xc3\xe2\x91\x8f~\xd9Q\xb2\x1f#\x01\xd12N\xd8\xf4[\xd5k\xd6\xb4y\x91El\xd6\xea[\xae/\x93\xf7o\xcc\xc7t\xdc\xc3\xfb\xad\xcc\x91\x0e\xfcs[\xfa\xc7\x83\xb3\xc7\xe4\xbdu\xc1\xbf\xd3\xe0\xcatIH\xae\xd87\xb12kgnQ-\xcca\xbc\x02KZ\x1a\xe49\xbe\xa1\xc9\xad\xa5\xd9>\x7f\x15\xcc\x86\xa6\x9a\x9f\xea\xae\x08I\xc8\xfc4\xf3\xbfh\xa5\x8a+A\xaa\xc7b\x90\x8b^|Z\xc7\xd4\xcd\x0e\x00_uX\xc2`\xf6\xc6\xcb\xda\x18\xf8`(\xdc\xbck\xe8\xe20\xeed7\xb5\x01\xe2\xfa\xa2P\x13\xb3\xb0r\xbfa$\x98\xf4\xebA\x1aiG\xbf\xcd\xc5\xf5b\xb1\x9d\x151\t\x10\xebM[\x02\x04\xe1\x12\xbb\x93\x8b\xc0\xe0\xe61\xaa\x9e\xa8\xb5GBM\xf3\xd5\x0f\x94\x11\x88\x8d\x8f\xb0\xb8\xfcj(E\x8ag\x96\xcde\x92\xe5,\xe4\xb1\x96\xff' -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" -2019-10-12 10:57:24 DEBUG (SyncWorker_16) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' -2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa7\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:57:35 DEBUG (SyncWorker_5) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:57:46 DEBUG (SyncWorker_14) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:57:46 DEBUG (SyncWorker_14) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:57:55 ERROR (SyncWorker_14) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) -2019-10-12 10:58:05 WARNING (SyncWorker_3) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device. -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'CNXN\x00\x00\x00\x01\x00\x10\x00\x00\x10\x00\x00\x00\x0c\x06\x00\x00\xbc\xb1\xa7\xb1' -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'host::raspberry\x00' -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b'AUTH\x01\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x93\x08\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(20): b's\xd4_e\xa4s\x02\x95\x0f\x1e\xec\n\x95Y9[`\x8e\xe1f' -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b'AUTH\x02\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xfb\x86\x00\x00\xbe\xaa\xab\xb7' -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_write: b"3\x98\x17A\x80<\xf8\xf3\x8a)\xf6\xa5\xbf\x90\x9b\xb8\x11\xc8\xbdO\xae\x14\xaf\xb1\xd3\x90\xaat\xaa4\xd0\x10-\x89tE\x8b\xfd)?u\xb5\x89\xe2$\xaei\xfd\x15 \x82\xee\xa7\x0b$\x9f\xe3\xd9\x7f\xcc\xe1\xa3E\xd6\xdf\xadS\x1d\xd7\xd6\x8b\x0fSK\xa5-~M\xdb{\xc9\xd7\x05\xea%u5\x15\xf7\xee\x06\x8c\xfeF\x95'\xed\x86\xd9}.$\n0\xc88?{7\xdeCd3\xe9\xdb\x06\xd3E`\xa9\x9b\xf1\xe6*\xe9\xff\xe3\x13\x93k)\xc3`a\xef\xdfR\xd9\x88\xd6g=\x89>\xc9})C\xec\x8c\xb2\xbdP\x0ec\xd5\x83go\xe2L\xd9d;\xf1\xadlw}i\xbcou\xa0\xd1\x15v\xa4.\xc5\xdb\xda^\xbf\xdd\xc6\xe6\xc1C\xcb\x94\xae\xe8\xef/\x08$8#\xb5P\xf6\x8b\x95\x83`\xa9\x99\xdf\xb0\x04\xef\xd6|\xa1\x1cm7\xab`>\x89U\xbb\xc2\xb3d\xf3\xc9\xb64;_\xdc\xd9\x93\xe1g\xee\x1c\x15A\xc6\x8b\xd5\\\xf7\xc3O<\xa8\x800\xdc\x16O" -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(24): b"CNXN\x00\x00\x00\x01\x00\x10\x00\x00i\x00\x00\x00.'\x00\x00\xbc\xb1\xa7\xb1" -2019-10-12 10:59:23 DEBUG (SyncWorker_8) [adb_shell.adb_device] bulk_read(105): b'device::ro.product.name=once;ro.product.model=MIBOX3;ro.product.device=once;features=stat_v2,cmd,shell_v2' -2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_read(24): b'OKAY\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xb4\xbe\xa6' -2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_read(24): b'CLSE\xa9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b'CLSE\x01\x00\x00\x00\xa9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbc\xb3\xac\xba' -2019-10-12 10:59:34 DEBUG (SyncWorker_15) [adb_shell.adb_device] bulk_write: b'' -2019-10-12 10:59:45 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b'OPEN\x01\x00\x00\x00\x00\x00\x00\x00\xb4\x02\x00\x00\x11\xdb\x00\x00\xb0\xaf\xba\xb1' -2019-10-12 10:59:45 DEBUG (SyncWorker_0) [adb_shell.adb_device] bulk_write: b"shell:dumpsys power | grep 'Display Power' | grep -q 'state=ON' && echo -e '1\\c' && dumpsys power | grep mWakefulness | grep -q Awake && echo -e '1\\c' && (dumpsys audio | grep paused | grep -qv 'Buffer Queue' && echo -e '1\\c' || (dumpsys audio | grep started | grep -qv 'Buffer Queue' && echo '2\\c' || echo '0\\c')) && dumpsys power | grep Locks | grep 'size=' && CURRENT_APP=$(dumpsys window windows | grep mCurrentFocus) && CURRENT_APP=${CURRENT_APP#*{* * } && CURRENT_APP=${CURRENT_APP%%/*} && echo $CURRENT_APP && (dumpsys media_session | grep -A 100 'Sessions Stack' | grep -A 100 $CURRENT_APP | grep -m 1 'state=PlaybackState {' || echo) && dumpsys audio | grep '\\- STREAM_MUSIC:' -A 12\x00" -2019-10-12 10:59:54 ERROR (SyncWorker_0) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from mibox.bieniu.lan:5555 timed out (9.0 seconds) -2019-10-12 11:00:05 WARNING (SyncWorker_4) [androidtv.adb_manager] Couldn't connect to host mibox.bieniu.lan:5555, error: Timed out trying to connect to ADB device.