def run_snpe_adb_command(
    cmd: str, android_target: str, push_snpe: bool = True, runs: int = 1, sleep: int = 0, log_error: bool = True
):
    """Run a SNPE command on the target Android device.

    cmd: The command to run
    android_target: The target Android device
    push_snpe: Whether to push the SNPE SDK to the target Android device
    runs: The number of times to run the command
    sleep: The number of seconds to sleep between runs
    log_error: Whether to log an error if the command fails
    """
    # get snpe env
    env = get_snpe_adb_env(android_target, push_snpe)

    # run snpe command
    full_cmd = ""
    for key, value in env.items():
        full_cmd += f"export {key}={value} && "
    full_cmd += cmd

    return run_adb_command(full_cmd, android_target, shell_cmd=True, runs=runs, sleep=sleep, log_error=log_error)
Run a SNPE command on the target Android device.

    cmd: The command to run
    android_target: The target Android device
    push_snpe: Whether to push the SNPE SDK to the target Android device
    runs: The number of times to run the command
    sleep: The number of seconds to sleep between runs
    log_error: Whether to log an error if the command fails
    
olive/platform_sdk/qualcomm/snpe/utils/adb.py