decodeExcludedRoles

fun decodeExcludedRoles(names: Set<String>): Set<Config.DeviceConfig.Role>(source)

Resolves persisted role names back to roles, dropping any the current protobufs no longer define.

Names rather than ordinals, and forgiving of names it does not know: a set written by a newer build (or a role removed from the protos) must not throw on the way back in.