Androidの開発環境をLinux上に構築(2)

この記事は2年以上前に書いたものです。
そのため情報が古い可能性があります。ご了承ください。m(_ _)m

今度は、

% uname -a
Linux prime 2.6.32-5-amd64 #1 SMP Wed Aug 25 13:59:41 UTC 2010 x86_64 GNU/Linux
% cat /etc/debian_version
squeeze/sid

なPhysicalMachine環境へ SDKをインストールしていて少々ハマる。

まず、エミュレータが起動しない

% tools/emulator @JNDK01 -qemu --cpu cortex-a8
SDL init failure, reason is: No available video device

サッパリ分からないのでstrace。

% strace tools/emulator @JNDK01 -qemu --cpu cortex-a8
execve("tools/emulator", ["tools/emulator", "@JNDK01", "-qemu", "--cpu", "cortex-a8"], [/* 19 va                                                           rs */]) = 0
[ Process PID=28330 runs in 32 bit mode. ]
brk(0)                                  = 0x92c2000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff76fc000
・・・
open("/lib32/tls/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/i686/sse2/cmov", 0xffe534b4) = -1 ENOENT (No such file or directory)
open("/lib32/tls/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/i686/sse2", 0xffe534b4) = -1 ENOENT (No such file or directory)
open("/lib32/tls/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/i686/cmov", 0xffe534b4) = -1 ENOENT (No such file or directory)
open("/lib32/tls/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/i686", 0xffe534b4)   = -1 ENOENT (No such file or directory)
open("/lib32/tls/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/sse2/cmov", 0xffe534b4) = -1 ENOENT (No such file or directory)
open("/lib32/tls/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/sse2", 0xffe534b4)   = -1 ENOENT (No such file or directory)
open("/lib32/tls/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls/cmov", 0xffe534b4)   = -1 ENOENT (No such file or directory)
open("/lib32/tls/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/tls", 0xffe534b4)        = -1 ENOENT (No such file or directory)
open("/lib32/i686/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/i686/sse2/cmov", 0xffe534b4) = -1 ENOENT (No such file or directory)
open("/lib32/i686/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/i686/sse2", 0xffe534b4)  = -1 ENOENT (No such file or directory)
open("/lib32/i686/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/i686/cmov", 0xffe534b4)  = -1 ENOENT (No such file or directory)
open("/lib32/i686/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/i686", 0xffe534b4)       = -1 ENOENT (No such file or directory)
open("/lib32/sse2/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/sse2/cmov", 0xffe534b4)  = -1 ENOENT (No such file or directory)
open("/lib32/sse2/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/sse2", 0xffe534b4)       = -1 ENOENT (No such file or directory)
open("/lib32/cmov/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib32/cmov", 0xffe534b4)       = -1 ENOENT (No such file or directory)
open("/lib32/libX11.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat64("/lib32", {st_mode=S_IFDIR|0755, st_size=1720, ...}) = 0
・・・

ライブラリが無いってだけ?ググってみたり。(32 bit compatible libs on 64 bit?)
適当にライブラリ入れてみたり。

% sudo aptitude install ia32-libs
以下の新規パッケージがインストールされます:
  ia32-libs lib32asound2{a} lib32z1{a}
更新: 0 個、新規インストール: 3 個、削除: 0 個、保留: 0 個。
29.5MB のアーカイブを取得する必要があります。展開後に 75.7MB のディスク領域が新たに消費されます。
先に進みますか? [Y/n/?]
取得:1 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main lib32z1 amd64 1:1.2.3.4.dfsg-3 [76.1kB]
取得:2 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main lib32asound2 amd64 1.0.23-1 [326kB]
取得:3 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main ia32-libs amd64 20090808 [29.1MB]
29.5MB を 25s 秒でダウンロードしました (1,143kB/s)
未選択パッケージ lib32z1 を選択しています。
(データベースを読み込んでいます ... 現在 153054 個のファイルとディレクトリがインストールされています。)
(.../lib32z1_1%3a1.2.3.4.dfsg-3_amd64.deb から) lib32z1 を展開しています...
未選択パッケージ lib32asound2 を選択しています。
(.../lib32asound2_1.0.23-1_amd64.deb から) lib32asound2 を展開しています...
未選択パッケージ ia32-libs を選択しています。
(.../ia32-libs_20090808_amd64.deb から) ia32-libs を展開しています...
lib32z1 (1:1.2.3.4.dfsg-3) を設定しています ...
lib32asound2 (1.0.23-1) を設定しています ...
ia32-libs (20090808) を設定しています ...

再度・・・

% tools/emulator @JNDK01 -qemu --cpu cortex-a8
emulator: warning: opening audio output failed

動いた!画面は代わり映え無し。

tools/adb も動かない。

% tools/adb
tools/adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
% ldd tools/adb
        linux-gate.so.1 =>  (0xf774b000)
        librt.so.1 => /lib32/librt.so.1 (0xf772c000)
        libncurses.so.5 => /lib32/libncurses.so.5 (0xf76f3000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf76d9000)
        libstdc++.so.6 => not found
        libm.so.6 => /lib32/libm.so.6 (0xf76b3000)
        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7695000)
        libc.so.6 => /lib32/libc.so.6 (0xf754e000)
        /lib/ld-linux.so.2 (0xf774c000)

ググったら、g++-multilibが必要とか。(Building on Ubuntu AMD64 bit enviroment)
早速。

% sudo aptitude install g++-multilib
以下の新規パッケージがインストールされます:
  g++-4.4-multilib{a} g++-multilib gcc-4.4-multilib{a} lib32gomp1{a} lib32stdc++6{a}
更新: 0 個、新規インストール: 5 個、削除: 0 個、保留: 0 個。
3,714kB のアーカイブを取得する必要があります。展開後に 9,769kB のディスク領域が新たに消費されます。
先に進みますか? [Y/n/?]
取得:1 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main lib32gomp1 amd64 4.4.4-8 [24.7kB]
取得:2 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main gcc-4.4-multilib amd64 4.4.4-8 [2,331kB]
取得:3 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main lib32stdc++6 amd64 4.4.4-8 [347kB]
取得:4 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main g++-4.4-multilib amd64 4.4.4-8 [1,010kB]
取得:5 http://ring.riken.jp/archives/linux/debian/debian/ squeeze/main g++-multilib amd64 4:4.4.4-2 [822B]
3,714kB を 3s 秒でダウンロードしました (1,065kB/s)
未選択パッケージ lib32gomp1 を選択しています。
(データベースを読み込んでいます ... 現在 153023 個のファイルとディレクトリがインストールされています。)
(.../lib32gomp1_4.4.4-8_amd64.deb から) lib32gomp1 を展開しています...
未選択パッケージ gcc-4.4-multilib を選択しています。
(.../gcc-4.4-multilib_4.4.4-8_amd64.deb から) gcc-4.4-multilib を展開しています...
未選択パッケージ lib32stdc++6 を選択しています。
(.../lib32stdc++6_4.4.4-8_amd64.deb から) lib32stdc++6 を展開しています...
未選択パッケージ g++-4.4-multilib を選択しています。
(.../g++-4.4-multilib_4.4.4-8_amd64.deb から) g++-4.4-multilib を展開しています...
未選択パッケージ g++-multilib を選択しています。
(.../g++-multilib_4%3a4.4.4-2_amd64.deb から) g++-multilib を展開しています...
lib32gomp1 (4.4.4-8) を設定しています ...
gcc-4.4-multilib (4.4.4-8) を設定しています ...
lib32stdc++6 (4.4.4-8) を設定しています ...
g++-4.4-multilib (4.4.4-8) を設定しています ...
g++-multilib (4:4.4.4-2) を設定しています ...

インストール後。

% ldd tools/adb
        linux-gate.so.1 =>  (0xf7731000)
        librt.so.1 => /lib32/librt.so.1 (0xf7712000)
        libncurses.so.5 => /lib32/libncurses.so.5 (0xf76d9000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf76bf000)
        libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf75ca000)
        libm.so.6 => /lib32/libm.so.6 (0xf75a4000)
        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7586000)
        libc.so.6 => /lib32/libc.so.6 (0xf743f000)
        /lib/ld-linux.so.2 (0xf7732000)
% ./tools/adb devices
List of devices attached
????????????    no permissions

% sudo ./tools/adb devices
List of devices attached
????????????    no permissions
% tools/adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
% sudo ./tools/adb devices
List of devices attached
????????????    no permissions

ん~・・・、またまたググると、adb start-serverをroot権限で実行する必要があるらしい。(Dev PhoneにUbuntuマシンから接続しようとしたら'error: insufficient permissions for device'などと怒られるときの対処法)

% sudo tools/adb kill-server
% sudo tools/adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
% tools/adb devices
List of devices attached
SSHEX007494     device

おお~。

Google Android用携帯アプリ作成のための基礎知識 (4/5)
を見て適当にコマンド叩いてみたり。

% tools/adb shell
$ ls
sh_tmp
sqlite_journals
sdservice_tmp
sphinx_tmp
bkrs_data_tmp
obex_data_tmp
sqlite_stmt_journals
cache
data
cprm
sdcard
etc
system
sys
sbin
proc
init.rc
init.qcom.sh
init.qcom.rc
init.qcom.post_boot.sh
init.goldfish.rc
init
default.prop
root
dev
$ ls -l
drwxrwxrwt root     root              2010-09-21 04:07 sh_tmp
drwxrwxrwx system   system            2010-09-22 03:11 sqlite_journals
drwxrwxrwt root     root              2010-09-21 04:07 sdservice_tmp
drwxrwxrwt root     root              2010-09-20 12:52 sphinx_tmp
drwxrwxrwt root     root              2010-09-20 12:52 bkrs_data_tmp
drwxrwxrwt root     root              2010-09-20 12:52 obex_data_tmp
drwxrwxrwt root     root              2010-09-22 03:10 sqlite_stmt_journals
drwxrwx--- system   cache             2010-09-18 23:39 cache
drwxrwxrwx system   system            2010-09-21 13:53 data
d---rwxr-x system   sdcard_rw          1970-01-01 09:00 cprm
d---rwxr-x system   sdcard_rw          2010-09-21 04:18 sdcard
lrwxrwxrwx root     root              2010-09-20 12:52 etc -> /system/etc
drwxr-xr-x root     root              2010-01-01 00:00 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
-rwxr-x--- root     root        20031 1970-01-01 09:00 init.rc
-rwxr-x--- root     root         2149 1970-01-01 09:00 init.qcom.sh
-rwxr-x--- root     root         4693 1970-01-01 09:00 init.qcom.rc
-rwxr-x--- root     root         2982 1970-01-01 09:00 init.qcom.post_boot.sh
-rwxr-x--- root     root         1677 1970-01-01 09:00 init.goldfish.rc
-rwxr-x--- root     root       121032 1970-01-01 09:00 init
-rw-r--r-- root     root          118 1970-01-01 09:00 default.prop
drwx------ root     root              2010-08-04 16:23 root
drwxr-xr-x root     root              2010-09-20 13:29 dev
$ ls -l /system/bin
lrwxr-xr-x root     shell             2010-01-01 00:00 bugreport -> dumpstate
lrwxr-xr-x root     shell             2010-01-01 00:00 cat -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 chmod -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 chown -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 cmp -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 date -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 dd -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 df -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 dmesg -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 dumpcrash -> dumpstate
lrwxr-xr-x root     shell             2010-01-01 00:00 getevent -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 getprop -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 hd -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 id -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 ifconfig -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 iftop -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 insmod -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 ioctl -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 kill -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 ln -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 log -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 ls -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 lsmod -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 mkdir -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 mount -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 mv -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 netstat -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 newfs_msdos -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 notify -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 printenv -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 ps -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 reboot -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 renice -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 rm -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 rmdir -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 rmmod -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 route -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 schedtop -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 sendevent -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 setconsole -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 setprop -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 sleep -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 smd -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 start -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 stop -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 sync -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 top -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 umount -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 vmstat -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 watchprops -> toolbox
lrwxr-xr-x root     shell             2010-01-01 00:00 wipe -> toolbox
-rwxr-xr-x root     shell       86780 2010-01-01 00:00 applypatch
-rwxr-xr-x root     shell        9640 2010-01-01 00:00 flash_image
-rwxr-xr-x root     shell       68256 2010-01-01 00:00 linker
-rwxr-xr-x root     shell      309404 2010-01-01 00:00 recovery
-rwxr-xr-x root     shell      247656 2010-01-01 00:00 updater
-rwxr-xr-x root     shell      111824 2010-01-01 00:00 akmd2
-rwxr-xr-x root     shell        5420 2010-01-01 00:00 dalvikvm
-rwxr-xr-x root     shell      109436 2010-01-01 00:00 dbus-daemon
-rwxr-xr-x root     shell        9644 2010-01-01 00:00 dexopt
-rwxr-xr-x root     shell       44536 2010-01-01 00:00 dhcpcd
-rwxr-xr-x root     shell       13820 2010-01-01 00:00 dumpe2fs
-rwxr-xr-x root     shell        5460 2010-01-01 00:00 dvz
-rwxr-xr-x root     shell      110856 2010-01-01 00:00 e2fsck
-rwxr-xr-x root     shell      127652 2010-01-01 00:00 fotad
-rwxr-xr-x root     shell       22544 2010-01-01 00:00 fsck_msdos
-rwxr-xr-x root     shell         201 2010-01-01 00:00 input
-rwxr-xr-x root     shell       30580 2010-01-01 00:00 mke2fs
-rwxr-xr-x root     shell         205 2010-01-01 00:00 monkey
-rwxr-xr-x root     shell       22164 2010-01-01 00:00 resize2fs
-rwxr-xr-x root     shell       13788 2010-01-01 00:00 rlog
-rwxr-xr-x root     shell       22280 2010-01-01 00:00 tune2fs
-rwxr-xr-x root     shell      109020 2010-01-01 00:00 iptables
-rwxr-xr-x root     shell       18216 2010-01-01 00:00 mtpd
-rwxr-xr-x root     shell        5320 2010-01-01 00:00 mwmainte
-rwxr-xr-x root     shell       59432 2010-01-01 00:00 obexd
-rwxr-xr-x root     shell      163132 2010-01-01 00:00 racoon
-rwxr-sr-x root     net_raw     26620 2010-01-01 00:00 ping
-rwxr-xr-x root     shell      147648 2010-01-01 00:00 pppd
-rwxr-xr-x root     shell        5336 2010-01-01 00:00 sdservice
-rwxr-xr-x root     shell     1017532 2010-01-01 00:00 synergy_service
-rwxr-xr-x root     shell        5364 2010-01-01 00:00 synergy_wifi_attach
-rwxr-xr-x root     shell       22532 2010-01-01 00:00 synergy_wifi_ptest
-r-sr-xr-x root     shell       55072 2010-01-01 00:00 synergy_wifi_wps
-rwxr-xr-x root     shell         354 2010-01-01 00:00 unififw
-rwxr-xr-x root     shell        5308 2010-01-01 00:00 mediayamahaserver
-rwxr-xr-x root     shell      143152 2010-01-01 00:00 uimd
-rwxr-xr-x root     shell       26168 2010-01-01 00:00 usbmgrd
-rwxr-xr-x root     shell       30744 2010-01-01 00:00 wpa_cli
-rwxr-xr-x root     shell      105100 2010-01-01 00:00 wpa_supplicant
-rwxr-xr-x root     shell       22124 2010-01-01 00:00 debuggerd
-rwxr-xr-x root     shell        5304 2010-01-01 00:00 factory_reset
-rwxr-xr-x root     shell        5496 2010-01-01 00:00 gzip
-rwxr-xr-x root     shell        9832 2010-01-01 00:00 logcat
-rwxr-xr-x root     shell        9672 2010-01-01 00:00 logwrapper
-rwxr-sr-x root     inet         5616 2010-01-01 00:00 netcfg
-rwxr-xr-x root     shell        5592 2010-01-01 00:00 rild
-rwxr-xr-x root     shell       86944 2010-01-01 00:00 sh
-rwxr-xr-x root     shell      116612 2010-01-01 00:00 shdisp_process
-rwxr-xr-x root     shell        5540 2010-01-01 00:00 shlcdc_process
-rwxr-xr-x root     shell       71560 2010-01-01 00:00 shsd_process
-rwxr-xr-x root     shell        9588 2010-01-01 00:00 shsd_test_process
-rwxr-xr-x root     shell       13920 2010-01-01 00:00 shusb_process
-rwxr-xr-x root     shell       73160 2010-01-01 00:00 toolbox
-rwxr-xr-x root     shell       43196 2010-01-01 00:00 vold
-rwxr-xr-x root     shell      101160 2010-01-01 00:00 dgstmgrd
-rwxr-xr-x root     shell        5828 2010-01-01 00:00 fatsh
-rwxr-xr-x root     shell        9932 2010-01-01 00:00 fatsh_cprm
-rwxr-xr-x root     shell       14252 2010-01-01 00:00 fusermount
-rwxr-xr-x root     shell       18144 2010-01-01 00:00 logd
-rwxr-xr-x root     shell        5428 2010-01-01 00:00 medousa
-rwxr-xr-x root     shell       18008 2010-01-01 00:00 mm-adec-omxaac-test
-rwxr-xr-x root     shell       18076 2010-01-01 00:00 mm-adec-omxmp3-test
-rwxr-xr-x root     shell       13872 2010-01-01 00:00 mm-aenc-omxaac-test
-rwxr-xr-x root     shell       26396 2010-01-01 00:00 mm-vdec-omx-test
-rwxr-xr-x root     shell        5576 2010-01-01 00:00 mountfuse
-rwxr-xr-x root     shell        5304 2010-01-01 00:00 schedtest
-rwxr-xr-x root     shell        5396 2010-01-01 00:00 testfuse
-rwxr-xr-x root     shell         191 2010-01-01 00:00 am
-rwxr-xr-x root     shell        5564 2010-01-01 00:00 app_process
-rwxr-xr-x root     shell         199 2010-01-01 00:00 bmgr
-rwxr-xr-x root     shell       14232 2010-01-01 00:00 bootanimation
-rwxr-xr-x root     shell       14188 2010-01-01 00:00 dumpstate
-rwxr-xr-x root     shell        9724 2010-01-01 00:00 dumpsys
-rwxr-xr-x root     shell         194 2010-01-01 00:00 ime
-rwxr-xr-x root     shell       14028 2010-01-01 00:00 installd
-rwxr-xr-x root     shell       13932 2010-01-01 00:00 keystore
-rwxr-xr-x root     shell         191 2010-01-01 00:00 pm
-rwxr-xr-x root     shell        9764 2010-01-01 00:00 service
-rwxr-xr-x root     shell        9836 2010-01-01 00:00 servicemanager
-rwxr-xr-x root     shell        5288 2010-01-01 00:00 surfaceflinger
-rwxr-xr-x root     shell         192 2010-01-01 00:00 svc
-rwxr-xr-x root     shell        5328 2010-01-01 00:00 system_server
-rwxr-xr-x root     shell        5440 2010-01-01 00:00 mediaserver
-rwxr-xr-x root     shell     2513124 2010-01-01 00:00 dtvserver
-rwxr-xr-x root     shell       64192 2010-01-01 00:00 dbmanager_test
-rwxr-xr-x root     shell       27208 2010-01-01 00:00 dbrecovery_utility_test
-rwxr-xr-x root     shell       13880 2010-01-01 00:00 CKPD-daemon
-rwxr-xr-x root     shell      159644 2010-01-01 00:00 dbus_bt
-rwxr-xr-x root     shell        5672 2010-01-01 00:00 diag_klog
-rwxr-xr-x root     shell        5448 2010-01-01 00:00 ftmTest
-rwxr-xr-x root     shell        9728 2010-01-01 00:00 handset-keypress
-rwxr-xr-x root     shell       18012 2010-01-01 00:00 port-bridge
-rwxr-xr-x root     shell       18896 2010-01-01 00:00 qmuxd
-rwxr-xr-x root     shell       10016 2010-01-01 00:00 test_diag
-rwxr-xr-x root     shell       48500 2010-01-01 00:00 loc_api_app
-rwxr-xr-x root     shell        5608 2010-01-01 00:00 mm-abl-test
-rwxr-xr-x root     shell       22152 2010-01-01 00:00 mm-adec-omxQcelp13-test
-rwxr-xr-x root     shell       22152 2010-01-01 00:00 mm-adec-omxevrc-test
-rwxr-xr-x root     shell       14048 2010-01-01 00:00 mm-aenc-omxqcelp13-test
-rwxr-xr-x root     shell       18028 2010-01-01 00:00 mm-jpeg-dec-test
-rwxr-xr-x root     shell       17988 2010-01-01 00:00 mm-jpeg-enc-test
-rwxr-xr-x root     shell       53200 2010-01-01 00:00 mm-qcamera-test
-rwxr-xr-x root     shell       10576 2010-01-01 00:00 mm-qcamera-testsuite-client
-rwxr-xr-x root     shell       22276 2010-01-01 00:00 mm-venc-omx-test
$ service list
Found 75 services:
0       iSendCmail: [jp.co.sharp.android.internal.telephony.cdma.ISendCmailInterface]
1       effect: [jp.co.sharp.android.media.IEffectService]
2       com.kddi.android.uim.uimmonitor: [com.kddi.android.uim.IUimMonitor]
3       com.kddi.android.uim.uimmanager: [com.kddi.android.uim.IUimManager]
4       checkin: [android.os.ICheckinService]
5       phone: [com.android.internal.telephony.ITelephony]
6       iphonesubinfo: [com.android.internal.telephony.IPhoneSubInfo]
7       simphonebook: [com.android.internal.telephony.IIccPhoneBook]
8       isms: [com.android.internal.telephony.ISms]
9       GoliathCompetitionServer: [jp.co.sharp.android.competition.server.ICompetitionServer]
10      AlarmCompetitionServer: [jp.co.sharp.android.competition.server.ICompetitionServer]
11      DmcFwService: [com.kddi.android.dmcfw.IDmcFwService]
12      obexmanager: [jp.co.sharp.android.obexmanager.server.IOBEXMngService]
13      ExtIfCompetitionServer: [jp.co.sharp.android.competition.server.ICompetitionServer]
14      appwidget: [com.android.internal.appwidget.IAppWidgetService]
15      audio: [android.media.IAudioService]
16      wallpaper: [android.app.IWallpaperService]
17      search: [android.app.ISearchManager]
18      location: [android.location.ILocationManager]
19      devicestoragemonitor: []
20      mount: [android.os.IMountService]
21      usbmanager: [jp.co.sharp.android.usbmanager.server.IUsbManagerService]
22      notification: [android.app.INotificationManager]
23      accessibility: [android.view.accessibility.IAccessibilityManager]
24      connectivity: [android.net.IConnectivityManager]
25      wifi: [android.net.wifi.IWifiManager]
26      netstat: [android.os.INetStatService]
27      input_method: [com.android.internal.view.IInputMethodManager]
28      clipboard: [android.text.IClipboard]
29      bgringer: [jp.co.sharp.android.internal.app.IBgRingerService]
30      softguide: [jp.co.sharp.android.softguide.ISoftGuide]
31      statusbar: [android.app.IStatusBar]
32      fm_transmitter: [android.fm.IFmTransmitter]
33      fm_receiver: [android.fm.IFmReceiver]
34      bluetooth_Sdap: [android.bluetooth.IBluetoothSdap]
35      bluetooth_ObjectPushServer: [android.bluetooth.IBluetoothObjectPushServer]
36      bluetooth_ObjectPushClient: [android.bluetooth.IBluetoothObjectPushClient]
37      bluetooth_dung: [android.bluetooth.IBluetoothDunGateway]
38      bluetooth_handsfree: [android.bluetooth.IBluetoothHandsfree]
39      bluetooth_avrcp: [android.bluetooth.IBluetoothAvrcp]
40      bluetooth_a2dp: [android.bluetooth.IBluetoothA2dp]
41      bluetooth: [android.bluetooth.IBluetoothDevice]
42      poweroffcheck: [jp.co.sharp.android.internal.app.IPowerOffCheck]
43      securitylock: [jp.co.sharp.android.securitylock.ISecurityLockManager]
44      window: [android.view.IWindowManager]
45      keyhook: [jp.co.sharp.android.internal.app.IKeyHookService]
46      sensor: [android.hardware.ISensorService]
47      alarm: [android.app.IAlarmManager]
48      hardware: [android.os.IHardwareService]
49      battery: []
50      content: [android.content.IContentService]
51      permission: [android.os.IPermissionController]
52      activity.providers: []
53      activity.senders: []
54      activity.services: []
55      activity.broadcasts: []
56      cpuinfo: []
57      meminfo: []
58      activity: [android.app.IActivityManager]
59      package: [android.content.pm.IPackageManager]
60      telephony.registry: [com.android.internal.telephony.ITelephonyRegistry]
61      usagestats: [com.android.internal.app.IUsageStats]
62      batteryinfo: [com.android.internal.app.IBatteryStats]
63      power: [android.os.IPowerManager]
64      entropy: []
65      SurfaceFlinger: [android.ui.ISurfaceComposer]
66      media.camera: [android.hardware.ICameraService]
67      media.player: [android.hardware.IMediaPlayerService]
68      media.audio_flinger: [android.media.IAudioFlinger]
69      dtvbml.server: []
70      dtv.server: []
71      media.yamahaplayer: [IService]
72      sd.service: []
73      jp.co.sharp.android.secure.SafetyBox: []
74      jp.co.sharp.android.secure.APIProtection: []
$ top



User 4%, System 95%, IOW 0%, IRQ 0%
User 14 + Nice 0 + Sys 291 + Idle 0 + IOW 0 + IRQ 0 + SIRQ 0 = 305

  PID CPU% S  #THR     VSS     RSS UID      Name
 1222  97% S    15  22308K    908K root     /system/bin/synergy_service
16080   0% R     1    892K    384K shell    top
 1228   0% S     2   1264K     96K root     /system/bin/akmd2
 1364   0% S    76 302380K  40100K system   system_server
    5   0% S     1      0K      0K root     khelper
   10   0% S     1      0K      0K root     suspend
  191   0% S     1      0K      0K root     kblockd/0
  208   0% S     1      0K      0K root     kmmcd
  215   0% S     1      0K      0K root     btaddconn
  216   0% S     1      0K      0K root     btdelconn
  230   0% S     1      0K      0K root     modem_notifier
  241   0% S     1      0K      0K root     smd_tty
  253   0% S     1      0K      0K root     qmi
  263   0% S     1      0K      0K root     ctl0
  267   0% S     1      0K      0K root     ctl1
  271   0% S     1      0K      0K root     ctl2
  275   0% S     1      0K      0K root     nmea
  278   0% D     1      0K      0K root     rpcrouter
  283   0% S     1      0K      0K root     dalrpc_rcv_DAL_
  285   0% S     1      0K      0K root     krpcserversd
  330   0% S     1      0K      0K root     dalrpc_rcv_DAL_
  386   0% S     1      0K      0K root     kswapd0
  388   0% S     1      0K      0K root     aio/0
  394   0% S     1      0K      0K root     nfsiod
  405   0% S     1      0K      0K root     mdp_dma_wq
  406   0% S     1      0K      0K root     mdp_vsync_wq
  407   0% S     1      0K      0K root     mdp_pipe_ctrl_w
  488   0% S     1      0K      0K root     diag_wq
  560   0% S     1      0K      0K root     scsi_tgtd/0
  568   0% S     1      0K      0K root     mtdblockd
  599   0% S     1      0K      0K root     ubi_bgt0d
  607   0% S     1      0K      0K root     ubi_bgt1d
  610   0% S     1      0K      0K root     ubi_bgt2d
  613   0% S     1      0K      0K root     usb_work
  617   0% S     1      0K      0K root     diag
  618   0% S     1      0K      0K root     gs_tty
  621   0% S     1      0K      0K root     mdlm_tty
  624   0% S     1      0K      0K root     obex_tty
  633   0% D     1      0K      0K root     kpmapp_usbclntd
  634   0% D     1      0K      0K root     kpmapp_usbclntc
  667   0% S     1      0K      0K root     kondemand/0
  678   0% S     1      0K      0K root     hid_compat
  713   0% S     1      0K      0K root     sthenod
  724   0% S     1      0K      0K root     krfcommd
  726   0% S     1      0K      0K root     rpciod/0
  740   0% D     1      0K      0K root     khsclntd
 1010   0% S     1      0K      0K root     mmcqd
 1202   0% S     1      0K      0K root     kjournald
 1203   0% S     1      0K      0K root     kjournald
 1204   0% S     2   3856K    316K root     /system/bin/logd
    1   0% S     1    320K    236K root     /init
 1206   0% S     1    784K    136K system   /system/bin/servicemanager
 1207   0% S     1   1528K    308K root     /system/bin/vold
 1208   0% S     6   7992K    568K root     /system/bin/usbmgrd
 1209   0% S     1    644K     92K root     /system/bin/debuggerd
 1210   0% S     1   4980K    280K root     /system/bin/fotad
 1211   0% S    12  17140K    928K root     /system/bin/rild
 1212   0% S     9  13784K    676K root     /system/bin/uimd
 1213   0% S     1 102376K  15696K root     zygote
 1214   0% S    10  54388K   9288K media    /system/bin/mediaserver
 1215   0% S     4  18156K   2316K media    /system/bin/mediayamahaserver
 1216   0% S     1   1308K    224K bluetoot /system/bin/dbus-daemon
 1217   0% S     1    804K    200K root     /system/bin/installd
 1218   0% S     1   1680K    132K keystore /system/bin/keystore
 1219   0% S     1    808K    124K root     /system/bin/shlcdc_process
 1220   0% S     3   4340K    924K root     /system/bin/shdisp_process
 1223   0% S     9  11244K    700K root     /system/bin/shsd_process
 1226   0% S     5  18372K   2328K root     /system/bin/sdservice
 1227   0% S     4   4808K    376K root     /system/bin/obexd
 1229   0% S     2   1888K    188K root     /system/bin/shusb_process
 1230   0% S     1   1180K    300K root     /system/bin/medousa
 1232   0% S     2   2264K    328K root     /system/bin/port-bridge
 1233   0% S     5   4848K    208K root     /system/bin/qmuxd
 1269   0% S    11  14188K    636K root     /system/bin/mwmainte
 1480   0% S     9 192604K  35992K aqq_2001 com.android.launcher
 1483   0% S    10 137184K  17348K radio    com.android.phone
 1488   0% S    19 142312K  15612K system   jp.co.sharp.android.sendcmailservice
 1492   0% S    21 172924K  18960K aqq_2001 android.process.acore
 1495   0% S    15 140844K  18284K app_9    jp.co.fsi.fs1seg
 1721   0% S     3   3904K    476K root     fatsh_cprm
 3016   0% S     1      0K      0K root     unifi_workq
 3026   0% S     1      0K      0K root     uf_bh_thread
 3027   0% S     1      0K      0K root     ksdioirqd/mmc1
 3029   0% S     1    632K     96K log      /system/bin/logwrapper
 3030   0% S     1   1816K    348K root     /system/bin/wpa_supplicant
 7581   0% S     5  23280K    932K root     /system/bin/dtvserver
 8788   0% S     4   3368K    184K shell    /sbin/adbd
12039   0% S     5 191320K  18796K aqq_47   jp.co.omronsoft.iwnnime
12045   0% S     9 153516K  18064K aqq_2003 android.process.media
14925   0% S     1      0K      0K root     pdflush
15223   0% S     1      0K      0K root     pdflush
15391   0% S     5 134652K  18952K netappli jp.co.sharp.android.messaging
15618   0% S     5 130364K  19252K app_6    com.pv.wmdrmservice
15836   0% S     6 132320K  18332K app_41   org.appaware
15851   0% S    12 158568K  25944K app_20   com.google.process.gapps
15864   0% S    19 144916K  18676K system   com.kddi.android.fota
15915   0% S     1    712K    320K shell    /system/bin/sh
15959   0% S     1    632K    248K log      /system/bin/logwrapper
15960   0% S     1    824K    356K dhcp     /system/bin/dhcpcd
16060   0% S    16 141960K  21216K app_5    com.pv.pvmtpservicestart
 1205   0% S     6   8936K    952K root     /system/bin/dgstmgrd
    2   0% S     1      0K      0K root     kthreadd
    3   0% S     1      0K      0K root     ksoftirqd/0
    4   0% S     1      0K      0K root     events/0
^C
カテゴリー: プログラム, モバイル タグ: , , パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です