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

Commit 7bfc5a04 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Prioritize package installer.

We do not want other code to handle permissions or package
installations/uninstallations.

Test: Installed, asked for permissions
Fixes: 32553261
Change-Id: I7fb9f16aaf88b86825d5c32e4a7f6b4dd8a7bc71
parent 98edd2bb
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
        <activity android:name=".InstallStart"
                android:exported="true"
                android:excludeFromRecents="true">
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.VIEW" />
                <action android:name="android.intent.action.INSTALL_PACKAGE" />
                <category android:name="android.intent.category.DEFAULT" />
@@ -41,14 +41,14 @@
                <data android:scheme="content" />
                <data android:mimeType="application/vnd.android.package-archive" />
            </intent-filter>
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.INSTALL_PACKAGE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="file" />
                <data android:scheme="package" />
                <data android:scheme="content" />
            </intent-filter>
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.content.pm.action.CONFIRM_PERMISSIONS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
@@ -67,8 +67,10 @@
        <receiver android:name=".InstallEventReceiver"
                android:permission="android.permission.INSTALL_PACKAGES"
                android:exported="true">
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="com.android.packageinstaller.ACTION_INSTALL_COMMIT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
@@ -101,7 +103,7 @@
                android:configChanges="orientation|keyboardHidden|screenSize"
                android:excludeFromRecents="true"
                android:theme="@style/GrantPermissions">
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.content.pm.action.REQUEST_PERMISSIONS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
@@ -113,7 +115,7 @@
                  android:label="@string/app_permissions"
                  android:theme="@style/Settings"
                  android:permission="android.permission.GRANT_RUNTIME_PERMISSIONS">
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.MANAGE_PERMISSIONS" />
                <action android:name="android.intent.action.MANAGE_APP_PERMISSIONS" />
                <action android:name="android.intent.action.MANAGE_PERMISSION_APPS" />
@@ -125,7 +127,7 @@
                  android:excludeFromRecents="true"
                  android:theme="@style/Settings.NoActionBar"
                  android:permission="android.permission.GRANT_RUNTIME_PERMISSIONS">
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.REVIEW_PERMISSIONS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
@@ -137,7 +139,7 @@

        <receiver android:name=".permission.model.PermissionStatusReceiver"
            android:permission="android.permission.GRANT_RUNTIME_PERMISSIONS">
            <intent-filter>
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.GET_PERMISSIONS_COUNT" />
                <action android:name="android.intent.action.GET_PERMISSIONS_PACKAGES" />
            </intent-filter>