[PM] Send ACTION_PACKAGE_CHANGED when the app is installed

Before sending the ACTION_PACKAGE_CHANGED, check whether the app is
installed on the user or not.

Test: manual. Install one Apk in one user, check the result after
updating the mimeGroup
Bug: 297517712
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a4f979ceb770a9776b86ef8769fb179d32b43f81)
Merged-In: I35f7dc5f30381c0b8a05ff45ae4984e28757a464
Change-Id: I35f7dc5f30381c0b8a05ff45ae4984e28757a464
1 file changed