add PermissionManager

Change-Id: Ia56405f6e42d8e09b087dc7454995885b1ab6edc