How to put restrictions on android?
You can use Automate app.. It will automatically check if an app is installed and then perform relevant action. You can also set that if package manager is opened, force close it or press home key. You can choose to uninstall it as soon as it's installed if you have  root permissions OR you can delete its files from storage to render it useless OR you can set that the home button is pressed and not responding pop up is shown whenever the app is opened.. LOL
Further you can download AppLock to prevent uninstalling of Automate app or any other app too.
With Automate you can do many more further hacks.
Hope it helps...