[androiddebugbridge] check device awake state and minor fixes (#10106)

* check device awake state and minor fixes
* avoid update awake channel when not linked

Signed-off-by: Miguel <miguelwork92@gmail.com>
This commit is contained in:
GiviMAD
2021-02-08 17:25:52 -08:00
committed by GitHub
parent 717ef5950a
commit f8d5ae081b
4 changed files with 42 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
<channel id="current-package" typeId="current-package-channel"/>
<channel id="wake-lock" typeId="wake-lock-channel"/>
<channel id="screen-state" typeId="screen-state-channel"/>
<channel id="awake-state" typeId="awake-state-channel"/>
</channels>
<representation-property>serial</representation-property>
<config-description>
@@ -386,6 +387,13 @@
<state readOnly="true"/>
</channel-type>
<channel-type id="awake-state-channel" advanced="true">
<item-type>Switch</item-type>
<label>Awake State</label>
<description>Awake State</description>
<state readOnly="true"/>
</channel-type>
<channel-type id="screen-state-channel" advanced="true">
<item-type>Switch</item-type>
<label>Screen State</label>