It does not matter what the purpose of the app was. What matters is the fact that they messed with users' phones without their explicit consent. A proper way of handling the situation would've been to warn the users and then prompt to remove the app, do you not agree?.