HT-03Aはかなり面白い
アンドロイド 開発 なんて感じの検索をしていたところ、PCに接続したアンドロイド端末へは、PCからシェル操作できるみたいでした。
PCにHT-03A接続して、PCの cmd.exe で操作。
>adb shell $ ls -l ls -l drwxrwxrwt root root 2009-08-13 21:21 sqlite_stmt_journals drwxrwx--- system cache 2009-08-07 09:56 cache d---rwxrwx system system 1970-01-01 09:00 sdcard lrwxrwxrwx root root 2009-08-13 07:31 etc -> /system/etc drwxr-xr-x root root 2009-06-12 15:50 system drwxr-xr-x root root 1970-01-01 09:00 sys drwxr-x--- root root 1970-01-01 09:00 sbin dr-xr-xr-x root root 1970-01-01 09:00 proc -rw-r--r-- root root 11336 1970-01-01 09:00 logo.rle -rwxr-x--- root root 1703 1970-01-01 09:00 init.sapphire.rc -rwxr-x--- root root 9075 1970-01-01 09:00 init.rc -rwxr-x--- root root 1677 1970-01-01 09:00 init.goldfish.rc -rwxr-x--- root root 106568 1970-01-01 09:00 init -rw-r--r-- root root 118 1970-01-01 09:00 default.prop drwxrwx--x system system 2009-08-07 09:56 data drwx------ root root 1970-01-01 09:00 root drwxr-xr-x root root 2009-08-13 07:31 dev
ぬぉぉぉ。
netcfgもできるそうな。
$ netcfg netcfg lo UP 127.0.0.1 255.0.0.0 0x00000049 dummy0 DOWN 0.0.0.0 0.0.0.0 0x00000082 rmnet0 UP ***.**.**.*** ***.***.***.*** 0x00001043 :
rmnet0ってのはもしかして、3G回線のことかな。グローバルIPが与えられているような気がする(***.**.**.***は伏字だよ)。
ってことで、別の cmd.exe 立ち上げて ping してみた。
>ping ***.**.**.*** Pinging ***.**.**.*** with 32 bytes of data: Reply from ***.**.**.***: bytes=32 time=3134ms TTL=53 Reply from ***.**.**.***: bytes=32 time=130ms TTL=53 Reply from ***.**.**.***: bytes=32 time=139ms TTL=53 Reply from ***.**.**.***: bytes=32 time=949ms TTL=53 Ping statistics for ***.**.**.***: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 130ms, Maximum = 3134ms, Average = 1088ms
反応があった!
最初のpingへの反応に3秒かかるけど、ちゃんと応答するね。
無線WANの端末をピンピンできた。なんかこれだけでもうれしい。
なお当然だが、telnetは拒否された。