Bug 923577 - Ensure that we remove icons of hidden roles r=crdlc

When installing an application that is hidden, we have to make sure,
when updating the icon, that we remove it. This case happens especially
with packaged role system app, like, in this bug, a ringtones app. We
end up creating a temp icon (because we only have a updateManifest at
that time and cannot decide the role of the app) while downloading,
which is not removed once the app is finally installed.
Merge pull request #13088 from lissyx/bug923577

Bug 923577 - Ensure that we remove icons of hidden roles r=crdlc
Revert "Merge pull request #12892 from comoyo/value_selector_inputcontext"

This reverts commit 4fb5a545dc2dc6d89e6f912f787e019a770d907c, reversing
changes made to fa366f051e657d49406dfebc433ccd69ea62353d.