Skip to content
kotc edited this page Jun 12, 2019 · 16 revisions

How connect adb from network

easy ( but very insecure do this at home only ! ) :

  • setprop service.adb.tcp.port 5555
  • stop adbd
  • start adbd

now on workstation you can "adb connect 192.168.x.x" the ip of your H3Droid board and you can use adb like connected with usb cable.

Board lifecycle:

  • green sleep

sleep: input keyevent --shortpress KEYCODE_POWER

wake: ISR on gpio_power_key.key_io ( no_console_suspend=1 won't help )

  • blue sleep

sleep: input keyevent --longpress KEYCODE_POWER

wake: ISR on gpio_power_key.key_io

  • poweroff

sleep: h3fakeoff with parameters.

wake: h3fakeoff specific implementation.

Fix I2C display bus error ( pink screen ):

** Note: as of h3droid 1.3.5 the bug is fixed and following unnecessary. **

#!/system/bin/sh

while true
do
    if dumpsys power 2>/dev/null|grep -q "mSystemReady=true"
    then
        break
    else
        echo "Waiting user interface ..."
        date
        sleep 2
    fi
done

sleep 5

if dmesg |grep 'ddc read timeout'|wc -l|grep -q 128
then
    echo "    DDC error detected"
    if dumpsys power|grep -q "mScreenOn=true"
    then
        echo "   1/2 - sending screen to sleep"
        input keyevent --shortpress KEYCODE_POWER
        sleep 0.8
    fi
    echo "    2/2 - waking up screen"
    input keyevent --shortpress KEYCODE_POWER
fi
Clone this wiki locally