FYI this is by the same developer who authored the popular NetGuard (https://github.com/M66B/NetGuard) for Android.

... and M66B developed XPrivacyLua: https://github.com/M66B/XPrivacyLua

it spoofs and restricts Android API calls made by apps.