There’s this
https://discuss.eroscripts.com/t/easy-device-integration-edi-integrate-your-game-now/118446/1
Don’t know how/if it works with Unity games. I imagine you can make a Unity mod for it or something like that but it would definitely require a pretty deep knowledge of Unity plus you would also probably need the full source code to go that way.