Most AI dating tools are paid text-paste wrappers or brittle scripts hitting private APIs. I wanted to build an actual multimodal mobile UI agent that operates the official Hinge Android app on an emulator — and open-sourced it under MIT:
GitHub: https://github.com/omnivo/hinge-ai-wingman
Here are the four engineering problems that made it interesting to build:
1. Bypassing Android FLAG_SECURE Without Root
Hinge enables FLAG_SECURE, which causes adb exec-out screencap -p to return black frames on unrooted Play Store emulators. Instead of requiring root, wingman/adb.py captures the emulator window externally per desktop OS and normalizes it to 1080x2424:
-
macOS: Quartz
CGWindowListCreateImage -
Windows: Win32
PrintWindowviactypes -
Ubuntu / Linux X11:
xdotool+ ImageMagickimport
2. $0 UIAutomator XML Gating Before Any Vision Call
Calling a vision model on every screen wastes tokens fast. Before capturing frames or calling an LLM, adb shell uiautomator dump checks:
- Whether the profile shows
"Active today"/"Active now" - Whether
"Out of free likes"/ Hinge+ paywall screens appeared - Matches tab
"Your turn"threads and"You:"message bubble attributes (deterministic double-text prevention)
3. Vision -> Exact UI Actuation (target_frame + CV)
The judge schema (DECIDE_INPUT_SCHEMA) brainstorms 5 distinct banter candidates, picks the best short line (35–95 chars, plain ASCII), and returns target_frame + target_heart_position (upper / lower). Python then:
- Scrolls back to the referenced frame via
36x64grayscale thumbnail MSE - Runs normalized cross-correlation against
heart_template.png(wingman/vision.py) - Locates the dynamic peach
Send Likepill - Types via humanized log-normal ADB delays and polls dark-pixel density in the comment input box to verify characters landed before tapping Send Like
4. Dual Backends (Claude Vision + Local Ollama) & Match Memory
- Supports Anthropic Claude Vision (with ephemeral prompt caching) and Ollama (
qwen2.5-vl/llama3.2-vision) viawingman/judge_ollama.py. - Saves per-match
chat.md(strictly isolated fromdry_runs.md) and evolvingpersona.json, mirrors English or Romanized Hindi (Hinglish), and includes a ToS-safe self-profile coach (python -m wingman.scan_self).
(Note: automating Hinge violates Hinge's Terms of Service — use test accounts only, or use wingman.scan_self for ToS-safe profile feedback.)
If you're exploring multimodal Android agents or UIAutomator + VLM pipelines, check out the repo and drop a star if you find it useful!
Top comments (0)