Handle exceptions when doing dexopt.

Change-Id: Iaeba98ef9fef2f1dbf3dbe2e8e4497dae8d0fe7f
This commit is contained in:
Suchi Amalapurapu
2010-04-01 16:31:31 -07:00
parent 2d8234b73d
commit 73dafa1f66

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) {