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

Commit 9966429d authored by Ye Wen's avatar Ye Wen
Browse files

Messaging auto persist switch (1/4)

b/14095333

Change-Id: I0860b662bceb250601c815028f377c28ad0e3159
parent 5fcaa0c6
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -215,4 +215,29 @@ interface IMms {
     */
    void sendStoredMessage(long subId, String callingPkg, in Uri messageUri,
            in PendingIntent sentIntent);

    /**
     * Turns on/off the flag to automatically write sent/received SMS/MMS messages into system
     *
     * When this flag is on, all SMS/MMS sent/received are stored by system automatically
     * When this flag is off, only SMS/MMS sent by non-default SMS apps are stored by system
     * automatically
     *
     * This flag can only be changed by default SMS apps
     *
     * @param callingPkg the name of the calling app package
     * @param enabled Whether to enable message auto persisting
     */
    void setAutoPersisting(String callingPkg, boolean enabled);

    /**
     * Get the value of the flag to automatically write sent/received SMS/MMS messages into system
     *
     * When this flag is on, all SMS/MMS sent/received are stored by system automatically
     * When this flag is off, only SMS/MMS sent by non-default SMS apps are stored by system
     * automatically
     *
     * @return the current value of the auto persist flag
     */
    boolean getAutoPersisting();
}