/*
 * Hermes Node Android
 * Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
package net.nexlab.hermesnodeandroid.capabilities

import android.content.Context
import net.nexlab.hermesnodeandroid.CapabilityResult
import net.nexlab.hermesnodeandroid.GatewayCommand
import org.json.JSONObject

class AndroidExecControl(private val context: Context) {
    fun capabilityInfo(): JSONObject = JSONObject()
        .put("available", false)
        .put("enabled_by_default", false)
        .put("reason", "Android app shell execution is limited and should be explicit")

    fun handle(command: GatewayCommand): CapabilityResult =
        CapabilityResult.unsupported("exec is disabled for Android until permission model and command allow/deny/ask rules are implemented")
}
