Android2.1源码中的一个bug
2010-10-14 06:16:00 来源:本站整理I/SurfaceFlinger( 1435): vendor : Android
I/SurfaceFlinger( 1435): renderer : Android PixelFlinger 1.1
I/SurfaceFlinger( 1435): version : OpenGL ES-CM 1.0
I/SurfaceFlinger( 1435): 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_OES_EGL_image GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
I/sysproc ( 1435): System server: starting Android runtime.
I/sysproc ( 1435): System server: starting Android services.
I/SystemServer( 1435): Entered the Android system server!
I/sysproc ( 1435): System server: entering thread pool.
I/SystemServer( 1435): Entropy Service
I/SystemServer( 1435): Power Manager
I/SystemServer( 1435): Activity Manager
I/ActivityManager( 1435): Memory class: 16
W/UsageStats( 1435): Usage stats version changed; dropping
D/libEGL ( 1450): egl.cfg not found, using default config
D/libEGL ( 1450): loaded /system/lib/egl/libGLES_android.so
W/zipro ( 1450): Unable to open zip ‘/data/local/bootanimation.zip’: No such file or directory
W/zipro ( 1450): Unable to open zip ‘/system/media/bootanimation.zip’: No such file or directory
W/MIPSAssembler( 1450): generated scanline__03545404:00000077:00000A01:00000000 [ 51 ipp] (94 ins) at [0x98338:0x984b0] in 0 ns
经过分析SystemServer模块(开机阶段这个模块非常重要,所有的重要服务都是这里启动的)的源码,源码位于
frameworks/base/services/java/com/android/server/SystemServer.java
发现是ActivityManagerService的main方法没有返回:
Log.i(TAG, "Activity Manager");
context = ActivityManagerService.main(factoryTest);
赞助商链接