2015年1月30日金曜日

Androidのバージョン取得

私は最近になってAndroidに触り始めたので過去の資産などほとんど無いのですがやはりどうせなら古い旧式のバージョンでも動いたほうがいいと欲を出したところ意外な落とし穴がありました。



現状エミュレータで動作させることが出来るのはAndroid1.5(API Level3)のイメージがあるので実際にバージョンチェックがあるコードを動作させたところプログラムは動作を停止し、ログに次のような内容が出力されました。

01-30 06:52:13.648      546-546/? I/vold﹕ Android Volume Daemon version 2.0
01-30 06:52:13.678      547-547/? I/DEBUG﹕ debuggerd: Jun 30 2009 17:00:51
01-30 06:52:13.728      546-546/? I/vold﹕ New MMC card 'SU02G' (serial 1012966) added @ /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118
01-30 06:52:13.768      546-546/? I/vold﹕ Disk (blkdev 179:0), 204800 secs (100 MB) 0 partitions
01-30 06:52:13.768      546-546/? I/vold﹕ New blkdev 179.0 on media SU02G, media path /devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118, Dpp 0
01-30 06:52:13.768      546-546/? I/vold﹕ Evaluating dev '/devices/platform/goldfish_mmc.0/mmc_host/mmc0/mmc0:e118/block/mmcblk0' for mountable filesystems for '/sdcard'
01-30 06:52:13.797      546-546/? D/vold﹕ Bootstrapping complete
01-30 06:52:13.838      546-552/? I//system/bin/dosfsck﹕ dosfsck 3.0.1 (23 Nov 2008)
01-30 06:52:13.838      553-553/? E/flash_image﹕ can't find recovery partition
01-30 06:52:13.838      546-552/? I//system/bin/dosfsck﹕ dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN
01-30 06:52:13.838      546-552/? I//system/bin/dosfsck﹕ Checking we can access the last sector of the filesystem
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ Boot sector contents:
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ System ID "MSWIN4.1"
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ Media byte 0xf8 (hard disk)
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 512 bytes per logical sector
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 512 bytes per cluster
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 32 reserved sectors
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ First FAT starts at byte 16384 (sector 32)
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 2 FATs, 32 bit entries
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 813056 bytes per FAT (= 1588 sectors)
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ Root directory start at cluster 2 (arbitrary size)
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ Data area starts at byte 1642496 (sector 3208)
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 201592 data clusters (103215104 bytes)
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 9 sectors/track, 2 heads
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 0 hidden sectors
01-30 06:52:13.888      546-552/? I//system/bin/dosfsck﹕ 204800 sectors total
01-30 06:52:13.967      556-556/? D/qemud﹕ entering main loop
01-30 06:52:14.418      546-552/? I//system/bin/dosfsck﹕ Checking for unused clusters.
01-30 06:52:14.548      546-552/? I//system/bin/dosfsck﹕ Checking free cluster summary.
01-30 06:52:14.558      546-552/? I//system/bin/dosfsck﹕ /dev/block//vold/179:0: 0 files, 1/201592 clusters
01-30 06:52:14.578      546-552/? I/logwrapper﹕ /system/bin/dosfsck terminated by exit(0)
01-30 06:52:14.578      546-552/? D/vold﹕ Filesystem check completed OK
01-30 06:52:14.587      546-552/? I/vold﹕ Sucessfully mounted vfat filesystem 179:0 on /sdcard (safe-mode on)
01-30 06:52:14.757      549-549/? D/AndroidRuntime﹕ >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
01-30 06:52:14.757      549-549/? D/AndroidRuntime﹕ CheckJNI is ON
01-30 06:52:14.797      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:14.807      556-556/? D/qemud﹕ created client 0xe078 listening on fd 8
01-30 06:52:14.807      556-556/? D/qemud﹕ fdhandler_event: disconnect on fd 8
01-30 06:52:14.827      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:14.827      556-556/? D/qemud﹕ created client 0xf028 listening on fd 8
01-30 06:52:14.827      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'gsm'
01-30 06:52:14.827      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 1
01-30 06:52:14.837      556-556/? D/qemud﹕ client_registration: registration succeeded for client 1
01-30 06:52:15.247      550-550/? I/﹕ ServiceManager: 0xac38
01-30 06:52:15.267      550-569/? I/AudioFlinger﹕ AudioFlinger's thread ready to run for output 0
01-30 06:52:15.267      550-550/? I/CameraService﹕ CameraService started: pid=550
01-30 06:52:15.297      549-549/? D/AndroidRuntime﹕ --- registering native functions ---
01-30 06:52:15.567      549-549/? I/Zygote﹕ Preloading classes...
01-30 06:52:15.577      549-549/? D/dalvikvm﹕ GC freed 764 objects / 42216 bytes in 8ms
01-30 06:52:15.727      549-549/? D/dalvikvm﹕ GC freed 278 objects / 17160 bytes in 3ms
01-30 06:52:15.877      549-549/? D/dalvikvm﹕ GC freed 208 objects / 12696 bytes in 3ms
01-30 06:52:15.927      549-549/? D/dalvikvm﹕ Trying to load lib /system/lib/libmedia_jni.so 0x0
01-30 06:52:16.037      549-549/? D/dalvikvm﹕ Added shared lib /system/lib/libmedia_jni.so 0x0
01-30 06:52:16.047      549-549/? D/dalvikvm﹕ Trying to load lib /system/lib/libmedia_jni.so 0x0
01-30 06:52:16.047      549-549/? D/dalvikvm﹕ Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
01-30 06:52:16.047      549-549/? D/dalvikvm﹕ Trying to load lib /system/lib/libmedia_jni.so 0x0
01-30 06:52:16.047      549-549/? D/dalvikvm﹕ Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
01-30 06:52:16.047      549-549/? D/dalvikvm﹕ Trying to load lib /system/lib/libmedia_jni.so 0x0
01-30 06:52:16.047      549-549/? D/dalvikvm﹕ Shared lib '/system/lib/libmedia_jni.so' already loaded in same CL 0x0
01-30 06:52:16.057      549-549/? D/dalvikvm﹕ GC freed 462 objects / 29144 bytes in 4ms
01-30 06:52:16.357      549-549/? D/dalvikvm﹕ GC freed 3599 objects / 172888 bytes in 13ms
01-30 06:52:17.187      549-549/? D/dalvikvm﹕ GC freed 11343 objects / 400496 bytes in 21ms
01-30 06:52:17.427      549-549/? D/dalvikvm﹕ GC freed 10460 objects / 438040 bytes in 23ms
01-30 06:52:17.677      549-549/? D/dalvikvm﹕ GC freed 10959 objects / 459208 bytes in 27ms
01-30 06:52:18.407      549-549/? D/dalvikvm﹕ GC freed 14372 objects / 506760 bytes in 29ms
01-30 06:52:18.657      549-549/? D/dalvikvm﹕ GC freed 11304 objects / 481368 bytes in 29ms
01-30 06:52:18.797      549-549/? D/dalvikvm﹕ GC freed 5938 objects / 249040 bytes in 24ms
01-30 06:52:18.927      549-549/? D/dalvikvm﹕ GC freed 349 objects / 37056 bytes in 19ms
01-30 06:52:19.068      549-549/? D/dalvikvm﹕ GC freed 114 objects / 24560 bytes in 23ms
01-30 06:52:19.148      549-549/? D/dalvikvm﹕ GC freed 321 objects / 37376 bytes in 26ms
01-30 06:52:19.228      549-549/? D/dalvikvm﹕ GC freed 477 objects / 29552 bytes in 24ms
01-30 06:52:19.257      549-549/? D/dalvikvm﹕ Trying to load lib /system/lib/libwebcore.so 0x0
01-30 06:52:19.308      549-549/? D/dalvikvm﹕ Added shared lib /system/lib/libwebcore.so 0x0
01-30 06:52:19.437      549-549/? D/dalvikvm﹕ GC freed 441 objects / 26080 bytes in 27ms
01-30 06:52:19.507      549-549/? D/dalvikvm﹕ GC freed 506 objects / 41328 bytes in 25ms
01-30 06:52:19.587      549-549/? D/dalvikvm﹕ GC freed 537 objects / 38432 bytes in 28ms
01-30 06:52:19.667      549-549/? D/dalvikvm﹕ GC freed 342 objects / 22528 bytes in 26ms
01-30 06:52:19.727      549-549/? D/dalvikvm﹕ GC freed 338 objects / 18656 bytes in 30ms
01-30 06:52:19.807      549-549/? D/dalvikvm﹕ GC freed 629 objects / 32160 bytes in 28ms
01-30 06:52:20.557      549-549/? D/dalvikvm﹕ GC freed 14286 objects / 499096 bytes in 47ms
01-30 06:52:20.828      549-549/? D/dalvikvm﹕ GC freed 11283 objects / 475896 bytes in 43ms
01-30 06:52:21.148      549-549/? D/dalvikvm﹕ GC freed 7592 objects / 343120 bytes in 44ms
01-30 06:52:21.267      549-549/? D/dalvikvm﹕ GC freed 889 objects / 52464 bytes in 33ms
01-30 06:52:21.337      549-549/? D/dalvikvm﹕ GC freed 598 objects / 31424 bytes in 37ms
01-30 06:52:21.417      549-549/? D/dalvikvm﹕ GC freed 413 objects / 26400 bytes in 34ms
01-30 06:52:21.437      549-549/? I/Zygote﹕ ...preloaded 1166 classes in 5877ms.
01-30 06:52:21.477      549-549/? D/dalvikvm﹕ GC freed 313 objects / 19928 bytes in 37ms
01-30 06:52:21.477      549-549/? I/Zygote﹕ Preloading resources...
01-30 06:52:21.517      549-549/? D/dalvikvm﹕ GC freed 54 objects / 11248 bytes in 33ms
01-30 06:52:21.807      549-549/? D/dalvikvm﹕ GC freed 337 objects / 15000 bytes in 38ms
01-30 06:52:21.948      549-549/? D/dalvikvm﹕ GC freed 280 objects / 11712 bytes in 35ms
01-30 06:52:21.967      549-549/? I/Zygote﹕ ...preloaded 48 resources in 490ms.
01-30 06:52:21.977      549-549/? I/Zygote﹕ ...preloaded 15 resources in 11ms.
01-30 06:52:22.017      549-549/? D/dalvikvm﹕ GC freed 117 objects / 8480 bytes in 38ms
01-30 06:52:22.057      549-549/? D/dalvikvm﹕ GC freed 205 objects / 8136 bytes in 34ms
01-30 06:52:22.097      549-549/? D/dalvikvm﹕ GC freed 36 objects / 1400 bytes in 37ms
01-30 06:52:22.097      549-549/? I/dalvikvm﹕ Splitting out new zygote heap
01-30 06:52:22.108      549-549/? I/dalvikvm﹕ System server process 573 has been created
01-30 06:52:22.108      549-549/? I/Zygote﹕ Accepting command socket connections
01-30 06:52:22.177      573-573/? D/dalvikvm﹕ Trying to load lib /system/lib/libandroid_servers.so 0x0
01-30 06:52:22.307      573-573/? D/dalvikvm﹕ Added shared lib /system/lib/libandroid_servers.so 0x0
01-30 06:52:22.327      573-573/? I/sysproc﹕ Entered system_init()
01-30 06:52:22.327      573-573/? I/sysproc﹕ ServiceManager: 0x4e638
01-30 06:52:22.327      573-573/? I/SurfaceFlinger﹕ SurfaceFlinger is starting
01-30 06:52:22.327      573-580/? I/SurfaceFlinger﹕ SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
01-30 06:52:22.327      573-580/? E/MemoryHeapBase﹕ error opening /dev/pmem: No such file or directory
01-30 06:52:22.327      573-581/? E/SurfaceFlinger﹕ Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
01-30 06:52:22.367      573-580/? E/GLLogger﹕ couldn't load <libhgl.so> library (Cannot find library)
01-30 06:52:22.367      573-580/? I/SurfaceFlinger﹕ EGL informations:
01-30 06:52:22.367      573-580/? I/SurfaceFlinger﹕ # of configs : 6
01-30 06:52:22.367      573-580/? I/SurfaceFlinger﹕ vendor    : Android
01-30 06:52:22.367      573-580/? I/SurfaceFlinger﹕ version   : 1.31 Android META-EGL
01-30 06:52:22.367      573-580/? I/SurfaceFlinger﹕ extensions:
01-30 06:52:22.367      573-580/? I/SurfaceFlinger﹕ Client API: OpenGL ES
01-30 06:52:22.367      573-580/? I/EGLDisplaySurface﹕ using (fd=21)
    id           =
    xres         = 480 px
    yres         = 800 px
    xres_virtual = 480 px
    yres_virtual = 1600 px
    bpp          = 16
    r            = 11:5
    g            =  5:6
    b            =  0:5
01-30 06:52:22.367      573-580/? I/EGLDisplaySurface﹕ width        = 74 mm (164.756760 dpi)
    height       = 123 mm (165.203247 dpi)
    refresh rate = 60.00 Hz
01-30 06:52:22.378      573-580/? W/HAL﹕ load: module=/system/lib/hw/copybit.goldfish.so error=Cannot find library
01-30 06:52:22.378      573-580/? W/HAL﹕ load: module=/system/lib/hw/copybit.default.so error=Cannot find library
01-30 06:52:22.378      573-580/? W/SurfaceFlinger﹕ ro.sf.lcd_density not defined, using 160 dpi by default.
01-30 06:52:22.378      573-580/? I/SurfaceFlinger﹕ OpenGL informations:
01-30 06:52:22.378      573-580/? I/SurfaceFlinger﹕ vendor    : Android
01-30 06:52:22.378      573-580/? I/SurfaceFlinger﹕ renderer  : Android PixelFlinger 1.0
01-30 06:52:22.378      573-580/? I/SurfaceFlinger﹕ version   : OpenGL ES-CM 1.0
01-30 06:52:22.378      573-580/? I/SurfaceFlinger﹕ extensions: GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
01-30 06:52:22.378      573-580/? W/HAL﹕ load: module=/system/lib/hw/copybit.goldfish.so error=Cannot find library
01-30 06:52:22.378      573-580/? W/HAL﹕ load: module=/system/lib/hw/copybit.default.so error=Cannot find library
01-30 06:52:22.378      573-580/? W/HAL﹕ load: module=/system/lib/hw/overlay.goldfish.so error=Cannot find library
01-30 06:52:22.387      573-580/? W/HAL﹕ load: module=/system/lib/hw/overlay.default.so error=Cannot find library
01-30 06:52:22.398      573-573/? I/sysproc﹕ System server: starting Android runtime.
01-30 06:52:22.398      573-573/? I/sysproc﹕ System server: starting Android services.
01-30 06:52:22.398      573-573/? I/SystemServer﹕ Entered the Android system server!
01-30 06:52:22.417      573-573/? I/sysproc﹕ System server: entering thread pool.
01-30 06:52:22.447      573-589/? I/SystemServer﹕ Starting Power Manager.
01-30 06:52:22.467      573-590/? E/GLLogger﹕ couldn't load <libhgl.so> library (Cannot find library)
01-30 06:52:22.478      573-589/? I/SystemServer﹕ Starting Activity Manager.
01-30 06:52:22.537      573-590/? I/ARMAssembler﹕ generated scanline__00000077:03545404_00000A01_00000000 [ 30 ipp] (51 ins) at [0x195000:0x1950cc] in 6796325 ns
01-30 06:52:22.617      573-589/? I/SystemServer﹕ Starting telephony registry
01-30 06:52:22.617      573-589/? I/SystemServer﹕ Starting Package Manager.
01-30 06:52:22.628      573-589/? I/Installer﹕ connecting...
01-30 06:52:22.628      551-551/? I/installd﹕ new connection
01-30 06:52:22.657      573-589/? I/PackageManager﹕ Got library com.google.android.maps in /system/framework/com.google.android.maps.jar
01-30 06:52:22.657      573-589/? I/PackageManager﹕ Got library com.google.android.gtalkservice in /system/framework/com.google.android.gtalkservice.jar
01-30 06:52:22.687      573-589/? I/PackageManager﹕ Got library android.awt in /system/framework/android.awt.jar
01-30 06:52:22.687      573-589/? I/PackageManager﹕ Got library android.test.runner in /system/framework/android.test.runner.jar
01-30 06:52:22.687      573-589/? I/PackageManager﹕ Got library com.android.im.plugin in /system/framework/com.android.im.plugin.jar
01-30 06:52:22.878      573-589/? D/PackageManager﹕ Scanning app dir /system/framework
01-30 06:52:22.968      573-589/? D/dalvikvm﹕ GC freed 5693 objects / 247072 bytes in 71ms
01-30 06:52:23.058      573-589/? D/PackageManager﹕ Scanning app dir /system/app
01-30 06:52:23.728      573-589/? D/dalvikvm﹕ GC freed 3756 objects / 259936 bytes in 64ms
01-30 06:52:23.898      573-589/? D/PackageManager﹕ Scanning app dir /data/app
01-30 06:52:24.088      573-589/? W/PackageParser﹕ Intent filter for activity ActivityIntentInfo{43683530 com.example.android.apis.media.MediaPlayerDemo_Audio} defines no actions
01-30 06:52:24.088      573-589/? W/PackageParser﹕ Intent filter for activity ActivityIntentInfo{43684088 com.example.android.apis.media.MediaPlayerDemo_Video} defines no actions
01-30 06:52:24.118      573-589/? W/ResourceType﹕ Failure getting entry for 0x7f020000 (t=1 e=0) in package 0: 0xffffffb5
01-30 06:52:24.128      573-589/? D/PackageManager﹕ Scanning app dir /data/app-private
01-30 06:52:24.128      573-589/? I/PackageManager﹕ Time to scan packages: 1.287 seconds
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.providers.contacts
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.cp in package com.android.providers.contacts
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.development
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES in package com.android.development
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser in package com.android.development
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD in package com.android.development
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.providers.gmail.permission.WRITE_GMAIL in package com.android.settings
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.providers.gmail.permission.READ_GMAIL in package com.android.settings
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.settings
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.android.vending.CHECK_LICENSE in package jp.rallewll.siriuth.dispssidwidget
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.gtalkservice.permission.GTALK_SERVICE in package com.google.android.apps.maps
01-30 06:52:24.128      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.google.android.apps.maps
01-30 06:52:24.138      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.local in package com.google.android.apps.maps
01-30 06:52:24.138      573-589/? W/PackageManager﹕ Unknown permission com.android.providers.im.permission.READ_ONLY in package com.google.android.apps.maps
01-30 06:52:24.138      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH in package com.android.browser
01-30 06:52:24.138      573-589/? W/PackageManager﹕ Unknown permission com.google.android.googleapps.permission.GOOGLE_AUTH.mail in package com.android.contacts
01-30 06:52:24.298      573-589/? D/dalvikvm﹕ GC freed 4528 objects / 266480 bytes in 62ms
01-30 06:52:24.308      573-589/? I/SystemServer﹕ Starting Content Manager.
01-30 06:52:24.428      573-589/? W/ActivityManager﹕ Unable to start service Intent { action=android.accounts.IAccountsService comp={com.google.android.googleapps/com.google.android.googleapps.GoogleLoginService} }: not found
01-30 06:52:24.428      573-589/? W/AccountMonitor﹕ Couldn't connect to Intent { action=android.accounts.IAccountsService comp={com.google.android.googleapps/com.google.android.googleapps.GoogleLoginService} } (Missing service?)
01-30 06:52:24.428      573-589/? I/SystemServer﹕ Starting System Content Providers.
01-30 06:52:24.428      573-589/? I/ActivityThread﹕ Publishing provider settings: com.android.providers.settings.SettingsProvider
01-30 06:52:24.448      573-589/? I/ActivityThread﹕ Publishing provider sync: android.content.SyncProvider
01-30 06:52:24.448      573-589/? I/SystemServer﹕ Starting Battery Service.
01-30 06:52:24.448      573-589/? E/BatteryService﹕ Could not open '/sys/class/power_supply/usb/online'
01-30 06:52:24.448      573-589/? E/BatteryService﹕ Could not open '/sys/class/power_supply/battery/batt_vol'
01-30 06:52:24.448      573-589/? E/BatteryService﹕ Could not open '/sys/class/power_supply/battery/batt_temp'
01-30 06:52:24.458      573-589/? I/SystemServer﹕ Starting Hardware Service.
01-30 06:52:24.458      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.458      556-556/? D/qemud﹕ created client 0x10fd8 listening on fd 11
01-30 06:52:24.458      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'hw-control'
01-30 06:52:24.458      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 2
01-30 06:52:24.468      556-556/? D/qemud﹕ client_registration: registration succeeded for client 2
01-30 06:52:24.538      573-589/? I/SystemServer﹕ Starting Alarm Manager.
01-30 06:52:24.548      573-589/? I/SystemServer﹕ Starting Sensor Service.
01-30 06:52:24.548      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.548      556-556/? D/qemud﹕ created client 0x11028 listening on fd 12
01-30 06:52:24.548      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'sensors'
01-30 06:52:24.548      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 3
01-30 06:52:24.558      556-556/? D/qemud﹕ client_registration: registration succeeded for client 3
01-30 06:52:24.568      556-556/? D/qemud﹕ fdhandler_event: disconnect on fd 12
01-30 06:52:24.568      573-589/? I/SystemServer﹕ Starting Window Manager.
01-30 06:52:24.597      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.597      556-556/? D/qemud﹕ created client 0x11028 listening on fd 12
01-30 06:52:24.597      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'sensors'
01-30 06:52:24.597      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 4
01-30 06:52:24.608      556-556/? D/qemud﹕ client_registration: registration succeeded for client 4
01-30 06:52:24.618      573-602/? I/EventHub﹕ New device: path=/dev/input/event0 name=qwerty2 id=0x10000 (of 0x1) index=1 fd=43 classes=0x7
01-30 06:52:24.618      573-602/? I/EventHub﹕ New keyboard: publicID=65536 device->id=65536 devname='qwerty2' propName='hw.keyboards.65536.devname' keylayout='/system/usr/keylayout/qwerty.kl'
01-30 06:52:24.618      556-556/? D/qemud﹕ fdhandler_event: disconnect on fd 12
01-30 06:52:24.618      573-603/? D/SensorManager﹕ found sensor: Goldfish 3-axis Accelerometer, handle=0
01-30 06:52:24.618      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.618      556-556/? D/qemud﹕ created client 0x11028 listening on fd 12
01-30 06:52:24.618      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'sensors'
01-30 06:52:24.618      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 5
01-30 06:52:24.627      556-556/? D/qemud﹕ client_registration: registration succeeded for client 5
01-30 06:52:24.638      556-556/? D/qemud﹕ fdhandler_event: disconnect on fd 12
01-30 06:52:24.638      573-603/? D/SensorManager﹕ found sensor: Goldfish 3-axis Magnetic field sensor, handle=1
01-30 06:52:24.638      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.638      556-556/? D/qemud﹕ created client 0x11028 listening on fd 12
01-30 06:52:24.638      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'sensors'
01-30 06:52:24.638      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 6
01-30 06:52:24.648      556-556/? D/qemud﹕ client_registration: registration succeeded for client 6
01-30 06:52:24.658      573-602/? E/EventHub﹕ could not get driver version for /dev/input/mouse0, Not a typewriter
01-30 06:52:24.658      556-556/? D/qemud﹕ fdhandler_event: disconnect on fd 12
01-30 06:52:24.658      573-603/? D/SensorManager﹕ found sensor: Goldfish Orientation sensor, handle=2
01-30 06:52:24.658      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.658      556-556/? D/qemud﹕ created client 0x11028 listening on fd 12
01-30 06:52:24.658      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'sensors'
01-30 06:52:24.658      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 7
01-30 06:52:24.668      556-556/? D/qemud﹕ client_registration: registration succeeded for client 7
01-30 06:52:24.678      556-556/? D/qemud﹕ fdhandler_event: disconnect on fd 12
01-30 06:52:24.678      573-603/? D/SensorManager﹕ found sensor: Goldfish Temperature sensor, handle=3
01-30 06:52:24.698      573-602/? E/EventHub﹕ could not get driver version for /dev/input/mice, Not a typewriter
01-30 06:52:24.698      573-602/? I/KeyInputQueue﹕ Device added: id=0x0, name=qwerty2, classes=7
01-30 06:52:24.698      573-602/? I/KeyInputQueue﹕ X: min=0 max=479 flat=0 fuzz=0
01-30 06:52:24.698      573-602/? I/KeyInputQueue﹕ Y: min=0 max=799 flat=0 fuzz=0
01-30 06:52:24.698      573-602/? I/KeyInputQueue﹕ Pressure: unknown values
01-30 06:52:24.698      573-602/? I/KeyInputQueue﹕ Size: unknown values
01-30 06:52:24.698      573-589/? I/SystemServer﹕ Registering null Bluetooth Service (emulator)
01-30 06:52:24.708      573-589/? E/System﹕ Failure starting core service
    java.lang.SecurityException
            at android.os.BinderProxy.transact(Native Method)
            at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
            at android.os.ServiceManager.addService(ServiceManager.java:72)
            at com.android.server.ServerThread.run(SystemServer.java:163)
01-30 06:52:24.708      573-589/? E/AndroidRuntime﹕ Crash logging skipped, no checkin service
01-30 06:52:24.718      573-589/? I/SystemServer﹕ Starting Status Bar Service.
01-30 06:52:24.818      573-589/? I/SystemServer﹕ Starting Clipboard Service.
01-30 06:52:24.818      573-589/? I/SystemServer﹕ Starting Input Method Service.
01-30 06:52:24.818      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f060001
01-30 06:52:24.828      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f060000
01-30 06:52:24.838      573-589/? I/InputManagerService﹕ Enabled input methods: com.android.inputmethod.latin/.LatinIME:jp.co.omronsoft.openwnn/.OpenWnnJAJP:com.android.inputmethod.pinyin/.PinyinIME:com.example.android.softkeyboard/.SoftKeyboard
01-30 06:52:24.888      573-589/? I/SystemServer﹕ Starting NetStat Service.
01-30 06:52:24.888      573-589/? I/SystemServer﹕ Starting Connectivity Service.
01-30 06:52:24.918      573-605/? I/WifiService﹕ WifiService starting up with Wi-Fi disabled
01-30 06:52:24.928      573-589/? I/SystemServer﹕ Starting Notification Manager.
01-30 06:52:24.938      573-589/? I/SystemServer﹕ Starting Mount Service.
01-30 06:52:24.938      573-589/? I/SystemServer﹕ Starting DeviceStorageMonitor service
01-30 06:52:24.948      573-589/? I/SystemServer﹕ Starting Location Manager.
01-30 06:52:24.948      573-589/? D/libhardware_legacy﹕ using QEMU GPS Hardware emulation
01-30 06:52:24.948      573-589/? W/GpsLocationProvider﹕ Could not open GPS configuration file /etc/gps.conf
01-30 06:52:24.958      573-589/? D/GpsLocationProvider﹕ enable
01-30 06:52:24.958      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:24.958      556-556/? D/qemud﹕ created client 0x11028 listening on fd 12
01-30 06:52:24.958      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'gps'
01-30 06:52:24.958      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 8
01-30 06:52:24.968      556-556/? D/qemud﹕ client_registration: registration succeeded for client 8
01-30 06:52:24.988      573-609/? D/GpsLocationProvider﹕ GpsEventThread starting
01-30 06:52:24.988      573-589/? I/SystemServer﹕ Starting Search Service.
01-30 06:52:24.988      573-589/? I/SystemServer﹕ Starting Checkin Service.
01-30 06:52:24.988      573-589/? W/ActivityManager﹕ Unable to start service Intent { comp={com.google.android.server.checkin/com.google.android.server.checkin.CheckinService} }: not found
01-30 06:52:24.988      573-589/? W/SystemServer﹕ Using fallback Checkin Service.
01-30 06:52:24.988      573-589/? I/SystemServer﹕ Starting Wallpaper Service
01-30 06:52:24.998      573-589/? D/WallpaperService﹕ WallpaperService startup
01-30 06:52:24.998      573-589/? I/SystemServer﹕ Starting Audio Service
01-30 06:52:25.068      573-589/? D/dalvikvm﹕ Trying to load lib /system/lib/libsoundpool.so 0x0
01-30 06:52:25.078      573-589/? D/dalvikvm﹕ Added shared lib /system/lib/libsoundpool.so 0x0
01-30 06:52:25.078      573-589/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-30 06:52:25.078      573-589/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
01-30 06:52:25.078      573-589/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
01-30 06:52:25.078      573-589/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
01-30 06:52:25.078      573-589/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
01-30 06:52:25.078      573-589/? I/SystemServer﹕ Starting HeadsetObserver
01-30 06:52:25.088      573-589/? W/HeadsetObserver﹕ This kernel does not have wired headset support
01-30 06:52:25.088      573-589/? I/SystemServer﹕ Starting AppWidget Service
01-30 06:52:25.118      573-589/? I/WindowManager﹕ Menu key state: 0 safeMode=false
01-30 06:52:25.128      573-589/? I/WindowManager﹕ Config changed: { scale=1.0 imsi=0/0 locale=ja touch=3 key=2/1/2 nav=1 orien=1 }
01-30 06:52:25.157      573-589/? D/PowerManagerService﹕ system ready!
01-30 06:52:25.157      573-603/? W/ActivityManager﹕ Unable to start service Intent { action=android.accounts.IAccountsService comp={com.google.android.googleapps/com.google.android.googleapps.GoogleLoginService} }: not found01-30 06:52:25.157      573-603/? E/LockPatternKeyguardView﹕ Failed to bind to GLS while checking for account01-30 06:52:25.168      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f03000301-30 06:52:25.278      573-603/? D/dalvikvm﹕ GC freed 4485 objects / 264384 bytes in 92ms
01-30 06:52:25.438      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f030000
01-30 06:52:25.438      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f03000c
01-30 06:52:25.458      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f030008
01-30 06:52:25.458      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x7f03000001-30 06:52:25.478      573-589/? D/ActivityManager﹕ Start running!
01-30 06:52:25.498      573-589/? I/Zygote﹕ Process: zygote socket opened
01-30 06:52:25.518      573-589/? I/ActivityManager﹕ Start proc com.android.phone for added application com.android.phone: pid=613 uid=1001 gids={3002, 3001, 3003}
01-30 06:52:25.527      573-589/? I/ActivityManager﹕ Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.HOME} flags=0x10000000 comp={com.android.launcher/com.android.launcher.Launcher} }
01-30 06:52:25.618      556-556/? D/qemud﹕ fdhandler_accept_event: accepting on fd 10
01-30 06:52:25.618      556-556/? D/qemud﹕ created client 0xc038 listening on fd 13
01-30 06:52:25.618      556-556/? D/qemud﹕ client_fd_receive: attempting registration for service 'sensors'
01-30 06:52:25.618      556-556/? D/qemud﹕ client_fd_receive:    -> received channel id 9
01-30 06:52:25.618      573-589/? I/ActivityManager﹕ Start proc android.process.acore for activity com.android.launcher/.Launcher: pid=617 uid=10001 gids={3003}
01-30 06:52:25.628      556-556/? D/qemud﹕ client_registration: registration succeeded for client 9
01-30 06:52:25.698      573-589/? W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000
01-30 06:52:25.698      573-589/? W/StatusBar﹕ Icon not found in <system>: 001-30 06:52:26.198      573-589/? D/StatusBar﹕ updateResources
01-30 06:52:26.248      573-589/? I/WindowManager﹕ onOrientationChanged, rotation changed to 0
01-30 06:52:26.288      617-617/? I/ActivityThread﹕ Publishing provider user_dictionary: com.android.providers.userdictionary.UserDictionaryProvider
01-30 06:52:26.348      613-613/? I/ActivityThread﹕ Publishing provider mms-sms: com.android.providers.telephony.MmsSmsProvider
01-30 06:52:26.398      617-617/? I/ActivityThread﹕ Publishing provider com.android.googlesearch.SuggestionProvider: com.android.googlesearch.SuggestionProvider
01-30 06:52:26.508      613-613/? I/ActivityThread﹕ Publishing provider mms: com.android.providers.telephony.MmsProvider
01-30 06:52:26.508      613-613/? I/ActivityThread﹕ Publishing provider telephony: com.android.providers.telephony.TelephonyProvider
01-30 06:52:26.528      617-617/? I/ActivityThread﹕ Publishing provider contacts;call_log: com.android.providers.contacts.ContactsProvider
01-30 06:52:26.548      613-613/? I/ActivityThread﹕ Publishing provider sms: com.android.providers.telephony.SmsProvider
01-30 06:52:26.578      613-613/? I/ActivityThread﹕ Publishing provider sim: com.android.phone.SimProvider
01-30 06:52:26.708      573-578/? W/ActivityManager﹕ Unable to start service Intent { action=android.accounts.IAccountsService comp={com.google.android.googleapps/com.google.android.googleapps.GoogleLoginService} }: not found
01-30 06:52:26.708      617-617/? W/AccountMonitor﹕ Couldn't connect to Intent { action=android.accounts.IAccountsService comp={com.google.android.googleapps/com.google.android.googleapps.GoogleLoginService} } (Missing service?)01-30 06:52:26.708      617-617/? I/ActivityThread﹕ Publishing provider com.android.launcher.settings: com.android.launcher.LauncherProvider
01-30 06:52:26.838      573-577/? E/ApplicationContext﹕ Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml01-30 06:52:26.958      573-578/? W/ActivityManager﹕ Unable to start service Intent { action=com.android.ussd.IExtendedNetworkService }: not found01-30 06:52:26.988      613-613/? D/PhoneApp﹕ Resetting audio state/mode: IDLE
01-30 06:52:27.078      573-591/? I/ActivityManager﹕ Start proc com.android.mms for broadcast com.android.mms/.transaction.SmsReceiver: pid=638 uid=10018 gids={3003}
01-30 06:52:27.158      573-579/? D/AlarmManagerService﹕ Kernel timezone updated to 0 minutes west of GMT
01-30 06:52:27.488      617-617/? D/dalvikvm﹕ GC freed 2701 objects / 181136 bytes in 209ms
01-30 06:52:27.838      617-617/? D/HomeLoaders﹕ load applications
01-30 06:52:27.838      617-617/? D/HomeLoaders﹕ loading user items
01-30 06:52:27.838      617-617/? D/HomeLoaders﹕ --> starting workspace loader
01-30 06:52:28.078      573-578/? I/ActivityManager﹕ Stopping service: com.android.mms/.transaction.SmsReceiverService
01-30 06:52:28.088      617-617/? D/dalvikvm﹕ GC freed 677 objects / 89304 bytes in 196ms
01-30 06:52:28.237      573-601/? I/ActivityManager﹕ Displayed activity com.android.launcher/.Launcher: 2645 ms
01-30 06:52:28.237      573-577/? I/SurfaceFlinger﹕ Boot is finished (5915 ms)
01-30 06:52:28.237      573-577/? I/WindowManager﹕ Config changed: { scale=1.0 imsi=0/0 locale=ja touch=3 key=2/1/2 nav=1 orien=1 }
01-30 06:52:28.418      573-577/? D/dalvikvm﹕ GC freed 6275 objects / 291760 bytes in 173ms
01-30 06:52:28.418      546-546/? D/vold﹕ Accepted connection from framework
01-30 06:52:28.428      546-546/? D/vold﹕ dispatch_cmd(send_ums_status):
01-30 06:52:28.428      573-652/? D/MountListener﹕ handleEvent volume_mounted:/sdcard
01-30 06:52:28.448      573-652/? D/MountListener﹕ handleEvent ums_disabled
01-30 06:52:28.448      573-652/? D/MountListener﹕ handleEvent ums_disconnected
01-30 06:52:28.498      573-589/? I/ActivityManager﹕ Start proc com.google.android.apps.maps:FriendService for broadcast com.google.android.apps.maps/com.google.googlenav.friend.android.ServiceRegister: pid=653 uid=10000 gids={3003}
01-30 06:52:28.668      617-648/? D/HomeLoaders﹕ --> starting applications loader
01-30 06:52:29.468      653-653/? E/ActivityThread﹕ Failed to find provider info for com.google.settings
01-30 06:52:29.468      653-653/? E/ActivityThread﹕ Failed to find provider info for com.google.settings01-30 06:52:29.657      653-653/? D/LocationManager﹕ Constructor: service = android.location.ILocationManager$Stub$Proxy@435d2688
01-30 06:52:29.978      573-579/? I/ActivityManager﹕ Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiver: pid=664 uid=10003 gids={1006, 2001, 3003}
01-30 06:52:30.247      664-664/? I/ActivityThread﹕ Publishing provider downloads: com.android.providers.downloads.DownloadProvider
01-30 06:52:30.288      613-613/? D/dalvikvm﹕ GC freed 2773 objects / 176488 bytes in 206ms
01-30 06:52:30.318      664-664/? I/ActivityThread﹕ Publishing provider drm: com.android.providers.drm.DrmProvider
01-30 06:52:30.358      664-664/? I/ActivityThread﹕ Publishing provider media: com.android.providers.media.MediaProvider
01-30 06:52:30.408      664-664/? V/MediaProvider﹕ Attached volume: internal
01-30 06:52:30.428      664-664/? V/MediaProvider﹕ /sdcard volume ID: 370160669
01-30 06:52:30.587      664-664/? V/MediaProvider﹕ Attached volume: external
01-30 06:52:30.658      573-573/? I/ActivityManager﹕ Start proc com.android.alarmclock for broadcast com.android.alarmclock/.AlarmInitReceiver: pid=674 uid=10005 gids={}
01-30 06:52:30.948      674-674/? I/ActivityThread﹕ Publishing provider com.android.alarmclock: com.android.alarmclock.AlarmProvider
01-30 06:52:31.158      613-613/? I/Resources﹕ Loaded time zone names for en_US in 3886ms.
01-30 06:52:31.158      613-613/? D/SystemClock﹕ Setting time of day to sec=1422600746
01-30 06:52:26.958      613-613/? W/SystemClock﹕ Unable to set rtc to 1422600746: Invalid argument01-30 06:52:26.978      573-589/? D/GpsLocationProvider﹕ state: DISCONNECTED apnName: null reason: radioTurnedOff
01-30 06:52:26.988      573-589/? D/GpsLocationProvider﹕ state: DISCONNECTED apnName: null reason: gprsDetached
01-30 06:52:27.068      664-684/? D/MediaScannerService﹕ start scanning volume internal
01-30 06:52:27.098      573-589/? D/LocationManagerService﹕ installing network location provider
01-30 06:52:27.158      573-573/? D/dalvikvm﹕ GREF has increased to 201
01-30 06:52:27.408      573-578/? I/ActivityManager﹕ Stopping service: com.android.providers.downloads/.DownloadService
01-30 06:52:27.518      613-613/? E/ActivityThread﹕ Failed to find provider info for android.server.checkin01-30 06:52:27.518      613-613/? W/Checkin﹕ Can't update stat PHONE_GSM_REGISTERED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats01-30 06:52:27.608      573-589/? D/GpsLocationProvider﹕ state: DISCONNECTED apnName: null reason: null
01-30 06:52:27.718      573-573/? D/dalvikvm﹕ GC freed 6449 objects / 302712 bytes in 86ms
01-30 06:52:27.787      573-589/? D/StatusBar﹕ updateResources
01-30 06:52:28.097      617-617/? D/HomeLoaders﹕ load applications
01-30 06:52:28.107      617-617/? D/HomeLoaders﹕ loading user items
01-30 06:52:28.107      617-617/? D/HomeLoaders﹕ --> starting workspace loader
01-30 06:52:28.107      613-613/? D/TelephonyProvider﹕ Setting numeric '310260' to be the current operator
01-30 06:52:28.117      573-579/? I/ActivityManager﹕ Stopping service: com.android.mms/.transaction.SmsReceiverService
01-30 06:52:28.147      613-613/? E/ActivityThread﹕ Failed to find provider info for android.server.checkin01-30 06:52:28.147      613-613/? W/Checkin﹕ Can't update stat PHONE_GPRS_ATTEMPTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats01-30 06:52:28.157      573-589/? D/GpsLocationProvider﹕ state: CONNECTING apnName: epc.tmobile.com reason: simLoaded
01-30 06:52:28.227      617-617/? D/dalvikvm﹕ GC freed 3361 objects / 175960 bytes in 89ms
01-30 06:52:28.247      613-613/? E/ActivityThread﹕ Failed to find provider info for android.server.checkin01-30 06:52:28.247      613-613/? W/Checkin﹕ Can't update stat PHONE_GPRS_CONNECTED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats01-30 06:52:28.277      573-589/? D/MobileDataStateTracker﹕ CONNECTED event did not supply interface name.
01-30 06:52:28.277      573-589/? D/MobileDataStateTracker﹕ DNS server addresses are not known.
01-30 06:52:28.298      573-589/? D/GpsLocationProvider﹕ state: CONNECTED apnName: epc.tmobile.com reason: simLoaded
01-30 06:52:28.417      573-686/? I/ActivityManager﹕ Stopping service: com.android.mms/.transaction.TransactionService
01-30 06:52:28.627      617-693/? D/HomeLoaders﹕ --> starting applications loader
01-30 06:52:28.707      664-684/? D/MediaScanner﹕ opendir /system/media/ failed, errno: 2
01-30 06:52:28.707      664-684/? D/MediaScanner﹕ prescan time: 1375ms
01-30 06:52:28.707      664-684/? D/MediaScanner﹕ scan time: 14ms
01-30 06:52:28.707      664-684/? D/MediaScanner﹕ postscan time: 0ms
01-30 06:52:28.717      664-684/? D/MediaScanner﹕ total time: 1389ms
01-30 06:52:28.738      664-684/? D/MediaScannerService﹕ done scanning volume internal
01-30 06:52:28.757      664-684/? D/MediaScannerService﹕ start scanning volume external
01-30 06:52:28.908      664-684/? V/MediaScanner﹕ pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@435df5a0
01-30 06:52:28.908      664-684/? V/MediaScanner﹕ /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@435df5a0
01-30 06:52:28.908      664-684/? D/MediaScanner﹕ prescan time: 119ms
01-30 06:52:28.908      664-684/? D/MediaScanner﹕ scan time: 1ms
01-30 06:52:28.908      664-684/? D/MediaScanner﹕ postscan time: 13ms
01-30 06:52:28.917      664-684/? D/MediaScanner﹕ total time: 133ms
01-30 06:52:28.917      573-578/? I/ActivityManager﹕ Stopping service: com.android.providers.downloads/.DownloadService
01-30 06:52:28.917      664-684/? D/MediaScannerService﹕ done scanning volume external
01-30 06:52:28.927      664-684/? D/MediaScannerService﹕ start scanning volume external
01-30 06:52:28.997      664-684/? V/MediaScanner﹕ pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@435e4b80
01-30 06:52:28.997      664-684/? V/MediaScanner﹕ /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor@435e4b80
01-30 06:52:28.997      664-684/? D/MediaScanner﹕ prescan time: 49ms
01-30 06:52:28.997      664-684/? D/MediaScanner﹕ scan time: 0ms
01-30 06:52:28.997      664-684/? D/MediaScanner﹕ postscan time: 17ms
01-30 06:52:28.997      664-684/? D/MediaScanner﹕ total time: 66ms
01-30 06:52:29.027      664-684/? D/MediaScannerService﹕ done scanning volume external
01-30 06:52:29.027      573-578/? I/ActivityManager﹕ Stopping service: com.android.providers.media/.MediaScannerService
01-30 06:52:30.678      573-601/? D/dalvikvm﹕ GC freed 4076 objects / 210392 bytes in 101ms
01-30 06:52:33.687      613-613/? D/dalvikvm﹕ GC freed 8934 objects / 426968 bytes in 113ms
01-30 06:52:38.708      638-638/? D/dalvikvm﹕ GC freed 2761 objects / 158848 bytes in 118ms
01-30 06:52:53.832      573-603/? D/KeyguardViewMediator﹕ pokeWakelock(5000)
01-30 06:52:53.898      573-580/? I/ARMAssembler﹕ generated scanline__00000077:03545404_00000A04_00000000 [ 29 ipp] (51 ins) at [0x1bb0f0:0x1bb1bc] in 708959 ns
01-30 06:52:53.938      573-686/? I/ActivityManager﹕ Start proc com.android.inputmethod.latin for service com.android.inputmethod.latin/.LatinIME: pid=707 uid=10001 gids={3003}
01-30 06:52:54.238      707-707/? D/dalvikvm﹕ Trying to load lib /system/lib/libjni_latinime.so 0x43597ff0
01-30 06:52:54.238      707-707/? D/dalvikvm﹕ Added shared lib /system/lib/libjni_latinime.so 0x43597ff0
01-30 06:52:57.648      573-580/? I/ARMAssembler﹕ generated scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at [0x1f7430:0x1f74d4] in 552096 ns
01-30 06:52:57.658      573-580/? I/ARMAssembler﹕ generated scanline__00000077:03515104_00001001_00000000 [ 64 ipp] (84 ins) at [0x1f74d8:0x1f7628] in 1310152 ns
01-30 06:52:58.988      573-573/? I/ActivityManager﹕ Starting activity: Intent { action=android.appwidget.action.APPWIDGET_PICK comp={com.android.settings/com.android.settings.AppWidgetPickActivity} (has extras) }
01-30 06:52:59.108      573-577/? I/ActivityManager﹕ Start proc com.android.settings for activity com.android.settings/.AppWidgetPickActivity: pid=714 uid=1000 gids={3002, 3001, 3003}
01-30 06:52:59.158      573-661/? W/InputManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@435af088
01-30 06:52:59.458      714-714/? W/ResourceType﹕ Failure getting entry for 0x7f020000 (t=1 e=0) in package 0: 0xffffffb5
01-30 06:52:59.468      714-714/? W/PackageManager﹕ Failure retrieving icon 0x7f020000 in package jp.rallewll.siriuth.dispssidwidget
    android.content.res.Resources$NotFoundException: Resource ID #0x7f020000
            at android.content.res.Resources.getValue(Resources.java:846)
            at android.content.res.Resources.getDrawable(Resources.java:534)
            at android.app.ApplicationContext$ApplicationPackageManager.getDrawable(ApplicationContext.java:1923)
            at com.android.settings.AppWidgetPickActivity.putAppWidgetItems(AppWidgetPickActivity.java:178)
            at com.android.settings.AppWidgetPickActivity.putInstalledAppWidgets(AppWidgetPickActivity.java:226)
            at com.android.settings.AppWidgetPickActivity.getItems(AppWidgetPickActivity.java:207)
            at com.android.settings.ActivityPicker.onCreate(ActivityPicker.java:99)
            at com.android.settings.AppWidgetPickActivity.onCreate(AppWidgetPickActivity.java:63)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
            at android.app.ActivityThread.access$1800(ActivityThread.java:112)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:123)
            at android.app.ActivityThread.main(ActivityThread.java:3948)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:521)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
            at dalvik.system.NativeStart.main(Native Method)
01-30 06:52:59.468      714-714/? W/AppWidgetPickActivity﹕ Can't load icon drawable 0x7f020000 for provider: ComponentInfo{jp.rallewll.siriuth.dispssidwidget/jp.rallewll.siriuth.dispssidwidget.DispSSIDWidgetProvider}01-30 06:52:59.807      573-601/? I/ActivityManager﹕ Displayed activity com.android.settings/.AppWidgetPickActivity: 806 ms
01-30 06:53:05.117      617-617/? D/dalvikvm﹕ GC freed 3330 objects / 204224 bytes in 103ms
01-30 06:53:24.337      573-591/? I/ActivityManager﹕ Start proc jp.rallewll.siriuth.dispssidwidget for broadcast jp.rallewll.siriuth.dispssidwidget/.DispSSIDWidgetProvider: pid=721 uid=10023 gids={}
01-30 06:53:24.447      549-549/? D/dalvikvm﹕ GC freed 274 objects / 10296 bytes in 113ms
01-30 06:53:24.497      617-617/? D/Launcher﹕ dumping extras content=Bundle[{appWidgetId=2}]
01-30 06:53:24.677      573-685/? W/InputManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@436d629001-30 06:53:24.767      549-549/? D/dalvikvm﹕ GC freed 45 objects / 1928 bytes in 272ms
01-30 06:53:24.787      721-721/? D/dalvikvm﹕ DexOpt: couldn't find static field
01-30 06:53:24.807      721-721/? W/dalvikvm﹕ VFY: unable to resolve static field 1 (SDK_INT) in Landroid/os/Build$VERSION;
01-30 06:53:24.807      721-721/? W/dalvikvm﹕ VFY:  rejecting opcode 0x60 at 0x0014
01-30 06:53:24.807      721-721/? W/dalvikvm﹕ VFY:  rejected Ljp/rallewll/siriuth/dispssidwidget/DispSSIDWidgetProvider;.onReceive (Landroid/content/Context;Landroid/content/Intent;)V
01-30 06:53:24.807      721-721/? W/dalvikvm﹕ Verifier rejected class Ljp/rallewll/siriuth/dispssidwidget/DispSSIDWidgetProvider;
01-30 06:53:24.807      721-721/? W/dalvikvm﹕ Class init failed in newInstance call (Ljp/rallewll/siriuth/dispssidwidget/DispSSIDWidgetProvider;)01-30 06:53:24.807      721-721/? D/AndroidRuntime﹕ Shutting down VM
01-30 06:53:24.807      721-721/? W/dalvikvm﹕ threadid=3: thread exiting with uncaught exception (group=0x4000fe70)01-30 06:53:24.807      721-721/? E/AndroidRuntime﹕ Uncaught handler: thread main exiting due to uncaught exception
01-30 06:53:24.838      721-721/? E/AndroidRuntime﹕ java.lang.VerifyError: jp.rallewll.siriuth.dispssidwidget.DispSSIDWidgetProvider
            at java.lang.Class.newInstanceImpl(Native Method)
            at java.lang.Class.newInstance(Class.java:1472)
            at android.app.ActivityThread.handleReceiver(ActivityThread.java:2380)
            at android.app.ActivityThread.access$2700(ActivityThread.java:112)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1741)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:123)
            at android.app.ActivityThread.main(ActivityThread.java:3948)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:521)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
            at dalvik.system.NativeStart.main(Native Method)01-30 06:53:24.848      573-685/? I/Process﹕ Sending signal. PID: 721 SIG: 3
01-30 06:53:24.848      721-723/? I/dalvikvm﹕ threadid=7: reacting to signal 3
01-30 06:53:24.857      721-723/? I/dalvikvm﹕ Wrote stack trace to '/data/anr/traces.txt'
01-30 06:53:24.907      549-549/? D/dalvikvm﹕ GC freed 2 objects / 48 bytes in 139ms
01-30 06:53:25.117      573-580/? I/ARMAssembler﹕ generated scanline__00000077:03515104_00000001_00000000 [ 46 ipp] (65 ins) at [0x2467f0:0x2468f4] in 361079 ns
01-30 06:53:30.658      721-721/? I/Process﹕ Sending signal. PID: 721 SIG: 9
01-30 06:53:30.668      573-577/? I/ActivityManager﹕ Process jp.rallewll.siriuth.dispssidwidget (pid 721) has died.
01-30 06:53:30.708      573-578/? W/InputManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4370df18

一部だけ切り取ろうとログを準備してたのですが、ログが取れなくなったりエラーが出なくなったりしたので記録のため起動時からのログを貼り付けました。

ログの見方もよく解りませんが、例外エラーで落ちているようです。
細かくデバッグログを入れていくとBuild.VERSION.SDK_INTで落ちていました。

ドキュメントを見てみると SDK_INT はAPI Level 4からとなっており、API Level 3上では実装されておらず、エラーが出て当然ということです。

ではAPI Level3でバージョンチェックはどうするのかというと SDK というメソッドがあるのでこれを利用するようになっています。こちらであればAPI Level1から実装されているのでどのようなバージョンであっても動作するので良いのですが、残念なことに現在はこちらは非推奨となっているので使用すべきではないというのが常識です。

いくつかのスタンスがあると思います。
・旧バージョンを最優先にしてSDKだけを利用する。
・現状を優先しつつ、旧バージョンの対応を行う。
・旧バージョンを捨てて動作バージョンの限定を行う。

バージョン依存を捨ててリソースは浪費するものの折衷案である「現状を優先しつつ旧バージョンの対応を行う」という方針をとってみたいと思います。

現状を優先するということでバージョン比較は数値で行うことして旧バージョンでは非推奨となっているBuild.VERSION.SDKを使って取得することとし、スピードをあまり犠牲にしないということとすると、例外ハンドラで捕らえて例外が発生した時に旧バージョンの取得をするという形にするのがスマートかもしれません。

        try {
            result = Build.VERSION.SDK_INT;
        } catch (Exception e) {
            result = Integer.parseInt(Build.VERSION.SDK);
        }

と、考えていたのですが、実際はもっと深刻でした。
JAVAの実行方式を考えればわかるのですが、上記の例外は実行時のコンパイルでエラーが出ているもののようです。
となると、バイナリーに Build.VERSION.SDK_INTを含めることが出来ないということになります。

エラーログをそういう風に考えてみてみると実行時のコンパイルのタイミングで出力されているというのがうっすらと見えてきます。

経験上このような場合は実行時に動的にリンクさせますが、今回は悔しいですが、Android 1.5はターゲットとして捨てるほうが賢明なのかもしれません。

0 件のコメント:

コメントを投稿