Merge "Don't call getGrantedPermissions() when generating package info without GET_PERMISSIONS." into sc-dev