Merge "Support GetMetadata for Preference Service" into main