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

Commit b0381688 authored by Tom Taylor's avatar Tom Taylor
Browse files

Add private permission for sending SMS via Messaging app

When the phone dialer sends an sms, it will use the Messaging app.
That way the sent messages will end up in the messaging provider db
and sending will be more reliable. Currently, the phone dialer
uses the SmsManager directly. For now, the feature is only
available to system apps and the permission is private. Bug 4563486

Change-Id: I10f7e1042683164ee61d01a2aaf738d19084da72
parent 186c1683
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -122,6 +122,15 @@
        android:label="@string/permlab_sendSms"
        android:description="@string/permdesc_sendSms" />

    <!-- Allows an application to send SMS messages via the Messaging app with no user
         input or confirmation.
         @hide -->
    <permission android:name="android.permission.SEND_SMS_NO_CONFIRMATION"
        android:permissionGroup="android.permission-group.COST_MONEY"
        android:protectionLevel="signatureOrSystem"
        android:label="@string/permlab_sendSmsNoConfirmation"
        android:description="@string/permdesc_sendSmsNoConfirmation" />

    <!-- Allows an application to initiate a phone call without going through
         the Dialer user interface for the user to confirm the call
         being placed. -->
+11 −4
Original line number Diff line number Diff line
@@ -475,6 +475,13 @@
      messages without your confirmation.</string>

     <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_sendSmsNoConfirmation">send SMS messages with no confirmation</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permdesc_sendSmsNoConfirmation">Allows application to send SMS
      messages. Malicious applications may cost you money by sending
      messages without your confirmation.</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_readSms">read SMS or MMS</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permdesc_readSms" product="tablet">Allows application to read