### First-time Setup with Model Selection (Data Flow) Source: https://github.com/zhixianio/botdrop-android/blob/master/docs/plans/2026-02-09-v0.2.2-features-design.md Illustrates the data flow for a first-time user setup in BotDrop Android. It covers user interaction from opening the app, selecting a provider and model, authentication, saving configuration, and navigating to the channel setup. ```text User opens app ↓ SetupActivity → AuthFragment ↓ User selects Provider (Google) ↓ ModelSelectorDialog.show() ↓ Execute: openclaw models list ↓ Parse and display models ↓ User searches "gemini" → Filter results ↓ User selects "google/gemini-3-flash-preview" ↓ Callback: onModelSelected("google", "gemini-3-flash-preview") ↓ AuthFragment continues with auth method selection ↓ User enters API key ↓ Verify success ↓ ConfigTemplate template = new ConfigTemplate() template.provider = "google" template.model = "gemini-3-flash-preview" template.apiKey = "AIza..." ConfigTemplateCache.saveTemplate(context, template) ↓ BotDropConfig.setProvider("google", "gemini-3-flash-preview") BotDropConfig.setApiKey("google", "AIza...") ↓ Navigate to ChannelFragment ``` -------------------------------- ### Setup and Initialization of uiautomator2 Source: https://github.com/zhixianio/botdrop-android/blob/master/app/src/main/assets/skills/botdrop-automation/SKILL.md Commands to install dependencies, verify the service connection, and initialize the HTTPDevice client for remote mobile control. ```bash python -c "import uiautomator2" 2>/dev/null || apt install -y python-uiautomator2-botdrop curl -sS http://127.0.0.1:9008/ping ``` ```python import uiautomator2 as u2 # Initialize device d = u2.HTTPDevice("http://127.0.0.1:9008") # Verify connection print(d.app_current()) print(d.info["currentPackageName"]) ``` -------------------------------- ### Add Manual Update Button to Setup UI (XML) Source: https://github.com/zhixianio/botdrop-android/blob/master/docs/plans/2026-02-09-v0.2.2-features-design.md This snippet shows the XML layout modification in `activity_botdrop_setup.xml` to include a new ImageButton for manually checking updates. It's placed in the navigation bar, visible across all setup steps. ```xml