From fec5e75c96e8a35a7a6e55c40d435f72a80c97df Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 23 Sep 2011 10:09:58 -0700 Subject: [PATCH] Less verbose message when dexopt non-APK The message when something is not an APK that is submitted for dexopt is not extremely helpful. Make it more precise and remove the useless traceback. Change-Id: Ibb34b2b2c10ee28ea98662c3f6fd070529cf8c4f --- .../java/com/android/server/pm/PackageManagerService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java index 105e603769fed..e60b307d7096c 100644 --- a/services/java/com/android/server/pm/PackageManagerService.java +++ b/services/java/com/android/server/pm/PackageManagerService.java @@ -945,7 +945,8 @@ public class PackageManagerService extends IPackageManager.Stub { } catch (FileNotFoundException e) { Slog.w(TAG, "Boot class path not found: " + paths[i]); } catch (IOException e) { - Slog.w(TAG, "Exception reading boot class path: " + paths[i], e); + Slog.w(TAG, "Cannot dexopt " + paths[i] + "; is it an APK or JAR? " + + e.getMessage()); } } } else { @@ -968,7 +969,8 @@ public class PackageManagerService extends IPackageManager.Stub { } catch (FileNotFoundException e) { Slog.w(TAG, "Library not found: " + lib); } catch (IOException e) { - Slog.w(TAG, "Exception reading library: " + lib, e); + Slog.w(TAG, "Cannot dexopt " + lib + "; is it an APK or JAR? " + + e.getMessage()); } } }