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

add the listener for boot completed and unlock.
Merge pull request #91 from heyongjian/master

huangming:merge the main branch to native branch.
Merge pull request #201 from whuthm/master

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