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

Commit cdd2cd14 authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

Add an exported flag in manifest

With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: I746328481203fd39649056e7ac4bd401547c1c91
parent c4d16b31
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
        <activity
            android:name=".picker.PickActivity"
            android:theme="@style/DocumentsTheme"
            android:exported="true"
            android:visibleToInstantApps="true">
            <intent-filter>
                <action android:name="android.intent.action.OPEN_DOCUMENT" />
@@ -88,6 +89,7 @@
            android:targetActivity=".files.LauncherActivity"
            android:enabled="@bool/is_launcher_enabled"
            android:label="@string/launcher_label"
            android:exported="true"
            android:icon="@drawable/launcher_icon" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
@@ -100,6 +102,7 @@
        <activity
            android:name=".files.FilesActivity"
            android:documentLaunchMode="intoExisting"
            android:exported="true"
            android:theme="@style/DocumentsTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
@@ -118,6 +121,7 @@

        <activity-alias android:name=".ViewDownloadsActivity"
                        android:targetActivity=".files.FilesActivity"
                        android:exported="true"
                        android:enabled="@bool/handle_view_downloads_intent">
            <intent-filter>
                <action android:name="android.intent.action.VIEW_DOWNLOADS" />
@@ -127,6 +131,7 @@

        <activity
            android:name=".ScopedAccessActivity"
            android:exported="true"
            android:theme="@android:style/Theme.Translucent.NoTitleBar">
            <intent-filter>
                <action android:name="android.os.storage.action.OPEN_EXTERNAL_DIRECTORY" />
@@ -155,7 +160,8 @@
            </intent-filter>
        </provider>

        <receiver android:name=".PackageReceiver">
        <receiver android:name=".PackageReceiver"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
                <action android:name="android.intent.action.PACKAGE_DATA_CLEARED" />
@@ -163,13 +169,15 @@
            </intent-filter>
        </receiver>

        <receiver android:name=".roots.BootReceiver" android:enabled="false">
        <receiver android:name=".roots.BootReceiver" android:enabled="false"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

        <receiver android:name=".PreBootReceiver">
        <receiver android:name=".PreBootReceiver"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.PRE_BOOT_COMPLETED" />
            </intent-filter>
@@ -187,6 +195,7 @@
        <activity
            android:name=".selection.demo.SelectionDemoActivity"
            android:label="Selection Demo"
            android:exported="true"
            android:theme="@style/DocumentsTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
+7 −3
Original line number Diff line number Diff line
@@ -7,7 +7,8 @@
    <application android:label="DocumentsUI Tests">
        <uses-library android:name="android.test.runner" />

        <activity android:name="com.android.documentsui.SettingsActivity">
        <activity android:name="com.android.documentsui.SettingsActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.provider.action.DOCUMENT_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
@@ -18,7 +19,8 @@
        </activity>

        <!--Needed for demo'ing and functional testing the open in provider feature in inspector -->
        <activity android:name="com.android.documentsui.TestProviderActivity">
        <activity android:name="com.android.documentsui.TestProviderActivity"
          android:exported="true">
          <intent-filter>
            <action android:name="android.provider.action.DOCUMENT_SETTINGS" />
            <category android:name="android.intent.category.DEFAULT" />
@@ -28,7 +30,8 @@
          </intent-filter>
        </activity>

        <activity android:name="com.android.documentsui.AuthenticationActivity">
        <activity android:name="com.android.documentsui.AuthenticationActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="com.android.documentsui.test.action.AUTHENTICATE" />
                <category android:name="android.intent.category.DEFAULT" />
@@ -127,6 +130,7 @@

        <service android:name="com.android.documentsui.services.TestNotificationService"
                 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
                 android:exported="true"
                 android:process="com.android.documentsui">
            <intent-filter>
                <action android:name="android.service.notification.NotificationListenerService" />