I used to love Xposed. The xPrivacy plug-in did exactly what OP asked. Unfortunately Google kept changing and restricting the API and also the switch from Davlik to ART pretty much killed it off.
xposed still works, it's only gotten better and grown into lsposed. I still use xprivacy (now called xprivacyLua). Just got to make sure to USSN and Shamiko magisk modules to be able to use banking etc. apps.
XPrivacyLua is no longer maintained YFI. It still seems to work just fine for now, but that probably won't last. I've not found a good replacement for it yet.
Works pretty well for now. Geergit is probably going to replace it after a few refinements. (Although i really dislike that they've taken the subscription path for most of the features to work).