Loading apex/jobscheduler/service/java/com/android/server/job/JobStore.java +15 −2 Original line number Diff line number Diff line Loading @@ -742,6 +742,10 @@ public final class JobStore { } } catch (XmlPullParserException | IOException e) { Slog.wtf(TAG, "Error jobstore xml.", e); } catch (Exception e) { // Crashing at this point would result in a boot loop, so live with a general // Exception for system stability's sake. Slog.wtf(TAG, "Unexpected exception", e); } finally { if (mPersistInfo.countAllJobsLoaded < 0) { // Only set them once. mPersistInfo.countAllJobsLoaded = numJobs; Loading Loading @@ -890,6 +894,9 @@ public final class JobStore { } catch (IOException e) { Slog.d(TAG, "Error I/O Exception.", e); return null; } catch (IllegalArgumentException e) { Slog.e(TAG, "Constraints contained invalid data", e); return null; } parser.next(); // Consume </constraints> Loading Loading @@ -986,8 +993,14 @@ public final class JobStore { return null; } PersistableBundle extras = PersistableBundle.restoreFromXml(parser); final PersistableBundle extras; try { extras = PersistableBundle.restoreFromXml(parser); jobBuilder.setExtras(extras); } catch (IllegalArgumentException e) { Slog.e(TAG, "Persisted extras contained invalid data", e); return null; } parser.nextTag(); // Consume </extras> final JobInfo builtJob; Loading Loading
apex/jobscheduler/service/java/com/android/server/job/JobStore.java +15 −2 Original line number Diff line number Diff line Loading @@ -742,6 +742,10 @@ public final class JobStore { } } catch (XmlPullParserException | IOException e) { Slog.wtf(TAG, "Error jobstore xml.", e); } catch (Exception e) { // Crashing at this point would result in a boot loop, so live with a general // Exception for system stability's sake. Slog.wtf(TAG, "Unexpected exception", e); } finally { if (mPersistInfo.countAllJobsLoaded < 0) { // Only set them once. mPersistInfo.countAllJobsLoaded = numJobs; Loading Loading @@ -890,6 +894,9 @@ public final class JobStore { } catch (IOException e) { Slog.d(TAG, "Error I/O Exception.", e); return null; } catch (IllegalArgumentException e) { Slog.e(TAG, "Constraints contained invalid data", e); return null; } parser.next(); // Consume </constraints> Loading Loading @@ -986,8 +993,14 @@ public final class JobStore { return null; } PersistableBundle extras = PersistableBundle.restoreFromXml(parser); final PersistableBundle extras; try { extras = PersistableBundle.restoreFromXml(parser); jobBuilder.setExtras(extras); } catch (IllegalArgumentException e) { Slog.e(TAG, "Persisted extras contained invalid data", e); return null; } parser.nextTag(); // Consume </extras> final JobInfo builtJob; Loading