Commit c4c2bb2
Android Use agent update (#361)
* Add Android in-app benchmarking implementation prompt (iOS-parity spec)
* Add Android-parity in-app benchmarks implementation prompt
* Add core agent LLM and vision provider abstractions
- Introduced `AgentLLMProvider` interface for LLM reasoning, including methods for action decision-making and planning.
- Implemented `OnDeviceLLMProvider` for on-device LLM operations using the RunAnywhere SDK, supporting utility tool registration and model management.
- Added `VisionProvider` interface for screen analysis, with a `TextOnlyVisionProvider` fallback.
- Registered various utility tools (e.g., time, weather, battery level) to enhance agent capabilities.
These changes lay the groundwork for improved decision-making and context understanding in the agent's operations.
* cleanup
* Refactor build configuration and enhance VLM support
- Updated build.gradle.kts to use plugin aliases for better readability.
- Modified settings.gradle.kts to include specific content filters for Google and AndroidX repositories.
- Increased compileSdk and targetSdk versions to 35.
- Replaced local AAR dependencies with library references for RunAnywhere SDK and other dependencies.
- Implemented OnDeviceVisionProvider for local VLM model analysis, including model registration and loading.
- Enhanced AgentViewModel to manage VLM model state and loading.
- Added UI components for VLM model status and provider mode display.
- Removed obsolete local AAR files for RunAnywhere SDK components.
- Introduced a new ProviderBadge component to indicate the current provider mode in the UI.
* Add on-device LLM benchmarking documentation and enhance agent functionality
- Introduced ASSESSMENT.md for benchmarking study of four on-device LLM models on Samsung Galaxy S24.
- Updated README.md to reflect new features and architecture, emphasizing fully on-device AI capabilities.
- Added permissions and service declarations in AndroidManifest.xml for foreground service to maintain agent activity.
- Implemented AgentForegroundService to prevent process termination during background operation.
- Modified AgentViewModel to start and stop the foreground service appropriately.
- Enhanced ActionExecutor to support opening notes apps and setting alarms.
- Updated ActionHistory to provide a compact format for local models.
- Improved ScreenParser to include foreground package information for better context during agent operation.
- Adjusted AgentKernel to manage app navigation and pre-launch logic more effectively, ensuring smoother user experience.
* minor updates
* update
* updating assessment
* Add X Compose Shortcut Implementation and UI Enhancements
- Introduced a three-piece solution for X (Twitter) compose flow, utilizing deep links and foreground activity management to improve navigation speed and reliability.
- Enhanced AgentViewModel to manage live LLM streaming text and clipboard functionality for log exports.
- Updated AgentAccessibilityService to filter out unlabeled container classes, improving navigation accuracy.
- Implemented a new ThinkingPanel UI component to display streaming tokens during LLM reasoning.
- Enhanced ActionExecutor to support direct clicks on elements, bypassing gesture interceptors for improved interaction.
- Added structured logging for agent steps to facilitate better performance tracking and export capabilities.
* Add Approach 3 X compose flow and document live test results
Implemented fully-assisted X posting flow (Approach 3) with LFM2.5-1.2B:
- Restored xComposeMessage field to track compose state
- Extended extractTweetText() with Pattern 3: "post saying <text>" (no quotes needed)
- Restored openXCompose() deep link in preLaunchApp() for X goals
- Restored ComposerActivity + SINGLE_TOP in bringAppToForeground() to preserve compose during inference
- Restored findPostButtonIndex() quick-tap block for zero-LLM-step POST
- Kept X-FAB keyword FAB tap as fallback
Live test results documented in ASSESSMENT.md:
- Approach 1 (pure LLM): FAIL — 1.2B always picks index 0, stuck in nav drawer
- Approach 2 (keyword FAB): FAIL — opens compose correctly but compose destroyed during inference
- Approach 3 (fully assisted): PASS — tweet posted in ~20s, 0 LLM inference steps
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add X post demo mode with X-FAB + X-TYPE + X-POST flow and report
- X-TYPE block: auto-types tweet text into compose field when blank
- X-POST block: updated to check text is present before tapping POST
- findComposeTextFieldIndex(): finds [tap,edit] EditText in accessibility tree
- preLaunchApp(): always opens X home feed (no deep link) for visible navigation
- extractTweetText() Pattern 3: matches "post/tweet saying <text>" without quotes
- X_POST.md: full implementation report with live logcat trace and proof of tweet
Tweet posted live: "Hi from RunAnywhere Android agent" — @RunanywhereAI, Feb 19 2026
27s execution time, 0 LLM inference calls, full navigation steps visible on screen.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* adding stuff
---------
Co-authored-by: runanywhere <runanywhere@runanywheres-MacBook-Pro.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Siddhesh <siddheshsonar2377@gmail.com>1 parent efca85a commit c4c2bb2
34 files changed
Lines changed: 3795 additions & 368 deletions
File tree
- .github
- Playground
- android-use-agent
- app
- src/main
- java/com/runanywhere/agent
- accessibility
- actions
- kernel
- providers
- toolcalling
- tools
- ui
- components
- assets
- gradle
- libs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 93 | + | |
| 94 | + | |
99 | 95 | | |
100 | 96 | | |
101 | | - | |
| 97 | + | |
102 | 98 | | |
103 | 99 | | |
104 | | - | |
105 | | - | |
| 100 | + | |
| 101 | + | |
106 | 102 | | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
15 | 37 | | |
16 | 38 | | |
17 | 39 | | |
| |||
32 | 54 | | |
33 | 55 | | |
34 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
35 | 62 | | |
36 | 63 | | |
37 | 64 | | |
| |||
0 commit comments