<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Om Swarup Pani</title>
    <description>The latest articles on DEV Community by Om Swarup Pani (@omnivo).</description>
    <link>https://dev.to/omnivo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4275092%2F2631d4e7-b8d6-4080-a443-3310aeb36c35.png</url>
      <title>DEV Community: Om Swarup Pani</title>
      <link>https://dev.to/omnivo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omnivo"/>
    <language>en</language>
    <item>
      <title>How I Built an Open-Source Android ADB + Vision Agent for Hinge (Bypassing FLAG_SECURE Without Root)</title>
      <dc:creator>Om Swarup Pani</dc:creator>
      <pubDate>Mon, 30 Nov 2026 21:18:31 +0000</pubDate>
      <link>https://dev.to/omnivo/how-i-built-an-open-source-android-adb-vision-agent-for-hinge-bypassing-flagsecure-without-root-1jd</link>
      <guid>https://dev.to/omnivo/how-i-built-an-open-source-android-adb-vision-agent-for-hinge-bypassing-flagsecure-without-root-1jd</guid>
      <description>&lt;p&gt;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:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/omnivo/hinge-ai-wingman" rel="noopener noreferrer"&gt;https://github.com/omnivo/hinge-ai-wingman&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are the four engineering problems that made it interesting to build:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Bypassing Android &lt;code&gt;FLAG_SECURE&lt;/code&gt; Without Root
&lt;/h2&gt;

&lt;p&gt;Hinge enables &lt;code&gt;FLAG_SECURE&lt;/code&gt;, which causes &lt;code&gt;adb exec-out screencap -p&lt;/code&gt; to return black frames on unrooted Play Store emulators. Instead of requiring root, &lt;a href="https://github.com/omnivo/hinge-ai-wingman/blob/main/wingman/adb.py" rel="noopener noreferrer"&gt;&lt;code&gt;wingman/adb.py&lt;/code&gt;&lt;/a&gt; captures the emulator window externally per desktop OS and normalizes it to &lt;code&gt;1080x2424&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; Quartz &lt;code&gt;CGWindowListCreateImage&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; Win32 &lt;code&gt;PrintWindow&lt;/code&gt; via &lt;code&gt;ctypes&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ubuntu / Linux X11:&lt;/strong&gt; &lt;code&gt;xdotool&lt;/code&gt; + ImageMagick &lt;code&gt;import&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. &lt;code&gt;$0&lt;/code&gt; UIAutomator XML Gating Before Any Vision Call
&lt;/h2&gt;

&lt;p&gt;Calling a vision model on every screen wastes tokens fast. Before capturing frames or calling an LLM, &lt;code&gt;adb shell uiautomator dump&lt;/code&gt; checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether the profile shows &lt;code&gt;"Active today"&lt;/code&gt; / &lt;code&gt;"Active now"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Whether &lt;code&gt;"Out of free likes"&lt;/code&gt; / Hinge+ paywall screens appeared&lt;/li&gt;
&lt;li&gt;Matches tab &lt;code&gt;"Your turn"&lt;/code&gt; threads and &lt;code&gt;"You:"&lt;/code&gt; message bubble attributes (deterministic double-text prevention)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Vision -&amp;gt; Exact UI Actuation (&lt;code&gt;target_frame&lt;/code&gt; + CV)
&lt;/h2&gt;

&lt;p&gt;The judge schema (&lt;code&gt;DECIDE_INPUT_SCHEMA&lt;/code&gt;) brainstorms &lt;strong&gt;5 distinct banter candidates&lt;/strong&gt;, picks the best short line (&lt;code&gt;35–95&lt;/code&gt; chars, plain ASCII), and returns &lt;code&gt;target_frame&lt;/code&gt; + &lt;code&gt;target_heart_position&lt;/code&gt; (&lt;code&gt;upper&lt;/code&gt; / &lt;code&gt;lower&lt;/code&gt;). Python then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Scrolls back to the referenced frame via &lt;code&gt;36x64&lt;/code&gt; grayscale thumbnail MSE&lt;/li&gt;
&lt;li&gt;Runs normalized cross-correlation against &lt;code&gt;heart_template.png&lt;/code&gt; (&lt;code&gt;wingman/vision.py&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Locates the dynamic peach &lt;code&gt;Send Like&lt;/code&gt; pill&lt;/li&gt;
&lt;li&gt;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&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  4. Dual Backends (Claude Vision + Local Ollama) &amp;amp; Match Memory
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Supports &lt;strong&gt;Anthropic Claude Vision&lt;/strong&gt; (with ephemeral prompt caching) and &lt;strong&gt;Ollama&lt;/strong&gt; (&lt;code&gt;qwen2.5-vl&lt;/code&gt; / &lt;code&gt;llama3.2-vision&lt;/code&gt;) via &lt;code&gt;wingman/judge_ollama.py&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Saves per-match &lt;code&gt;chat.md&lt;/code&gt; (strictly isolated from &lt;code&gt;dry_runs.md&lt;/code&gt;) and evolving &lt;code&gt;persona.json&lt;/code&gt;, mirrors English or Romanized Hindi (Hinglish), and includes a ToS-safe self-profile coach (&lt;code&gt;python -m wingman.scan_self&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;(Note: automating Hinge violates Hinge's Terms of Service — use test accounts only, or use &lt;code&gt;wingman.scan_self&lt;/code&gt; for ToS-safe profile feedback.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you're exploring multimodal Android agents or UIAutomator + VLM pipelines, check out the repo and drop a star if you find it useful!&lt;/p&gt;

</description>
      <category>github</category>
      <category>python</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
