GetNetworkOperatorTool

Returns the current registered network operator from android.telephony.TelephonyManager. No permission required. The numeric operator_id (PLMN) is split into 3-digit mcc and remaining mnc when at least 5 digits are present. Output: operator_name, operator_id, mcc, mnc (any may be null/empty when not on a cellular network).

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val annotations: ToolAnnotations
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val parameters: List<ToolParameter>

Functions

Link copied to clipboard
open suspend override fun execute(params: Map<String, Any>): ToolResult