/aagetty

access to Android based device over COM port

Primary LanguageCGNU General Public License v2.0GPL-2.0

ttyS console for android. Tested on android-x86_64 (lollipop)

Compile:
    mmm external/aagetty

Result will be placed into 'out/target/product/x86_64/root/sbin/aagetty'.
Manual startup:
    adb -s 192.168.1.83:5555 push out/target/product/x86_64/root/sbin/aagetty /system/bin/
    adb -s 192.168.1.83:5555 shell

and then:
    /system/bin/aagetty -d /dev/ttyS0 -b /system/bin/sh

now you can connect to android system using COM port (crossover cable). You will see shell prompt 'root@x86_64:/ #'


For auto start service on bootup apply following patches:
0001-Add-service-serialconsole-based-on-aagetty-Allow-acc.patch
0001-Build-static-sh-shs-for-initramfs-image.patch

and rebuild android-x86 tree.

--
Abylay Ospan
aospan@netup.ru