#!/usr/bin/env python3
"""Synthetic SDK fixture for the Android SDK discovery scenario; no real device required."""
from pathlib import Path
root = Path('/tmp/factory-issue-38268-evidence-1/parent/sdk')
for name, body in [('platform-tools/adb', 'echo "List of devices attached"'), ('emulator/emulator', 'exit 0'), ('cmdline-tools/latest/bin/avdmanager', 'exit 0')]:
    executable = root / name
    executable.parent.mkdir(parents=True, exist_ok=True)
    executable.write_text('#!/bin/sh\n' + body + '\n')
    executable.chmod(0o755)
print('Run scenarios:prove with ANDROID_HOME=' + str(root.parent) + ', ANDROID_SDK_ROOT empty, and ' + str(root / 'platform-tools') + ' prepended to PATH. Inherit ANDROID_HOME,ANDROID_SDK_ROOT,T3CODE_DEV_SEED.')
