fix bug issue-52, add the listener for boot completed and unlock.

add the listener for boot completed and unlock.