This can be solved if you start allowing the android framework to inspect other apps and expose these apis to developers. Xposed framework likely do this already (I'm not positive as I do not run it myself).
My proposal is to start defining this api and adding them into CyanogenMod.
Second even where solutions to app ads exist (AdAway on Android) they are ineffective on in-stream advertising, which seems to be coming to dominate. There doesn't seem to be a way to block Twitter's promoted tweets in the Twitter app for example.