Remove app from "needs permission" state if installation failed

This adds code to remove an app that is in the "needs permission"
state from the ShowPermStore if the app fails to install.

b/25721625 tracks creating a new intent to handle this case for F.

BUG: 25363020
Change-Id: Ifed00024d7e329fb3185a4607a347e972f697fcd
2 files changed