private boolean tryBindingToJobService(JobInvocation job, JobServiceConnection connection) {
    Intent bindIntent =
        new Intent(JobService.ACTION_EXECUTE).setClassName(context, job.getService());

    try {
      return context.bindService(bindIntent, connection, BIND_AUTO_CREATE);
    } catch (SecurityException e) {
      // It's not clear what would cause a SecurityException when binding to the same app, but
      // some change made in the N timeframe caused this to start happening.
      Log.e(TAG, "Failed to bind to " + job.getService() + ": " + e);
      return false;
    }
  }
Attempts to bind to the JobService associated with the provided {@code jobInvocation}.

<p>Returns a boolean indicating whether the bind attempt succeeded.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/ExecutionDelegator.java