From 0a3693c21d5dda8374db88ab07a7a2a8a24aa88b Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Mon, 1 May 2017 19:49:21 -0700 Subject: [PATCH] Make PM#notifyDexLoad oneway There's not need to wait for the PM to process the dex load notification. Make notifyPackageUse one way as well (for the same reason). Bug: 37876265 Test: manual test to verify that notifications still work Change-Id: I29d076348c2999a4441c2047a89a45b085bf3761 --- core/java/android/content/pm/IPackageManager.aidl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/content/pm/IPackageManager.aidl b/core/java/android/content/pm/IPackageManager.aidl index c7dd1fad4edc6..9096e44cd1754 100644 --- a/core/java/android/content/pm/IPackageManager.aidl +++ b/core/java/android/content/pm/IPackageManager.aidl @@ -462,7 +462,7 @@ interface IPackageManager { * * See PackageManager.NOTIFY_PACKAGE_USE_* for reasons. */ - void notifyPackageUse(String packageName, int reason); + oneway void notifyPackageUse(String packageName, int reason); /** * Notify the package manager that a list of dex files have been loaded. @@ -471,7 +471,8 @@ interface IPackageManager { * @param dexPats the list of the dex files paths that have been loaded * @param loaderIsa the ISA of the loader process */ - void notifyDexLoad(String loadingPackageName, in List dexPaths, String loaderIsa); + oneway void notifyDexLoad(String loadingPackageName, in List dexPaths, + String loaderIsa); /** * Ask the package manager to perform a dex-opt for the given reason. The package