There is a big difference to understand here. The Google Play console is most likely reporting downloads and counting that as an Install. I can log in to Google Play on my laptop’s browser, find your app and install it to my Android tablet. That would count as an install. Yet I have never run your app to execute the above code. Your code really defines “Installed and ran”.
What I think @agramonte was actually asking you is why are you getting all these installs that never run? There was a time about a year ago where on iOS I might only get 10 installs a day on a free game, but then suddenly those jumped to 100 installs a day on an old game. But I didn’t see any increase in usage of the app. Also paid apps didn’t have a similar increase in installs. This happened to just about everyone else and the common theory was there was some bot downloading the apps and falsely driving up those numbers.
I don’t know if Google Play has similar issues, but it’s very likely that the difference between downloads and download and run’s are different enough to cause your discrepancy.
Rob