This question talks about checking if Google Maps is installed on the device and the answer works fine. In newer versions of Android, we can only disable the Google Maps app not uninstall it so the above answer does not completely work for me.
When I was testing my app in a phone with Google Play services 9.2.x installed, it does not work when Google Maps app is disabled which is weird because it works fine without it in devices with Google Play services >= 9.4.x.
Is there a way to check if Google Maps app is disabled or not? (Please note that app is still installed just disabled.)