commit | 820cc0d2e0f6a131318c073da44706dee60a393d | [log] [tgz] |
---|---|---|
author | Mark Lu <Mark_Lu@htc.com> | Wed Dec 16 15:41:04 2015 +0800 |
committer | Jackeagle <jackeagle102@gmail.com> | Sun Nov 27 00:04:25 2016 +0530 |
tree | 763439d173eb750f46de15761d5cbfcbcdd6cc2c | |
parent | d9ebd23e57c4065e4d96ff9584d1e1183b144ec5 [diff] |
Fix batterySendBroadcast not synchronized issue. Symptom: system server crash. Root Cause: batterySendBroadcast not sychrnized with AMS object, caused system crash in broadcastIntentLocked() when 2 threads access mParallelBroadcasts.get(i).intent but get null in BroadcastQueue.replaceParallelBroadcastLocked(). Solution: add sychronization object. Change-Id: I99f751a2cd3e6fa1dbe2812f5f129525013d6a7f Signed-off-by: mydongistiny <jaysonedson@gmail.com>