And here was have a prime example of why, despite all the opinion to the contrary[1], there is a clear need for a more stringent review process for Android apps. This is exactly the kind of thing which could have been caught by some kind of run-time analysis, either by hand or through some automated process that's part of the "approval" needed to be on the Play Store. Given Google's technical chops, I doubt they would have a hard time checking for this automatically at submission time, so they wouldn't have to hire a staff of human reviewers like Apple does. It might slow down the process of posting things to the store just slightly, but in the end it would benefit users.
[1] https://news.ycombinator.com/item?id=6329490