diff options
author | Philip P. Moltmann <moltmann@google.com> | 2016-12-08 17:49:02 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-12-08 17:49:02 +0000 |
commit | f116df2806abc572eabf18506a28af2bccaafc57 (patch) | |
tree | 6d9a8e5405ac3f4c57c80074b967798e5edb7301 | |
parent | aaebc99eeca4454089a4592558126462889eec4b (diff) | |
parent | e01dae7f54c05ad4bc07755511bee614d72a4183 (diff) | |
download | android_packages_apps_PackageInstaller-f116df2806abc572eabf18506a28af2bccaafc57.tar.gz android_packages_apps_PackageInstaller-f116df2806abc572eabf18506a28af2bccaafc57.tar.bz2 android_packages_apps_PackageInstaller-f116df2806abc572eabf18506a28af2bccaafc57.zip |
Prioritze package installer intent filter
am: e01dae7f54
Change-Id: I1c2e0801edf887d2d6e69dafb9e57d87d3ad1bc1
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | AndroidManifest.xml | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -12,6 +12,8 @@ LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 LOCAL_PACKAGE_NAME := PackageInstaller LOCAL_CERTIFICATE := platform +LOCAL_PRIVILEGED_MODULE := true + LOCAL_PROGUARD_FLAG_FILES := proguard.flags include $(BUILD_PACKAGE) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8b04c7fa..8e234e14 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -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" /> @@ -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" /> @@ -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> |