diff options
author | Philip P. Moltmann <moltmann@google.com> | 2016-12-09 14:11:08 -0800 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2017-01-20 10:27:44 -0800 |
commit | 9f44b89524def2552f2159dd6222d7687c25a70a (patch) | |
tree | 6e19aa44e4f84cd234c943fa4a6585e51e0bf928 | |
parent | b26b9425d700359d6ee68d45ac334fd1f2ab82d4 (diff) | |
download | android_packages_apps_PackageInstaller-9f44b89524def2552f2159dd6222d7687c25a70a.tar.gz android_packages_apps_PackageInstaller-9f44b89524def2552f2159dd6222d7687c25a70a.tar.bz2 android_packages_apps_PackageInstaller-9f44b89524def2552f2159dd6222d7687c25a70a.zip |
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
The M version is I7f1726fc9665e57ec63c966570169216eb2e0764
Bug: 32553261
Change-Id: I3d9054ddd475c7e77e1696e31285a6b47d59fa2a
(cherry picked from commit 540a404bd489d65feca8dbd85216891300e0fcfc)
-rw-r--r-- | AndroidManifest.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 83364bd6..654e5d1c 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -32,7 +32,7 @@ <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" /> @@ -40,14 +40,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> @@ -77,7 +77,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> @@ -89,7 +89,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" /> @@ -101,7 +101,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> @@ -113,7 +113,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> @@ -126,7 +126,7 @@ <service android:name=".permission.service.RuntimePermissionPresenterServiceImpl" android:permission="android.permission.BIND_RUNTIME_PERMISSION_PRESENTER_SERVICE"> - <intent-filter> + <intent-filter android:priority="1"> <action android:name="android.permissionpresenterservice.RuntimePermissionPresenterService"/> </intent-filter> </service> |