diff options
author | Paul Milovanov <pmilovanov@google.com> | 2011-03-16 23:03:10 -0700 |
---|---|---|
committer | Paul Milovanov <pmilovanov@google.com> | 2011-03-16 23:12:31 -0700 |
commit | a57db345d3f7b70854fd66e28b8b48d3fb27c606 (patch) | |
tree | 9bde5e4d77dcd7fc9874ccb80990aace7aa84de8 /services/java | |
parent | fc59176241f498ad4eeb4237800c2eb5edd9efcd (diff) | |
download | frameworks_base-a57db345d3f7b70854fd66e28b8b48d3fb27c606.zip frameworks_base-a57db345d3f7b70854fd66e28b8b48d3fb27c606.tar.gz frameworks_base-a57db345d3f7b70854fd66e28b8b48d3fb27c606.tar.bz2 |
PACKAGE_FIRST_LAUNCH intent sent to wrong pkg
In PackageManagerService, intent with ACTION_PACKAGE_FIRST_LAUNCH was
being sent to wrong package. It was being sent to the installed
package with installer package in the URI, whereas it should be sent
to installer package with installed package in the URI.
Comment in Intent.java:1417 seems to support that intent with this
action should be sent to the installer package, not installed.
Bug: 3426299
Change-Id: Iadec4ae7a1af6bab434716f8fcdb7d0b099d1ee1
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/PackageManagerService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java index 04f271d..d542673 100644 --- a/services/java/com/android/server/PackageManagerService.java +++ b/services/java/com/android/server/PackageManagerService.java @@ -7030,8 +7030,8 @@ class PackageManagerService extends IPackageManager.Stub { if (pkgSetting.notLaunched) { if (pkgSetting.installerPackageName != null) { sendPackageBroadcast(Intent.ACTION_PACKAGE_FIRST_LAUNCH, - pkgSetting.installerPackageName, null, - pkgSetting.name, null); + pkgSetting.name, null, + pkgSetting.installerPackageName, null); } pkgSetting.notLaunched = false; } |