Android2.1源码中的一个bug
2010-10-14 06:16:00 来源:本站整理最近在移植Android到MIPS平台,启动的时候发现永远停留在开机动画上面,不能继续往下走了。经过仔细分析源码,发现明显是的 Android2.1的bug。并且这个问题涉及到多线程竞争,和时序有关,你不知道什么时候你的机器就会遇到同样的。在此和大家一起分享,希望遇到我同样问题的朋友能少些困扰。
如下是我开机的logcat的log:
I/vold ( 1418): Android Volume Daemon version 2.0
E/vold ( 1418): Unable to open ‘/sys/class/switch’ (No such file or directory)
D/vold ( 1418): Bootstrapping complete
D/AndroidRuntime( 1421):
D/AndroidRuntime( 1421): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 1421): CheckJNI is ON
I/ ( 1422): ServiceManager: 0x82d08
W/AudioHardwareInterface( 1422): Using stubbed audio hardware. No sound will be produced.
D/AudioHardwareInterface( 1422): setMode(NORMAL)
I/CameraService( 1422): CameraService started: pid=1422
I/AudioFlinger( 1422): AudioFlinger’s thread 0×83340 ready to run
D/AndroidRuntime( 1421): — registering native functions —
I/SamplingProfilerIntegration( 1421): Profiler is disabled.
I/Zygote ( 1421): Preloading classes…
D/dalvikvm( 1421): GC freed 791 objects / 50440 bytes in 4ms
D/dalvikvm( 1421): GC freed 255 objects / 16392 bytes in 290ms
D/dalvikvm( 1421): GC freed 298 objects / 19120 bytes in 291ms
D/dalvikvm( 1421): GC freed 222 objects / 14224 bytes in 284ms
D/dalvikvm( 1421): GC freed 415 objects / 26456 bytes in 292ms
D/skia ( 1421): —— build_power_table 1.4
D/skia ( 1421): —— build_power_table 0.714286
D/dalvikvm( 1421): GC freed 419 objects / 28904 bytes in 292ms
D/dalvikvm( 1421): Trying to load lib /system/lib/libmedia_jni.so 0×0
更多精彩
赞助商链接