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

Commit 9c117938 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add an exported flag in manifest" am: be9bbadc am: 1f25f655 am: e4e7416a

Change-Id: I80660edda473633b4f0f45f7faca38901f9641ba
parents a466c3e2 e4e7416a
Loading
Loading
Loading
Loading
+183 −181
Original line number Diff line number Diff line
@@ -56,28 +56,23 @@
    <uses-permission android:name="android.permission.WRITE_BLOCKED_NUMBERS"/>
    <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME"/>

    <permission
            android:name="android.permission.BROADCAST_CALLLOG_INFO"
    <permission android:name="android.permission.BROADCAST_CALLLOG_INFO"
         android:label="Broadcast the call type/duration information"
         android:protectionLevel="signature|system"/>

    <permission
            android:name="android.permission.PROCESS_CALLLOG_INFO"
    <permission android:name="android.permission.PROCESS_CALLLOG_INFO"
         android:label="Register to handle the broadcasted call type/duration information"
         android:protectionLevel="signature|system"/>

    <permission
            android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
    <permission android:name="android.permission.BROADCAST_PHONE_ACCOUNT_REGISTRATION"
         android:label="Broadcast phone account registration"
         android:protectionLevel="signature|system"/>

    <permission
            android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
    <permission android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION"
         android:label="Process phone account registration"
         android:protectionLevel="signature|system"/>

    <permission
            android:name="android.permission.HANDLE_CALL_INTENT"
    <permission android:name="android.permission.HANDLE_CALL_INTENT"
         android:label="Protects handling the call intent via the TelecomManager API."
         android:protectionLevel="signature|system"/>

@@ -132,7 +127,8 @@
             android:theme="@style/Theme.Telecomm.Transparent"
             android:permission="android.permission.CALL_PHONE"
             android:excludeFromRecents="true"
                android:process=":ui">
             android:process=":ui"
             android:exported="true">
            <!-- CALL action intent filters for the various ways of initiating an outgoing call. -->
            <intent-filter>
                <action android:name="android.intent.action.CALL"/>
@@ -229,7 +225,8 @@
            </intent-filter>
        </activity-alias>

        <receiver android:name=".components.TelecomBroadcastReceiver" android:exported="false"
        <receiver android:name=".components.TelecomBroadcastReceiver"
             android:exported="false"
             android:process="system">
            <intent-filter>
                <action android:name="com.android.server.telecom.ACTION_CLEAR_MISSED_CALLS"/>
@@ -245,7 +242,8 @@
        </receiver>

        <receiver android:name=".components.AppUninstallBroadcastReceiver"
                android:process="system">
             android:process="system"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED"/>
                <data android:scheme="package"/>
@@ -256,7 +254,8 @@
             android:label="@string/respond_via_sms_setting_title"
             android:configChanges="orientation|screenSize|keyboardHidden"
             android:theme="@style/Theme.Telecom.DialerSettings"
                  android:process=":ui">
             android:process=":ui"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <action android:name="android.telecom.action.SHOW_RESPOND_VIA_SMS_SETTINGS"/>
@@ -268,7 +267,8 @@
             android:label="@string/enable_account_preference_title"
             android:configChanges="orientation|screenSize|keyboardHidden"
             android:theme="@style/Theme.Telecom.DialerSettings"
                  android:process=":ui">
             android:process=":ui"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -306,7 +306,8 @@

        <service android:name=".components.BluetoothPhoneService"
             android:singleUser="true"
                android:process="system">
             android:process="system"
             android:exported="true">
            <intent-filter>
                <action android:name="android.bluetooth.IBluetoothHeadsetPhone"/>
            </intent-filter>
@@ -314,7 +315,8 @@

        <service android:name=".components.TelecomService"
             android:singleUser="true"
                android:process="system">
             android:process="system"
             android:exported="true">
            <intent-filter>
                <action android:name="android.telecom.ITelecomService"/>
            </intent-filter>
+144 −128
Original line number Diff line number Diff line
@@ -18,8 +18,7 @@
     coreApp="true"
     package="com.android.server.telecom.testapps">

    <uses-sdk
        android:minSdkVersion="28"
    <uses-sdk android:minSdkVersion="28"
         android:targetSdkVersion="30"/>

    <uses-permission android:name="android.permission.ACCEPT_HANDOVER"/>
@@ -42,13 +41,15 @@
        <!-- Miscellaneous telecom app-related test activities. -->

        <service android:name="com.android.server.telecom.testapps.TestConnectionService"
                 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE" >
             android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
             android:exported="true">
            <intent-filter>
                <action android:name="android.telecom.ConnectionService"/>
            </intent-filter>
        </service>

        <receiver android:name=".TestConnectionServiceReceiver">
        <receiver android:name=".TestConnectionServiceReceiver"
             android:exported="true">
            <intent-filter>
                <action android:name="android.server.telecom.testapps.ACTION_SWITCH_PHONE_ACCOUNT"/>
                <action android:name="android.server.telecom.testapps.ACTION_SWITCH_PHONE_ACCOUNT_WRONG"/>
@@ -56,7 +57,8 @@
        </receiver>

        <service android:name="com.android.server.telecom.testapps.TestConnectionManager"
                 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE" >
             android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
             android:exported="true">
            <intent-filter>
                <action android:name="android.telecom.ConnectionService"/>
            </intent-filter>
@@ -64,15 +66,18 @@

        <service android:name="com.android.server.telecom.testapps.TestInCallServiceImpl"
             android:process="com.android.server.telecom.testapps.TestInCallService"
                 android:permission="android.permission.BIND_INCALL_SERVICE" >
            <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="true"/>
             android:permission="android.permission.BIND_INCALL_SERVICE"
             android:exported="true">
            <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI"
                 android:value="true"/>
            <intent-filter>
                <action android:name="android.telecom.InCallService"/>
            </intent-filter>
        </service>

        <receiver android:name="com.android.server.telecom.testapps.TestInCallServiceBroadcastReceiver"
                 android:process="com.android.server.telecom.testapps.TestInCallService" >
             android:process="com.android.server.telecom.testapps.TestInCallService"
             android:exported="true">
            <intent-filter>
                <action android:name="android.server.telecom.testapps.ACTION_SEND_UPDATE_REQUEST_FROM_TEST_INCALL_SERVICE"/>
                <action android:name="android.server.telecom.testapps.ACTION_SEND_UPGRADE_RESPONSE"/>
@@ -86,7 +91,8 @@
        <activity android:name="com.android.server.telecom.testapps.TestInCallUI"
             android:process="com.android.server.telecom.testapps.TestInCallService"
             android:label="@string/inCallUiAppLabel"
                android:launchMode="singleInstance">
             android:launchMode="singleInstance"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -97,7 +103,8 @@
        <activity android:name="com.android.server.telecom.testapps.TestRttActivity"
             android:process="com.android.server.telecom.testapps.TestInCallService"
             android:label="@string/rttUiLabel"
                  android:launchMode="singleInstance">
             android:launchMode="singleInstance"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -106,7 +113,8 @@

        <activity android:name="com.android.server.telecom.testapps.TestCallActivity"
             android:theme="@android:style/Theme.NoDisplay"
                  android:label="@string/testCallActivityLabel">
             android:label="@string/testCallActivityLabel"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -148,7 +156,8 @@

        <activity android:name="com.android.server.telecom.testapps.TestDialerActivity"
             android:label="@string/testDialerActivityLabel"
                  android:process="com.android.server.telecom.testapps.TestInCallService">
             android:process="com.android.server.telecom.testapps.TestInCallService"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.DIAL"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -182,7 +191,8 @@

        <activity android:name="com.android.server.telecom.testapps.TestUssdActivity"
             android:label="@string/UssdUiAppLabel"
                android:launchMode="singleInstance">
             android:launchMode="singleInstance"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -192,7 +202,8 @@

        <activity android:name="com.android.server.telecom.testapps.TestCertActivity"
             android:label="@string/KeyUiAppLabel"
                android:launchMode="singleInstance">
             android:launchMode="singleInstance"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -203,7 +214,8 @@
        <activity android:name="com.android.server.telecom.testapps.SelfManagedCallingActivity"
             android:label="@string/selfManagedCallingActivityLabel"
             android:process="com.android.server.telecom.testapps.SelfMangingCallingApp"
                  android:theme="@android:style/Theme.Material.Light">
             android:theme="@android:style/Theme.Material.Light"
             android:exported="true">
          <intent-filter>
              <action android:name="android.intent.action.MAIN"/>
              <category android:name="android.intent.category.DEFAULT"/>
@@ -213,7 +225,8 @@

        <activity android:name="com.android.server.telecom.testapps.IncomingSelfManagedCallActivity"
             android:label="@string/selfManagedCallingActivityLabel"
                  android:process="com.android.server.telecom.testapps.SelfMangingCallingApp">
             android:process="com.android.server.telecom.testapps.SelfMangingCallingApp"
             android:exported="true">
          <intent-filter>
              <action android:name="android.intent.action.MAIN"/>
          </intent-filter>
@@ -221,7 +234,8 @@

        <activity android:name="com.android.server.telecom.testapps.HandoverActivity"
             android:label="@string/selfManagedCallingActivityLabel"
                  android:process="com.android.server.telecom.testapps.SelfMangingCallingApp">
             android:process="com.android.server.telecom.testapps.SelfMangingCallingApp"
             android:exported="true">
          <intent-filter>
              <action android:name="android.intent.action.MAIN"/>
          </intent-filter>
@@ -229,7 +243,8 @@

        <service android:name="com.android.server.telecom.testapps.SelfManagedConnectionService"
             android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE"
                 android:process="com.android.server.telecom.testapps.SelfMangingCallingApp">
             android:process="com.android.server.telecom.testapps.SelfMangingCallingApp"
             android:exported="true">
          <intent-filter>
              <action android:name="android.telecom.ConnectionService"/>
          </intent-filter>
@@ -246,9 +261,9 @@
            </intent-filter>
        </receiver>

        <service
            android:name=".TestCallScreeningService"
            android:permission="android.permission.BIND_SCREENING_SERVICE">
        <service android:name=".TestCallScreeningService"
             android:permission="android.permission.BIND_SCREENING_SERVICE"
             android:exported="true">
            <intent-filter>
                <action android:name="android.telecom.CallScreeningService"/>
            </intent-filter>
@@ -260,9 +275,9 @@
             android:launchMode="singleInstance">
        </activity>

        <service
                android:name=".TestCallRedirectionService"
                android:permission="android.permission.BIND_CALL_REDIRECTION_SERVICE">
        <service android:name=".TestCallRedirectionService"
             android:permission="android.permission.BIND_CALL_REDIRECTION_SERVICE"
             android:exported="true">
            <intent-filter>
                <action android:name="android.telecom.CallRedirectionService"/>
            </intent-filter>
@@ -275,7 +290,8 @@
        </activity>

        <activity android:name=".PostCallActivity"
                  android:label="@string/postCallActivityLabel">
             android:label="@string/postCallActivityLabel"
             android:exported="true">
            <intent-filter>
                <action android:name="android.telecom.action.POST_CALL"/>
                <category android:name="android.intent.category.DEFAULT"/>
+44 −42
Original line number Diff line number Diff line
@@ -18,8 +18,7 @@
     coreApp="true"
     package="com.android.server.telecom.carmodedialer">

    <uses-sdk
        android:minSdkVersion="28"
    <uses-sdk android:minSdkVersion="28"
         android:targetSdkVersion="29"/>

    <uses-permission android:name="android.permission.ACCEPT_HANDOVER"/>
@@ -36,7 +35,8 @@
        <uses-library android:name="android.test.runner"/>

        <service android:name="com.android.server.telecom.carmodedialer.CarModeInCallServiceImpl"
                 android:permission="android.permission.BIND_INCALL_SERVICE" >
             android:permission="android.permission.BIND_INCALL_SERVICE"
             android:exported="true">
          <meta-data android:name="android.telecom.IN_CALL_SERVICE_CAR_MODE_UI"
               android:value="true"/>
          <intent-filter>
@@ -46,7 +46,8 @@

        <activity android:name="com.android.server.telecom.carmodedialer.CarModeInCallUI"
             android:label="CarMode Dialer"
                android:launchMode="singleInstance">
             android:launchMode="singleInstance"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT"/>
@@ -55,7 +56,8 @@
        </activity>

        <activity android:name="com.android.server.telecom.carmodedialer.CarModeDialerActivity"
                  android:label="CarMode Dialer">
             android:label="CarMode Dialer"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.DIAL"/>
                <category android:name="android.intent.category.DEFAULT"/>