compat/src/main/java/androidx/core/app/AppOpsManagerCompat.java
@Nullable
    public static String permissionToOp(@NonNull String permission) {
        if (SDK_INT >= 23) {
            return AppOpsManager.permissionToOp(permission);
        } else {
            return null;
        }
    }
/**
     * Gets the app op name associated with a given permission.
     * <p>
     * <strong>Compatibility</strong>
     * <ul>
     * <li>On API 22 and lower, this method always returns {@code null}
     * </ul>
     *
     * @param permission The permission.
     * @return The app op associated with the permission or null.
     */
Gets the app op name associated with a given permission.

Compatibility

On API 22 and lower, this method always returns  null


@param permission The permission.
@return The app op associated with the permission or null.
Gets the app op name associated with a given permission . Compatibility On API 22 and lower this method always returns null @param permission The permission . @return The app op associated with the permission or null .
@Nullable
    public static String permissionToOp(@NonNull String permission) {
        if (SDK_INT >= 23) {
            return AppOpsManager.permissionToOp(permission);
        } else {
            return null;
        }
    }
@ Nullable public static String permissionToOp ( @ NonNull String permission ) { if ( SDK_INT >= 23 ) { return AppOpsManager . permissionToOp ( permission ) ; } else { return null ; } }
Gets the app op name associated with a given permission.
Gets the app op name associated with a given permission .