am a77acab9: Merge "Handle exceptions when doing dexopt." into froyo

Merge commit 'a77acab9c623a8b63b46d14686cf1a86dd863289' into froyo-plus-aosp

* commit 'a77acab9c623a8b63b46d14686cf1a86dd863289':
  Handle exceptions when doing dexopt.
This commit is contained in:
Suchi Amalapurapu
2010-04-02 12:51:01 -07:00
committed by Android Git Automerger

View File

@@ -2681,7 +2681,13 @@ class PackageManagerService extends IPackageManager.Stub {
Slog.w(TAG, "Apk not found for dexopt: " + path);
ret = -1;
} catch (IOException e) {
Slog.w(TAG, "Exception reading apk: " + path, e);
Slog.w(TAG, "IOException reading apk: " + path, e);
ret = -1;
} catch (dalvik.system.StaleDexCacheError e) {
Slog.w(TAG, "StaleDexCacheError when reading apk: " + path, e);
ret = -1;
} catch (Exception e) {
Slog.w(TAG, "Exception when doing dexopt : ", e);
ret = -1;
}
if (ret < 0) {