2012ǯ02��03��
Android��adb�Υ��(9) Androidü��Ʊ�Τ�adb�ǤĤʤ�
��Android��adb�Υ��(7) Android�ǥХ���¦��adb��ư�������Ǥϡ���ʬ����ǥ롼�ץХå�������adb���鼫ʬ���Ȥ�adbd�ȤĤʤ��Ǥߤޤ�����������ˤɤ�����Ӥ�����Τ����ޤҤȤĤ狼��ޤ���Ǥ�����
@matsuu ����ΤĤ֤ä¤ï¿½Ç¤Ï¤Ã¤Èµï¿½ï¿½ï¿½ï¿½Ä¤ï¿½ï¿½ï¿½ï¿½Î¤Ç¤ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½2���Androidü����Ĥʤ��С�Androidü����Androidü����ǥХå��Ǥ���Ȥ������ȤʤΤǤ������ä�����Ƥߤޤ�����
��Android��adb�Υ��(7) Android�ǥХ���¦��adb��ư�������Ǥϡ�TCP�Υ롼�ץХå��Ǽ�ʬ���Ȥ�adbd�ȤĤʤ����Ȥ��������ޤ�����TCP�Τ����ߤ���ͤ��ơ�����IP���ɥ쥹���狼�äơ�Fire wall���˼��⤵��ʤ���Хͥåȥ����ͳ��¾��ü����adbd�ˤĤʤ��Τϲ�ǽ���Ȼפ��ޤ���
�Ǥ�⤷2��� Androidü����Androidü����USB�����֥�ǤĤʤ���adb���̿����Ǥ���Τʤ�С�IP���ɥ쥹����Ĵ�٤�ɬ�פ���ʤ��ΤǤ�äȼ�ڤdzμ¤Ǥ���
2��� Androidü����USB�����֥�ǤĤʤ��Ǥߤ�
KZM-A9-Dual�ܡ���(Android 4.0.3)��USB�ۥ���(A���ͥ���)��NexusOne(Android 2.3.6)��USB�ǥХ���(�ޥ�����B���ͥ���)��Ĥʤ��ޤ�����
KZM-A9-Dual�Υ��ꥢ�륳�󥽡����
# adb devices * daemon not running. starting it now on port 5038 * * daemon started successfully * List of devices attached HT015P803242 device #
�������ä����NexusOne��ǧ�����ޤ�����
# adb shell ls config cache sdcard acct mnt vendor d etc ueventd.rc ueventd.mahimahi.rc ueventd.goldfish.rc system sys sbin proc init.rc init.mahimahi.rc init.goldfish.rc init default.prop data root dev #
mahimahi��NexusOne�Υ����ɥ͡���Ǥ����Τ���NexusOne�Υ롼�ȥǥ��쥯�ȥ꤬�����Ƥ��ޤ���
# adb logcat --------- beginning of /dev/log/system I/Vold ( 63): Vold 2.1 (the revenge) firing up D/Vold ( 63): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media) D/Vold ( 63): Volume sdcard state changing 0 (No-Media) -> 2 (Pending) D/Vold ( 63): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted) I/SystemServer( 96): Entered the Android system server! I/SystemServer( 96): Entropy Service I/SystemServer( 96): Power Manager I/SystemServer( 96): Activity Manager I/ActivityManager( 96): Memory class: 32 I/UsageStats( 96): Deleting usage file : usage-20111018 ...
NexusOne��logcat�����̤˸��뤳�Ȥ��Ǥ��ޤ���
Androidü�������̤�Androidü���˥��ץ�򥤥󥹥ȡ���
KZM-A9-Dual�ܡ��ɤ˥��󥹥ȡ��뤵��Ƥ��륢�ץ��NexusOne�˥��󥹥ȡ���Ǥ��뤫��äƤߤޤ�����
# cd /data/app # ls com.example.native_plasma-1.apk # adb install com.example.native_plasma-1.apk 885 KB/s (169266 bytes in 0.186s) pkg: /data/local/tmp/com.example.native_plasma-1.apk Success #
���������ʤ���NexusOne��native plazma�Υ��ץ꤬���󥹥ȡ���Ǥ��Ƶ�ư��Ǥ��ޤ�����
�ʤˤ��������������򤽤��ʤ��Ȥ��Ǥ��ޤ��͡�
�ɵ�(2012.2.7)
�����Ǥ�root���¤�ư���Ƥ��륷�ꥢ�륳�󥽡����shell����ư�����ޤ�������secure�⡼�ɤ�adb shell����Ǥ�Ʊ�����Ȥ�Ԥ����Ȥ��Ǥ��ޤ������Ĥޤ꺣��USB�ۥ��Ȥ��Ȥ���Android 4.0�����ʤ��ФƤ����root���¤ʤ��Ǥ�adb����Ѥ��뤳�Ȥ�������ǽ�����⤤�Ǥ���
�ɵ���Android 2.3.4��adb��ư����
KZM-A9-Dual��Android 4.0.3��/system/bin/adb ��Android 2.3.4�˥��ԡ����ơ�Android2.3.4��ư����Ʊ�����Ȥ��Ǥ��뤫��äƤߤޤ�����
�ä�����ʤ��褦�Ǥ����Ĥޤꤳ���Android4.0�Ǥ�USB�ۥ��ȥ��ݡ��ȤȤ�̵�ط��Ǥ���
adb�ϥ����ʥߥå���󥯤���Ƥ��ޤ������饤�֥��Υ��󥿥ե��������ä��Ѥ�äƤ��ʤ��褦�Ǥ����ʤˤ����꤬�����adb�򥹥��ƥ��å���󥯤��ʤ����ƻ��äƤ���Ф褤�Ȼפ��ޤ���
�ɵ�2: TCP�ǤĤʤ�
2���KZM-A9-Dual�ܡ��ɤ�Í��LAN��Ʊ��Hub�ˤĤʤ��ޤ���
�ǥХå��оݤΤۤ���IP���ɥ쥹���ǧ����adbd��TCP���ԤĤ褦���ѹ����ƺƵ�ư���ޤ���
# netcfg lo UP 127.0.0.1 255.0.0.0 0x00000049 eth0 UP 192.168.1.139 255.255.255.0 0x00001043 # setprop service.adb.tcp.port 5555 # stop adbd # start adbd #
�⤦�����Υܡ��ɤǤ�����IP���ɥ쥹��Ķ��ѿ�ADBHOST�˥��åȤ���adb server��Ƶ�ư���ޤ���
# adb kill-server # ADBHOST=192.168.1.139 adb devices * daemon not running. starting it now on port 5038 * * daemon started successfully * List of devices attached emulator-5554 device #
�ۤ�Ĥʤ��ä���
���ޤ�
KZM-A9-Dual�ܡ��ɤ�USB�ۥ���(A���ͥ���)��USB�ǥХ���(�ߥ�B���ͥ���)��USB�����֥�ǤĤʤ���
# adb devices List of devices attached 0123456789ABCDEF device #
��ʬ���Ȥ������ޤ���:)
���ޤ���
adbd�κƵ�ư�Ϻ��ޤǤ�ɬ�����ꥢ�륳�󥽡���ǹԤ�ɬ�פ�����ޤ�����USB��ͳ��adb shell�Ǽ¹Ԥ��Ƥ����
# setprop service.adb.tcp.port 5555 # stop adbd # start adbd
�Ȥ��褦�Ȥ��Ƥ⡢stop adbd���ʳ�����³���ڤ�Ƥ��ޤä� start adbd��Ԥ����Ȥ��Ǥ��ʤ�����Ǥ���
��������Android 4.0�Ǥ�service�κƵ�ư���Ǥ���褦�ˤʤ�ޤ�����
# setprop service.adb.tcp.port 5555 # setprop ctl.restart adbd
���ޤ���
USB����TCP���ڤ��ؤ��뤿���adbd��Ƶ�ư����ˤϤ�äȴ�ñ����ˡ������ޤ�����
�ۥ���¦����
$ adb tcpip 5555 restarting in TCP mode port : 5555 $
��Ϣ����ڡ���
Android Builders Summit��ADB���ä򤷤ޤ���
Android��adb�Υ��(1) adb server�δѻ�
Android��adb�Υ��(2) adbd�δѻ�
Android��adb���(3) adb����
Android��adb���(4) service
Android��adb�Υ��(5) adb shell ls��¹Ԥ����Ȥ��Υ���
Android��emulator console�˴�ñ�˥��ޥ�ɤ�������ˡ
Android��adb�Υ��(7) Android�ǥХ���¦��adb��ư����
Android��adb�Υ��(8) Android�ʳ���adb��Ȥ��¸�
Android��adb�Υ��(9) Androidü��Ʊ�Τ�adb�ǤĤʤ�
Android��adb�Υ��(10) adbd�ε�ư�Υȥꥬ��
Android��adb�Υ��(11) adbd��secure�⡼��
Android��adb�Υ��(12) adbd��TCP�⡼�ɤ��ڤ��ؤ���
KZM-A9-Dual�ܡ��ɤ�Android��ADB����³
Android��emulator��localhost���¤�������