Don't automatically grant all normal/dangerous permissions. Instead, check the value of requestedPermissionsRequired to see if it's required. If the permission is not required, then only grant it if the permission was previously granted to the application. Change-Id: I86b1fae530c006d353f9fa22137598bc88253805