PrivServerInfo class abstract

Identifies one connected Privileged Server process.

Mirrors priv.kit.core.PrivilegeServerInfo on the Android side. The native lifecycleBinder is not transferred across the platform channel because it is only meaningful inside the Android process.

Available extensions
Annotations
  • @freezed

Constructors

PrivServerInfo({required int uid, required int pid, required int protocolVersion, String? selinuxContext})
const
factory
PrivServerInfo.fromMap(Map map)
Decodes the map sent by the Android side.
factory

Properties

copyWith → $PrivServerInfoCopyWith<PrivServerInfo>
Create a copy of PrivServerInfo with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isRoot → bool
Whether the server runs as root (UID 0).
no setter
pid → int
PID of the Privileged Server process.
no setterinherited
protocolVersion → int
Wire protocol version reported by the connected server.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selinuxContext → String?
Opaque SELinux context of the server process, when provided.
no setterinherited
uid → int
UID of the Privileged Server process.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_PrivServerInfo value)) → TResult

Available on PrivServerInfo, provided by the PrivServerInfoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_PrivServerInfo value)?) → TResult?

Available on PrivServerInfo, provided by the PrivServerInfoPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_PrivServerInfo value)?, {required TResult orElse()}) → TResult

Available on PrivServerInfo, provided by the PrivServerInfoPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int uid, int pid, int protocolVersion, String? selinuxContext)?, {required TResult orElse()}) → TResult

Available on PrivServerInfo, provided by the PrivServerInfoPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int uid, int pid, int protocolVersion, String? selinuxContext)) → TResult

Available on PrivServerInfo, provided by the PrivServerInfoPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int uid, int pid, int protocolVersion, String? selinuxContext)?) → TResult?

Available on PrivServerInfo, provided by the PrivServerInfoPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited