I'm making an Android game using Unity and I want to give the player some free in-game currency the first time they play the game. To do this I need to know if this is the first time they have installed and run the game on the current device. I don't want them to be able to delete the game and reinstall it to get the welcome bonus again.
I've looked up things like shared preferences and even the keystore but from what I can gather these get deleted when uninstalling the app. I can write a file to persistent storage with a flag indicating if the game has been installed before but I don't want them to be able to delete this file and reinstall the game. The data needs to persist between app installs and needs to be hidden from the user.
Edit: In response to the possible duplicate. Shared preferences won't work because they get deleted when the app is uninstalled.