前些天在调试android的时候很郁闷:
先是android启动不了,报couldn't open framebuffer HAL (No such device),logcat打印信息如下:
- logcat
- --------- beginning of /dev/log/system
- I/Vold ( 51): Vold 2.1 (the revenge) firing up
- D/Vold ( 51): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
- D/Vold ( 51): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
- D/Vold ( 51): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
- --------- beginning of /dev/log/main
- I/Netd ( 299): Netd 1.0 starting
- D/AndroidRuntime( 302):
- D/AndroidRuntime( 302): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
- D/AndroidRuntime( 302): CheckJNI is ON
- D/dalvikvm( 302): creating instr width table
- I/ ( 298): ServiceManager: 0xade8
- E/AudioHardware( 298): Can't load libsecril-client.so
- D/AudioHardwareInterface( 298): setMode(NORMAL)
- I/CameraService( 298): CameraService started (pid=298)
- I/AudioFlinger( 298): AudioFlinger's thread 0xc7f0 ready to run
- D/AudioHardware( 298): AudioStreamOutALSA::setParameters() routing=2
- D/AudioHardware( 298): ### setVoiceVolume
- I/SamplingProfilerIntegration( 302): Profiler is disabled.
- I/Zygote ( 302): Preloading classes...
- D/dalvikvm( 302): GC_EXPLICIT freed 47K, 78% free 233K/1024K, external 0K/0K, paused 13ms
- D/dalvikvm( 302): GC_EXPLICIT freed 1K, 73% free 283K/1024K, external 0K/0K, paused 1ms
- D/dalvikvm( 302): GC_EXPLICIT freed 20K, 70% free 316K/1024K, external 0K/0K, paused 2ms
- I/bluetooth_ScoSocket.cpp( 302): Entry name = MY-CAR ScoTypes = 0x7f
- I/bluetooth_ScoSocket.cpp( 302): Entry name = Motorola HF850 ScoTypes = 0x7
- D/dalvikvm( 302): GC_EXPLICIT freed 17K, 66% free 354K/1024K, external 0K/0K, paused 2ms
- D/dalvikvm( 302): GC_EXPLICIT freed 26K, 63% free 382K/1024K, external 0K/0K, paused 2ms
- D/dalvikvm( 302): GC_EXPLICIT freed 22K, 57% free 441K/1024K, external 0K/0K, paused 2ms
- D/dalvikvm( 302): GC_EXPLICIT freed 99K, 47% free 547K/1024K, external 0K/0K, paused 3ms
- D/dalvikvm( 302): GC_EXPLICIT freed 272K, 28% free 886K/1219K, external 0K/0K, paused 6ms
- D/dalvikvm( 302): GC_EXPLICIT freed 22K, 24% free 936K/1219K, external 0K/0K, paused 6ms
- D/dalvikvm( 302): GC_EXPLICIT freed 24K, 18% free 1002K/1219K, external 0K/0K, paused 5ms
- D/dalvikvm( 302): GC_EXPLICIT freed 47K, 5% free 1285K/1347K, external 0K/0K, paused 8ms
- D/dalvikvm( 302): GC_EXPLICIT freed 24K, 7% free 1316K/1411K, external 0K/0K, paused 8ms
- D/dalvikvm( 302): GC_EXPLICIT freed 29K, 6% free 1341K/1411K, external 0K/0K, paused 8ms
- D/dalvikvm( 302): GC_EXPLICIT freed 14K, 3% free 1381K/1411K, external 0K/0K, paused 9ms
- W/Zygote ( 302): Class not found for preloading: android.widget.TextView$SelectionModifierCursorController$1
- D/dalvikvm( 302): GC_EXPLICIT freed 29K, 5% free 1406K/1475K, external 0K/0K, paused 9ms
- D/dalvikvm( 302): GC_EXPLICIT freed 30K, 3% free 1444K/1475K, external 0K/0K, paused 9ms
- D/dalvikvm( 302): GC_EXPLICIT freed 38K, 6% free 1461K/1539K, external 0K/0K, paused 9ms
- D/dalvikvm( 302): GC_EXPLICIT freed 40K, 5% free 1476K/1539K, external 0K/0K, paused 9ms
- D/dalvikvm( 302): GC_EXPLICIT freed 54K, 8% free 1489K/1603K, external 0K/0K, paused 9ms
- D/dalvikvm( 302): GC_FOR_MALLOC freed 2882K, 57% free 2240K/5123K, external 0K/0K, paused 29ms
- D/dalvikvm( 302): GC_EXPLICIT freed 2446K, 52% free 2493K/5123K, external 0K/0K, paused 25ms
- D/dalvikvm( 302): GC_EXPLICIT freed 146K, 51% free 2556K/5123K, external 0K/0K, paused 18ms
- D/dalvikvm( 302): GC_EXPLICIT freed 73K, 50% free 2582K/5123K, external 0K/0K, paused 18ms
- D/dalvikvm( 302): GC_EXPLICIT freed 37K, 50% free 2599K/5123K, external 0K/0K, paused 17ms
- D/dalvikvm( 302): GC_EXPLICIT freed 31K, 49% free 2622K/5123K, external 0K/0K, paused 18ms
- D/dalvikvm( 302): GC_EXPLICIT freed 38K, 49% free 2645K/5123K, external 0K/0K, paused 18ms
- I/Zygote ( 302): ...preloaded 1830 classes in 2270ms.
- E/Zygote ( 302): setreuid() failed. errno: 17
- D/dalvikvm( 302): GC_EXPLICIT freed 18K, 49% free 2644K/5123K, external 0K/0K, paused 17ms
- I/Zygote ( 302): Preloading resources...
- D/dalvikvm( 302): GC_EXTERNAL_ALLOC freed <1K, 49% free 2646K/5123K, external 0K/0K, paused 18ms
- W/Zygote ( 302): Preloaded drawable resource #0x1080093 (res/drawable-hdpi/sym_def_app_icon.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080002 (res/drawable-hdpi/arrow_down_float.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10800b4 (res/drawable/btn_check.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10800b7 (res/drawable-hdpi/btn_check_label_background.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10800b8 (res/drawable-hdpi/btn_check_off.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10800bd (res/drawable-hdpi/btn_check_on.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080004 (res/drawable/btn_default.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080005 (res/drawable/btn_default_small.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080006 (res/drawable/btn_dropdown.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080008 (res/drawable/btn_plus.xml) that varies with configuration!!
- D/dalvikvm( 302): GC_EXTERNAL_ALLOC freed 20K, 48% free 2677K/5123K, external 524K/526K, paused 17ms
- W/Zygote ( 302): Preloaded drawable resource #0x1080007 (res/drawable/btn_minus.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080009 (res/drawable/btn_radio.xml) that varies with configuration!!
- D/dalvikvm( 302): GC_EXPLICIT freed 3K, 48% free 2682K/5123K, external 583K/1028K, paused 18ms
- W/Zygote ( 302): Preloaded drawable resource #0x108000a (res/drawable/btn_star.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080132 (res/drawable/btn_toggle.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080196 (res/drawable-hdpi/ic_emergency.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080012 (res/drawable-hdpi/divider_horizontal_bright.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080014 (res/drawable-hdpi/divider_horizontal_dark.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080016 (res/drawable/edit_text.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080170 (res/drawable/expander_group.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080062 (res/drawable/list_selector_background.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108022a (res/drawable-hdpi/menu_background.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108022b (res/drawable-hdpi/menu_background_fill_parent_width.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108022c (res/drawable/menu_selector.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108023a (res/drawable-hdpi/panel_background.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080242 (res/drawable-hdpi/popup_bottom_bright.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080243 (res/drawable-hdpi/popup_bottom_dark.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080244 (res/drawable-hdpi/popup_bottom_medium.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080245 (res/drawable-hdpi/popup_center_bright.9.png) that varies with configuration!!
- D/dalvikvm( 302): GC_EXPLICIT freed 35K, 48% free 2704K/5123K, external 814K/1028K, paused 19ms
- W/Zygote ( 302): Preloaded drawable resource #0x1080246 (res/drawable-hdpi/popup_center_dark.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080249 (res/drawable-hdpi/popup_full_dark.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108024c (res/drawable-hdpi/popup_top_bright.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108024d (res/drawable-hdpi/popup_top_dark.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x108006d (res/drawable/progress_indeterminate_horizontal.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080253 (res/drawable/progress_small.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080254 (res/drawable/progress_small_titlebar.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080274 (res/drawable-hdpi/scrollbar_handle_horizontal.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080275 (res/drawable-hdpi/scrollbar_handle_vertical.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080071 (res/drawable/spinner_dropdown_background.xml) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080316 (res/drawable-hdpi/text_select_handle_left.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080317 (res/drawable-hdpi/text_select_handle_middle.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080318 (res/drawable-hdpi/text_select_handle_right.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x1080339 (res/drawable-hdpi/title_bar_shadow.9.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10801d8 (res/drawable-hdpi/indicator_code_lock_drag_direction_green_up.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10801d9 (res/drawable-hdpi/indicator_code_lock_drag_direction_red_up.png) that varies with configuration!!
- D/dalvikvm( 302): GC_EXTERNAL_ALLOC freed 29K, 48% free 2714K/5123K, external 999K/1028K, paused 18ms
- W/Zygote ( 302): Preloaded drawable resource #0x10801da (res/drawable-hdpi/indicator_code_lock_point_area_default.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10801db (res/drawable-hdpi/indicator_code_lock_point_area_green.png) that varies with configuration!!
- W/Zygote ( 302): Preloaded drawable resource #0x10801dc (res/drawable-hdpi/indicator_code_lock_point_area_red.png) that varies with configuration!!
- I/Zygote ( 302): ...preloaded 51 resources in 331ms.
- D/dalvikvm( 302): GC_EXPLICIT freed 10K, 47% free 2721K/5123K, external 1069K/1492K, paused 18ms
- I/Zygote ( 302): ...preloaded 15 resources in 23ms.
- D/dalvikvm( 302): GC_EXPLICIT freed 9K, 48% free 2712K/5123K, external 1069K/1492K, paused 18ms
- D/dalvikvm( 302): GC_EXPLICIT freed 2K, 48% free 2710K/5123K, external 1069K/1492K, paused 18ms
- D/dalvikvm( 302): GC_EXPLICIT freed <1K, 48% free 2710K/5123K, external 1069K/1492K, paused 18ms
- I/dalvikvm( 302): System server process 308 has been created
- I/Zygote ( 302): Accepting command socket connections
- I/sysproc ( 308): Entered system_init()
- I/sysproc ( 308): ServiceManager: 0x156f20
- I/SurfaceFlinger( 308): SurfaceFlinger is starting
- I/SurfaceFlinger( 308): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
- E/FramebufferNativeWindow( 308): couldn't open framebuffer HAL (No such device)
- I/DEBUG ( 53): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
调试了许久,后发现是内核的MACHINE_START宏与android文件系统的ro.product属性不匹配造成的,这个问题解决后,android正常启动,launcher2的主界面显示挺正常,但是点击应用程序图标时,显示不正常,图标非常大,而且有一部分没有显示出来,我想应该是launcher2的代码有问题,all_apps.xml中调用了layout目录下的all_apps_2d布局,但却发现该目录下没有这个文件,唉,悲催的android,浪费我时间,拷进去就好了。
阅读(3968) | 评论(0) | 转发(0) |