Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73dafa1f authored by Suchi Amalapurapu's avatar Suchi Amalapurapu
Browse files

Handle exceptions when doing dexopt.

Change-Id: Iaeba98ef9fef2f1dbf3dbe2e8e4497dae8d0fe7f
parent 2d8234b7
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -2681,7 +2681,13 @@ class PackageManagerService extends IPackageManager.Stub {
                Slog.w(TAG, "Apk not found for dexopt: " + path);
                Slog.w(TAG, "Apk not found for dexopt: " + path);
                ret = -1;
                ret = -1;
            } catch (IOException e) {
            } 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;
                ret = -1;
            }
            }
            if (ret < 0) {
            if (ret < 0) {