Skip to content

Commit

Permalink
Prioritize package installer intent filter
Browse files Browse the repository at this point in the history
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 540a404)
  • Loading branch information
moltmann authored and andi34 committed Mar 17, 2017
1 parent cbdce69 commit 47bc99a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AndroidManifest.xml
Expand Up @@ -19,14 +19,14 @@
<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" />
Expand All @@ -40,7 +40,7 @@
android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true"
android:theme="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
<intent-filter>
<intent-filter android:priority="1">
<action android:name="android.intent.action.DELETE" />
<action android:name="android.intent.action.UNINSTALL_PACKAGE" />
<category android:name="android.intent.category.DEFAULT" />
Expand All @@ -54,7 +54,7 @@
android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true"
android:theme="@android:style/Theme.DeviceDefault.Dialog.NoActionBar">
<intent-filter>
<intent-filter android:priority="1">
<action android:name="android.content.pm.action.REQUEST_PERMISSION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Expand Down

0 comments on commit 47bc99a

Please sign in to comment.