public static int checkSelfPermission(@NonNull Context context, @NonNull String permission) {
        if (permission == null) {
            throw new IllegalArgumentException("permission is null");
        }

        return context.checkPermission(permission, Process.myPid(), Process.myUid());
    }
Determine whether <em>you</em> have been granted a particular permission.

@param permission The name of the permission being checked.
@return {@link android.content.pm.PackageManager#PERMISSION_GRANTED} if you have the
permission, or {@link android.content.pm.PackageManager#PERMISSION_DENIED} if not.
@see android.content.pm.PackageManager#checkPermission(String, String)
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/ContextCompat.java