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

Commit fec5e75c authored by Kenny Root's avatar Kenny Root
Browse files

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
parent a8c46b1d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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());
                    }
                }
            }