summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2016-12-08 22:42:02 (GMT)
committerPhilip P. Moltmann <moltmann@google.com>2016-12-08 22:42:02 (GMT)
commit17e1b04990b05996dbb993d3f48cda4819bc23a5 (patch)
treeb3496d8dc3ecc2e24c5cd2a7366dd5740de2490e
parente79f9e94e71d4cee81efd06a0f72a0982bf11ac1 (diff)
downloadandroid_packages_apps_PackageInstaller-17e1b04990b05996dbb993d3f48cda4819bc23a5.zip
android_packages_apps_PackageInstaller-17e1b04990b05996dbb993d3f48cda4819bc23a5.tar.gz
android_packages_apps_PackageInstaller-17e1b04990b05996dbb993d3f48cda4819bc23a5.tar.bz2
Prioritize package installer intent filter
Package Installer intent should always be handled by the package installer. Only privilegded apps can have a priority > 0. The K version is I79fd77b12bad9b79d1a53d08629a2b07919aad2c The L version is I27611baae21c3820f594e8f58aec34fc4d0b1ffb Bug: 32553261 Change-Id: I7f1726fc9665e57ec63c966570169216eb2e0764
-rw-r--r--AndroidManifest.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9120e7e..f08dca5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -26,20 +26,20 @@
<activity android:name=".PackageInstallerActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
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" />
<data android:scheme="file" />
<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" />
</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>
@@ -69,7 +69,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>
@@ -81,7 +81,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" />
@@ -95,7 +95,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" />
</intent-filter>
</receiver>