[3/7] Special carrier apps: Offer the special carrier apps notification only to the owner

The guard designed to only let the owner to explicitly enable/disable matching special
carrier apps was broken as it is always called within the context of the system process
`com.android.phone`, and thus always runs under the system user. On top of it, when the
guard was validated, the app was not disabled and thus could be enabled silently.

Instead, validate that the context in which the match is done comes from the owner.
Any other user will not receive the notification. The special carrier apps will always
be disabled until used in such a context because there cannot be a different user than
the owner created at the first boot.

This is not a complete fix as we would like every user to be presented with the
ability to enable/disable the app when matching.

Issue: FPIIM-1459
Issue: FP2N-241
Issue: FP2P-409
Change-Id: I3662342f14d170eee4f0cb830797600f0c23f416
(cherry picked from commit 065ae9954b9d1e9c393347d8aa5f38d94a99daf7)
1 file changed