added support for permission request and new messages

Signed-off-by: Gerald <gera2ld@163.com>