01-02 13:35:15.590 470 470 D StatusBar.NetworkController: mSimColor[ 0] = 0
01-02 13:35:15.620 103 103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.640 103 103 D dalvikvm: GC_EXPLICIT freed 38K, 4% free 9961K/10307K, paused 2ms+2ms, total 22ms
01-02 13:35:15.640 103 103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.670 103 103 D dalvikvm: GC_EXPLICIT freed <1K, 4% free 9961K/10307K, paused 2ms+2ms, total 27ms
01-02 13:35:15.670 103 103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.680 1494 1494 D leichi1 : MrgService on create !
01-02 13:35:15.690 103 103 D dalvikvm: GC_EXPLICIT freed <1K, 4% free 9961K/10307K, paused 2ms+3ms, total 21ms
01-02 13:35:15.690 1494 1494 D leichi : MgrService onCreate pid=1494
01-02 13:35:15.690 1494 1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.700 1494 1494 D leichi : MgrService registerBRC
01-02 13:35:15.700 1494 1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.700 1494 1494 D leichi : MgrService onStart 1
01-02 13:35:15.710 1494 1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.710 1494 1494 D AndroidRuntime: Shutting down VM
01-02 13:35:15.710 1494 1494 W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40c2f378)
01-02 13:35:15.790 377 395 D dalvikvm: GC_FOR_ALLOC freed 2051K, 21% free 17495K/22087K, paused 56ms, total 57ms
01-02 13:35:15.850 105 350 W audio_hw_primary: VBC_CMD_HAL_RESTART release vbc_lock, pipe_name:/dev/spipe_w4.
01-02 13:35:15.870 377 395 D AbstractWindowedCursor: ====>onDeactivateOrClose is called...
01-02 13:35:15.620 103 103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.640 103 103 D dalvikvm: GC_EXPLICIT freed 38K, 4% free 9961K/10307K, paused 2ms+2ms, total 22ms
01-02 13:35:15.640 103 103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.670 103 103 D dalvikvm: GC_EXPLICIT freed <1K, 4% free 9961K/10307K, paused 2ms+2ms, total 27ms
01-02 13:35:15.670 103 103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.680 1494 1494 D leichi1 : MrgService on create !
01-02 13:35:15.690 103 103 D dalvikvm: GC_EXPLICIT freed <1K, 4% free 9961K/10307K, paused 2ms+3ms, total 21ms
01-02 13:35:15.690 1494 1494 D leichi : MgrService onCreate pid=1494
01-02 13:35:15.690 1494 1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.700 1494 1494 D leichi : MgrService registerBRC
01-02 13:35:15.700 1494 1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.700 1494 1494 D leichi : MgrService onStart 1
01-02 13:35:15.710 1494 1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.710 1494 1494 D AndroidRuntime: Shutting down VM
01-02 13:35:15.710 1494 1494 W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40c2f378)
01-02 13:35:15.790 377 395 D dalvikvm: GC_FOR_ALLOC freed 2051K, 21% free 17495K/22087K, paused 56ms, total 57ms
01-02 13:35:15.850 105 350 W audio_hw_primary: VBC_CMD_HAL_RESTART release vbc_lock, pipe_name:/dev/spipe_w4.
01-02 13:35:15.870 377 395 D AbstractWindowedCursor: ====>onDeactivateOrClose is called...
问题背景:
测试系统稳定性,多次重启,每次重启手机后,拨打电话,然后调用接口重启手机,启动后接收开机广播,然后再打电话,重启手机.
之所以出现上面的问题是因为:
关机之前,没有正常关闭service。到service异常启动。
解决办法是,创建一个线程,在线程中sleep一会等关掉service之后再做重启操作。