Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4687cbc4 authored by Debashish Chatterjee's avatar Debashish Chatterjee
Browse files

Introduced 'SELF_CHANGE' extra for voicemail notifications.

A follow up change in voicemail content provider will now
populate this extra instead instead of EXTRA_CHANGED_BY to indicate if
the change was caused by the receiver. This makes the the security of
the notifications a bit tighter by not revealing the package name of the
app that made the change to others.

See Bug http://b/4773134

Change-Id: Ie376c40c7bba9792da3b18e66d9f205166a402e0
parent b96a4113
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -69,8 +69,15 @@ public class VoicemailContract {
     * that caused the change in content provider.
     * <p>Receivers of the broadcast can use this field to determine if this is
     * a self change.
     * @deprecated {@link #EXTRA_SELF_CHANGE} is now populated instead.
     */
    public static final String EXTRA_CHANGED_BY = "com.android.voicemail.extra.CHANGED_BY";
    /**
     * Extra included in {@value Intent#ACTION_PROVIDER_CHANGED} and
     * {@value #ACTION_NEW_VOICEMAIL} broadcast intents to indicate if the receiving
     * package made this change.
     */
    public static final String EXTRA_SELF_CHANGE = "com.android.voicemail.extra.SELF_CHANGE";

    /** The mime type for a collection of voicemails. */
    public static final String DIR_TYPE =