Merge "Harden against jobscheduler client app misbehavior" into nyc-mr2-dev

This commit is contained in:
Chris Tate
2017-02-16 00:50:56 +00:00
committed by Android (Google) Code Review

View File

@@ -445,7 +445,10 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne
mVerb = VERB_STARTING;
scheduleOpTimeOut();
service.startJob(mParams);
} catch (RemoteException e) {
} catch (Exception e) {
// We catch 'Exception' because client-app malice or bugs might induce a wide
// range of possible exception-throw outcomes from startJob() and its handling
// of the client's ParcelableBundle extras.
Slog.e(TAG, "Error sending onStart message to '" +
mRunningJob.getServiceComponent().getShortClassName() + "' ", e);
}