core-android/src/main/java/com/uber/sdk/android/core/auth/LegacyUriRedirectHandler.java
boolean checkValidState(@NonNull Activity activity, @NonNull LoginManager
            loginManager) {
        initState(activity, loginManager);
        boolean validToContinueExecution = true;
        if (isLegacyMode()) {
            String logMessage = activity.getString(getLegacyModeErrorMessage());
            String uiTitle = activity.getString(R.string.ub__misconfigured_redirect_uri_title);
            String uiMessage = activity.getString(R.string.ub__misconfigured_redirect_uri_message);

            validToContinueExecution = !Utility.logAndShowBlockingDebugUIAlert(activity,
                    logMessage, uiTitle, uiMessage, new IllegalStateException(logMessage));
        }
        return validToContinueExecution;
    }
boolean checkValidState(@NonNull Activity activity, @NonNull LoginManager
            loginManager) {
        initState(activity, loginManager);
        boolean validToContinueExecution = true;
        if (isLegacyMode()) {
            String logMessage = activity.getString(getLegacyModeErrorMessage());
            String uiTitle = activity.getString(R.string.ub__misconfigured_redirect_uri_title);
            String uiMessage = activity.getString(R.string.ub__misconfigured_redirect_uri_message);

            validToContinueExecution = !Utility.logAndShowBlockingDebugUIAlert(activity,
                    logMessage, uiTitle, uiMessage, new IllegalStateException(logMessage));
        }
        return validToContinueExecution;
    }
Will validate that the Redirect URI mode is valid {@link Mode#OFF} and return true

If false, then the app should terminate codeflow, this will happen in Debug mode for
unhandled migration scenarios.
See https://github.com/uber/rides-android-sdk#authentication-migration-version.

@param activity to lookup package info and launch blocking dialog
@param loginManager to validate old auth code flow
@return true if valid, false if invalid