Merge "Re-implement NetworkUtils#queryUserAccess."