apps/Android/MnnLlmChat/docs/mobile_use.md
This document outlines how to verify the model download functionality and status updates using the Mobile MCP tools.
MnnLlmChat app is installed and running.First, list available devices and ensure your target device is ready.
mobile_list_available_devices
Launch the application:
mobile_launch_app(device="YOUR_DEVICE_ID", packageName="com.alibaba.mnnllm.android")
Navigate to the Model Market. You can use filters to find specific models quickly (e.g., MobileLLM).
Action: Open Filter Menu Find the coordinates for "全部筛选" (Filter All) and click it.
mobile_list_elements_on_screen(device="...")
mobile_click_on_screen_at_coordinates(device="...", x=..., y=...)
Action: Apply Vendor Filter
Find a model that is not yet downloaded (button says "下载" / "Download").
Action: Click Download
mobile_click_on_screen_at_coordinates(device="...", x=BUTTON_X, y=BUTTON_Y)
You can monitor the download progress via logs or by repeatedly checking the screen status.
Log Monitoring: Check for download progress events:
adb -s YOUR_DEVICE_ID logcat -d | grep "onDownloadProgress"
Screen Monitoring: List elements periodically to see the button text change (e.g., "Preparing..." -> "1.5%" -> "50.0%").
Once the download finishes, verify the final UI state.
Expected Result:
Action: Verify Elements
mobile_list_elements_on_screen(device="...")
Check the text field of the corresponding model's status TextView.
If the status incorrectly shows "Update Available":
adb logcat for onDownloadHasUpdate events.hasUpdate flag was set during the onRepoInfo callback in ModelDownloadManager.ModelDownloadManager.onDownloadFileFinished is being called and properly clearing the flag.