private void runChecks() {
        LicenseValidator validator;
        while ((validator = mPendingChecks.poll()) != null) {
            try {
                XLog.i(TAG, "Calling checkLicense on service for " + validator.getPackageName());
                mService.checkLicense(
                        validator.getNonce(), validator.getPackageName(),
                        new ResultListener(validator));
                mChecksInProgress.add(validator);
            } catch (RemoteException e) {
                XLog.w(TAG, "RemoteException in checkLicense call." + e);
                handleServiceConnectionError(validator);
            }
        }
    }
Triggers the last deep link licensing URL returned from the server, which redirects users to a
page which enables them to gain access to the app. If no such URL is returned by the server, it
will go to the details page of the app in the Play Store.
android/android_framework/base/src/main/java/com/google/android/vending/licensing/LicenseChecker.java