So a few days ago I build an update for my custom android car tablet with my own launcher (based on nexus 7 2013). I added a few new features and some fixes, and I added accidentally the device admin permission together with the install packages permission.
After the update was installed on the tablet, the device opened always the Android for work app when clicked something which should start an external app (like Spotify or Maps). I thought it might be something with these permission and I deleted them and reinstalled a new version of the app (not updated!), but it didn't worked, it still started the Android for work app.
Then I uninstalled the Android for work app, and now the google now app started. After uninstalling it too, the settings app keep launching?!
Has anyone an idea why this is happening and what I can do to get rid of it?