urbanairship-core/src/main/java/com/urbanairship/util/ManifestUtils.java
public static boolean isPermissionKnown(@NonNull String permission) {
        try {
            UAirship.getPackageManager().getPermissionInfo(permission, 0);
            return true;
        } catch (PackageManager.NameNotFoundException e) {
            return false;
        }
    }
/**
     * Determine whether the specified permission is known to the system
     *
     * @param permission the permission name to check (e.g. com.google.android.c2dm.permission.RECEIVE)
     * @return <code>true</code>if known, <code>false</code> otherwise
     */
Determine whether the specified permission is known to the system
@param permission the permission name to check
@return trueif known, false otherwise
Determine whether the specified permission is known to the system @param permission the permission name to check @return trueif known false otherwise
public static boolean isPermissionKnown(@NonNull String permission) {
        try {
            UAirship.getPackageManager().getPermissionInfo(permission, 0);
            return true;
        } catch (PackageManager.NameNotFoundException e) {
            return false;
        }
    }
public static boolean isPermissionKnown ( @ NonNull String permission ) { try { UAirship . getPackageManager ( ) . getPermissionInfo ( permission , 0 ) ; return true ; } catch ( PackageManager . NameNotFoundException e ) { return false ; } }
Determine whether the specified permission is known to the system
 @param permission the permission name to check (e.g.
Determine whether the specified permission is known to the system @param permission the permission name to check ( e . g .