Add "category" and "file" as exemptions in ReplaceExampt

Implemented from compat

- synchronized with compat by xqt

Change-Id: I062f21c592a04cbc872cf287a6873410c70ed864