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

Commit 016ba8c3 authored by Kiran Ramachandra's avatar Kiran Ramachandra
Browse files

Added type for SMS Retriever OTPs

This type is used to classify SMS messages that are formatted for the SMS Retriever API, which are identified by a unique hash suffix.

Bug: 351976749
Test: pre-submit
Flag: com.android.internal.telephony.flags.redact_otp_sms_api

Change-Id: I0bdbb0ab3e2889f3689aebb01342b68bef81051a
parent dcff582e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -59041,6 +59041,7 @@ package android.view.textclassifier {
    field public static final String TYPE_OTHER = "other";
    field @FlaggedApi("android.permission.flags.text_classifier_choice_api_enabled") public static final String TYPE_OTP = "otp";
    field public static final String TYPE_PHONE = "phone";
    field @FlaggedApi("com.android.internal.telephony.flags.redact_otp_sms_api") public static final String TYPE_SMS_RETRIEVER_OTP = "sms_retriever_otp";
    field public static final String TYPE_UNKNOWN = "";
    field public static final String TYPE_URL = "url";
    field public static final String WIDGET_TYPE_CLIPBOARD = "clipboard";
+5 −1
Original line number Diff line number Diff line
@@ -135,6 +135,9 @@ public interface TextClassifier {
    /** Onetime password. */
    @FlaggedApi(Flags.FLAG_TEXT_CLASSIFIER_CHOICE_API_ENABLED)
    String TYPE_OTP = "otp";
    /** SMS retriever OTP.  */
    @FlaggedApi(com.android.internal.telephony.flags.Flags.FLAG_REDACT_OTP_SMS_API)
    String TYPE_SMS_RETRIEVER_OTP = "sms_retriever_otp";
    /**
     * Word that users may be interested to look up for meaning.
     * @hide
@@ -154,7 +157,8 @@ public interface TextClassifier {
            TYPE_DATE_TIME,
            TYPE_FLIGHT_NUMBER,
            TYPE_DICTIONARY,
            TYPE_OTP
            TYPE_OTP,
            TYPE_SMS_RETRIEVER_OTP
    })
    @interface EntityType {}