remove unused permissions and ignore lint errors