On this page
Android autofill regressions rarely fail cleanly inside unit tests. A Jetpack Compose login form can pass every local assertion on a developer workstation yet silently refuse to trigger Google Password Manager, suppress keyboard inline suggestion chips, or skip the system Save Password dialog on a physical phone. Because Android's AutofillManager, Input Method Editor (IME) inline suggestion strip, and third-party AutofillService providers operate across process boundaries, verifying real-world autofill behavior requires inspecting live device state rather than relying on mocked UI assertions alone.
Connecting Claude Code to real Android hardware through the Model Context Protocol (MCP) closes this cross-process visibility gap. Using ScreenSync MCP, an Android and browser MCP server built by EpsolDev, Claude Code can tap form fields, capture live screenshots, inspect accessibility node trees, read dumpsys autofill diagnostics, and correlate logcat binder traces on an actual smartphone in a single loop.
Key Takeaways
- Cross-Process Validation: Android autofill spans the app's
SemanticsorViewStructuretree,AutofillManagerServiceinsystem_server, the boundAutofillService, and the IME inline suggestion host—making real-device testing essential.- Capture vs. Control Separation: ScreenSync MCP captures device screens via Android's native
MediaProjectionAPI (about 94 ms median live mirror on a LAN) with no root and no ADB; interactive control tools (control_tap,control_type,control_swipe) execute over ADB via USB or wireless debugging.- 226-Tool Surface: The ScreenSync MCP desktop hub (Node.js 18+ on port 3000 over stdio) exposes 29 phone and desktop tools (12
control_*, 3os_*, 14 capture/hub tools includingget_latest_screenshot,get_ui_hierarchy, andget_logcat) plus *197 `web_` browser tools**.- Compose & Credential Manager Ready: Testing covers both modern Jetpack Compose
Modifier.contentType(...)/LocalAutofillManager.current?.commit()lifecycles and legacy XMLandroid:autofillHintsalongside Credential Manager interoperability.- Local-First Privacy Model: Screen frames travel strictly from the Android app to your local hub over your LAN (never to EpsolDev servers), while screenshots explicitly pulled by an agent are sent to that agent's model provider.
Why Android Autofill Breaks Between Compose, Views, and System Services
Android autofill breaks across process boundaries when an application's Semantics tree or ViewStructure fails to match what the system AutofillManagerService and active AutofillService expect. Missing semantic ContentType hints, premature state resets before AutofillManager.commit(), and keyboard IME inline rendering mismatches cause silent failures that local robo-tests cannot detect.
In traditional Android Views, developers wired android:autofillHints and android:importantForAutofill directly into EditText nodes. The system serialized the ViewHierarchy into a ViewStructure and sent an AssistStructure parcel to the active AutofillService (such as Google Password Manager, Bitwarden, or 1Password). If any container marked IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, or if custom TextInputLayout wrappers masked the focused autofillId, the provider returned null datasets without throwing a single exception in the app process.
Modern Jetpack Compose shifted autofill architecture from imperative AutofillNode registration to native Semantics-based autofill (Modifier.contentType(...) and SemanticsProperties.ContentType). While far cleaner for declarative UI, Compose autofill introduces its own failure modes on real devices:
- Missing or mismatched
ContentTypevalues: An email-or-username field tagged only withContentType.Usernamemay miss credentials saved under an email address unless combined viaContentType.Username + ContentType.EmailAddress. - Lost save prompts on single-activity navigation: Compose attempts to commit autofill sessions implicitly when the user navigates away from a form, but custom state machines, modal bottom sheets, or instant view-model clears after tapping Sign Up can wipe input state before the OS snapshots the submitted values.
- IME inline suggestion clipping: Android 11+ moved autofill suggestions into the soft keyboard's top strip (
InlinePresentationSpec). Custom keyboards,FLAG_SECUREwindows, or rapid focus bouncing between adjacent fields can cause inline chips to flicker or fail to inflate. - Credential Manager vs. AutofillService races: Apps adopting
androidx.credentialsfor testing Android passkeys and federated sign-in sometimes leave overlapping legacyAutofillManagertriggers active, causing two competing prompts or a suppressed dropdown when a user taps a username field.
| Android Autofill Layer | Legacy View System | Jetpack Compose Semantics | Primary Failure Mode on Device | Diagnostic Signal |
|---|---|---|---|---|
| Field Annotation | android:autofillHints="username" |
Modifier.contentType(ContentType.Username) |
Provider cannot classify login vs. search field | Missing hint / ContentType in AssistStructure |
| Visibility Gate | importantForAutofill="yes" |
Semantic node traversal & hideFromAccessibility |
Wrapper hides child inputs from system_server |
IGNORED state in dumpsys autofill |
| Session Commit | Automatic on Activity.finish() |
LocalAutofillManager.current?.commit() |
Navigation clears state before Save dialog fires | No onSaveRequest logged in AutofillService |
| Suggestion Surface | Floating PopupWindow dropdown |
Keyboard IME inline chip (InlineSuggestionsResponse) |
Keyboard hides or clips suggestion chips | InlineSuggestion inflation warnings in get_logcat |
| Credential Interop | AutofillService only |
androidx.credentials + PendingIntent autofill |
Duplicate or blocked sign-in bottom sheets | Competing binder transactions in dumpsys autofill |
Because AutofillManagerService lives inside system_server and the suggestion UI renders inside either the IME process or the provider's privileged overlay, standard in-process unit tests only prove that your app emitted a property—not that a real user sees the autofill chip or save dialog.
Setting Up ScreenSync MCP and Claude Code for Physical Device Autofill Testing
Setting up Claude Code with ScreenSync MCP requires installing the free Android app (com.screensync.mcp) on an Android 7.0+ phone, running the Node.js 18+ desktop hub locally on port 3000, and registering the stdio MCP server in Claude Code. Screen capture uses MediaProjection without root, while ADB enables control tools and dumpsys autofill.
Before automating autofill flows, verify that your workstation and physical Android test device meet the runtime requirements:
- Android Device: Android 7.0 or later running the free ScreenSync MCP Android app on Google Play (
com.screensync.mcp, v2.5.7). Ensure an active Autofill provider (such as Google Password Manager or a dedicated testAutofillService) is enabled under Settings > System > Languages & input > Autofill service (or Passwords, passkeys & accounts on Android 14–16). - Desktop Hub: Download and unpack the free ScreenSync MCP desktop hub (v1.14.4) on Windows, macOS, or Linux with Node.js 18+ installed, and start it using
start-hub.batorstart-hub.sh(serving HTTP on port3000and MCP overstdio). Follow the complete ScreenSync MCP setup guide for QR-code or mDNS LAN pairing andSCREEN_SYNC_TOKENgeneration. - ADB Connection: Enable USB debugging or Android Wireless Debugging so ADB (
adb devices) recognizes the device. Remember the architectural boundary: screen capture via MediaProjection needs no root and no ADB, whereas control tools (control_tap,control_type,control_swipe) and shell diagnostics (dumpsys autofill) run through ADB from the hub.
Register ScreenSync MCP with Claude Code using the single stdio command:
claude mcp add screensync node "/path/to/hub/screensync-hub.js"
If you also validate desktop-to-mobile journeys in Claude Desktop, add the server entry inside claude_desktop_config.json (accessible via Settings > Developer):
{
"mcpServers": {
"screensync": {
"command": "node",
"args": ["/path/to/hub/screensync-hub.js"],
"env": {
"SCREEN_SYNC_TOKEN": "your-local-hub-token"
}
}
}
}
Once paired over your local Wi-Fi network, ScreenSync MCP discovers the device via mDNS or QR pairing and authenticates requests using SCREEN_SYNC_TOKEN. Screen frames stream directly from your phone to the local hub—never through EpsolDev servers—while any screenshot that Claude Code explicitly pulls with get_latest_screenshot is transmitted to your configured AI model provider for multimodal inspection. Note that ChatGPT's web app requires a remote HTTPS MCP endpoint and is therefore not supported; use local stdio-capable clients such as Claude Code, Claude Desktop, Cursor, or VS Code agent mode.
Inspecting Jetpack Compose ContentType and Legacy ViewStructure via MCP
Claude Code verifies Android autofill metadata by pairing compile-time Compose SemanticsMatcher assertions with runtime inspection of the live window using get_ui_hierarchy and adb shell dumpsys autofill. This dual check catches discrepancies between expected ContentType definitions in source code and actual node attributes exposed to system_server.
When working on a Jetpack Compose screen—covered more broadly in our guide on testing Jetpack Compose apps with Claude Code—the first step is auditing the text fields in Kotlin. Modern Compose uses Modifier.contentType(...) or Modifier.semantics { contentType = ... } alongside LocalAutofillManager.current:
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.text.input.TextFieldState
import androidx.compose.foundation.text.input.rememberTextFieldState
import androidx.compose.material3.Button
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.autofill.ContentType
import androidx.compose.ui.platform.LocalAutofillManager
import androidx.compose.ui.semantics.contentType
import androidx.compose.ui.semantics.semantics
@Composable
fun LoginAutofillScreen(
onAuthenticate: (String, String) -> Unit
) {
val usernameState: TextFieldState = rememberTextFieldState()
val passwordState: TextFieldState = rememberTextFieldState()
val autofillManager = LocalAutofillManager.current
Column {
OutlinedTextField(
state = usernameState,
label = { Text("Email or Username") },
modifier = Modifier.semantics {
contentType = ContentType.EmailAddress + ContentType.Username
}
)
OutlinedTextField(
state = passwordState,
label = { Text("Password") },
modifier = Modifier.contentType(ContentType.Password)
)
Button(
onClick = {
// Explicitly commit before navigation or state clear
autofillManager?.commit()
onAuthenticate(
usernameState.text.toString(),
passwordState.text.toString()
)
}
) {
Text("Sign In")
}
}
}
For legacy XML layouts that still coexist inside hybrid navigation graphs, Claude Code checks importantForAutofill and autofillHints attributes:
<EditText
android:id="@+id/input_work_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="emailAddress,username"
android:importantForAutofill="yes"
android:inputType="textEmailAddress" />
Before running live device sessions, Claude Code can generate or run a Compose UI test with custom SemanticsMatcher predicates to fail fast if a refactor accidentally strips ContentType:
import androidx.compose.ui.autofill.ContentType
import androidx.compose.ui.semantics.SemanticsProperties
import androidx.compose.ui.semantics.getOrNull
import androidx.compose.ui.test.SemanticsMatcher
import androidx.compose.ui.test.assert
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import org.junit.Rule
import org.junit.Test
fun hasContentType(expected: ContentType): SemanticsMatcher =
SemanticsMatcher("SemanticsProperties.ContentType == $expected") { node ->
node.config.getOrNull(SemanticsProperties.ContentType) == expected
}
class LoginAutofillSemanticsTest {
@get:Rule
val composeTestRule = createComposeRule()
@Test
fun loginFieldsExposeExpectedAutofillContentTypes() {
composeTestRule.setContent {
LoginAutofillScreen(onAuthenticate = { _, _ -> })
}
composeTestRule
.onNodeWithText("Email or Username")
.assert(hasContentType(ContentType.EmailAddress + ContentType.Username))
composeTestRule
.onNodeWithText("Password")
.assert(hasContentType(ContentType.Password))
}
}
Once those instrumentation checks pass, the real validation happens on the physical device. Because Android UI hierarchy trees prevent coordinate drift compared to blind pixel tapping, Claude Code calls get_ui_hierarchy via ScreenSync MCP to locate the exact bounds of the Email or Username node, taps it with control_tap, and then inspects the OS-level autofill session state over ADB.
Driving Live Autofill Sessions and Diagnosing Failures with dumpsys autofill
Driving a live autofill session on physical Android hardware combines ScreenSync MCP's UI interaction tools with Android's cmd autofill and dumpsys autofill shell diagnostics. Claude Code focuses a field via control_tap, enables verbose framework logging, and inspects active session partitions, ignored views, and inline IME suggestion payloads.
In an interactive debugging session, you can instruct Claude Code directly from your repository:
"Launch the debug app on the connected Android phone, open the Sign In screen, enable verbose autofill logging via ADB, tap the email field, capture
get_ui_hierarchyandget_latest_screenshot, and inspectdumpsys autofillto see why no inline password suggestion appeared."
Under the hood, Claude Code pairs ScreenSync MCP tool calls with targeted ADB commands to isolate the root cause:
# 1. Switch Android's AutofillManagerService to verbose logging during QA
adb shell cmd autofill set log_level verbose
# 2. Clear stale sessions before starting a clean test pass
adb shell cmd autofill remove-all-sessions
# 3. Inspect active autofill sessions, bound service, and partitioned fields
adb shell dumpsys autofill
# 4. Filter specifically for UI / dropdown / inline presentation state
adb shell dumpsys autofill --ui-only
Notice how the 226-tool architecture of ScreenSync MCP maps cleanly to every phase of this investigation:
| Testing Phase | ScreenSync MCP Tool / Command | Execution Channel | What It Verifies for Autofill |
|---|---|---|---|
| 1. Focus Trigger | get_ui_hierarchy + control_tap |
ADB (hierarchy dump & input) | Locates exact field bounds and triggers onFocusChanged / notifyViewEntered |
| 2. Visual Confirmation | get_latest_screenshot |
MediaProjection (no root, no ADB) | Confirms whether the IME inline chip or floating dropdown rendered visibly |
| 3. System Binder State | adb shell dumpsys autofill |
ADB shell | Verifies AutofillService binding, Session IDs, fillRequest latency, and IGNORED reasons |
| 4. Runtime Log Triage | get_logcat |
ADB logcat stream | Captures AutofillManager, AutofillSession, and InlineSuggestionsRequest errors |
| 5. Form Entry Fallback | control_type |
ADB input | Tests manual typing when testing onSaveRequest with brand-new credentials |
| 6. Evidence Capture | record_screen |
MediaProjection / hub recording | Records flickering inline chips or race conditions during screen transitions |
| 7. Web / Hybrid Sync | web_* browser tools (197 tools) |
Chrome/Edge MV3 extension | Validates matching web passkey/autofill credentials in desktop Chrome tabs |
When dumpsys autofill reports No sessions even after control_tap focused the text field, Claude Code immediately knows the issue lies inside the app's view tree or Compose semantics—not in the password manager's stored credentials. Conversely, if dumpsys autofill shows an active session with fillResponse=null or inlineSuggestions=empty, the problem lies in the autofillHints / ContentType mapping, domain association (assetlinks.json), or the configured AutofillService state.
If you are comparing how ScreenSync MCP's MediaProjection capture plus ADB control stack differs from other Android MCP servers, this separation is critical: because get_latest_screenshot reads directly from MediaProjection without ADB screenshot overhead, Claude Code can watch transient system overlays—like an IME inline strip or the Save Password bottom sheet—at about 94 ms median LAN mirror latency without blocking the UI thread.
Testing Inline Keyboard Suggestions, Save Prompts, and Multi-Step Checkout Forms
Verifying end-to-end Android autofill requires testing three distinct user journeys: tapping an IME inline suggestion chip to populate credentials, triggering the system Save or Update Password dialog after manual entry, and testing multi-partition forms such as shipping address and credit card checkouts.
1. Testing IME Inline Suggestion Chips vs. Legacy Dropdowns
On Android 11 and higher, keyboards such as Gboard render autofill datasets inside the keyboard's suggestion strip rather than a floating popup window. This creates a subtle automation trap: get_ui_hierarchy on the app window alone will not always include nodes rendered inside the separate IME window, or the IME window may sit in a distinct accessibility window ID.
With ScreenSync MCP, Claude Code handles this reliably by combining structural inspection with visual verification:
- Tap the username field using
control_tapbased on coordinates fromget_ui_hierarchy. - Wait briefly for the keyboard and
InlineSuggestionsResponseto render, then callget_latest_screenshotto confirm the inline credential chip is visible in the keyboard strip. - Check
get_ui_hierarchyfor the IME window bounds or tap the inline chip coordinates viacontrol_tap, then re-readget_ui_hierarchyto assert that both the username and masked password fields populated simultaneously.
If your app suppresses autofill on sensitive screens using FLAG_SECURE, remember that MediaProjection respects secure flags by blanking secure surfaces—making dumpsys autofill --ui-only and get_logcat essential fallback signals when verifying masked password fields.
2. Verifying onSaveRequest and Explicit AutofillManager.commit()
The most common production bug in Compose and single-activity apps is a broken Save Password prompt. A user types a brand-new email and password manually, taps Create Account, and navigates to the home screen—yet Android never asks to save the credentials.
To test this deterministically with Claude Code:
# Reset autofill sessions and enable verbose logging
adb shell cmd autofill remove-all-sessions
adb shell cmd autofill set log_level verbose
Claude Code then drives the flow using control_tap and control_type with a fresh synthetic test email (such as [email protected]), taps the submit button, and immediately inspects get_logcat and get_latest_screenshot. Look for the AutofillSession commit event in get_logcat:
- If
commit()fired properly:logcatrecordscommit()followed byonSaveRequestsent to the boundAutofillService, andget_latest_screenshotcaptures the system Save Password bottom sheet. - If
commit()never fired: Usually the ViewModel cleared theTextFieldStateor popped the composable off the back stack beforeLocalAutofillManager.current?.commit()executed. Claude Code can inspect the KotlinonClickhandler in your repository, addautofillManager?.commit()before clearing state or triggering navigation, rebuild the APK, and re-verify on the phone in the same session.
When a user cancels a multi-step registration wizard midway, verify the inverse path: calling autofillManager?.cancel() prevents partial or invalid form drafts from triggering a bogus Save dialog.
3. Multi-Partition Forms: Shipping Addresses, Payment Cards, and OTPs
Checkout and onboarding screens often mix address fields, payment fields, and SMS one-time passcodes on sequential screens. Android groups fields into partitions (max_partitions), and mixing ContentType.PostalAddress with ContentType.CreditCardNumber inside an ungrouped container can confuse autofill heuristics. You can stress-test partition limits directly via ADB during QA:
# Temporarily constrain max partitions to surface grouping issues early
adb shell cmd autofill set max_partitions 10
adb shell cmd autofill set max_visible_datasets 3
If your signup flow follows credential autofill with an SMS verification screen, pair this workflow with our guide on testing Android SMS and OTP verification and our engineering guide to automated form filling without root so Claude Code validates the full transition from password autofill to OTP auto-fill without breaking session state.
Building a Deterministic Test AutofillService and Credential Manager Interop Suite
Relying exclusively on a live Google Password Manager account in CI or shared QA phones introduces test flakiness from account sync, rate limits, and biometric lock screens. Building a debug-only stub AutofillService alongside Credential Manager integration tests lets Claude Code run repeatable autofill assertions across any physical Android device.
In a debug build variant (src/debug/), you can implement a lightweight TestAutofillService extending android.service.autofill.AutofillService that parses the incoming AssistStructure, asserts that expected autofillHints or Compose ContentType hints are present, and returns deterministic test datasets—logging every onFillRequest and onSaveRequest payload straight to logcat:
package com.example.app.debug.autofill
import android.app.assist.AssistStructure
import android.os.CancellationSignal
import android.service.autofill.AutofillService
import android.service.autofill.Dataset
import android.service.autofill.FillCallback
import android.service.autofill.FillRequest
import android.service.autofill.FillResponse
import android.service.autofill.SaveCallback
import android.service.autofill.SaveInfo
import android.service.autofill.SaveRequest
import android.util.Log
import android.view.autofill.AutofillId
import android.view.autofill.AutofillValue
import android.widget.RemoteViews
class QaTestAutofillService : AutofillService() {
override fun onFillRequest(
request: FillRequest,
cancellationSignal: CancellationSignal,
callback: FillCallback
) {
val structure: AssistStructure = request.fillContexts.lastOrNull()?.structure ?: run {
callback.onSuccess(null)
return
}
val parsed = mutableMapOf<String, AutofillId>()
traverseStructure(structure, parsed)
Log.i(TAG, "onFillRequest fields=${parsed.keys}")
val usernameId = parsed["username"] ?: parsed["emailAddress"]
val passwordId = parsed["password"]
if (usernameId == null && passwordId == null) {
callback.onSuccess(null)
return
}
val presentation = RemoteViews(packageName, android.R.layout.simple_list_item_1).apply {
setTextViewText(android.R.id.text1, "QA Test Account ([email protected])")
}
val datasetBuilder = Dataset.Builder(presentation)
usernameId?.let { datasetBuilder.setValue(it, AutofillValue.forText("[email protected]")) }
passwordId?.let { datasetBuilder.setValue(it, AutofillValue.forText("TestPass!2026")) }
val responseBuilder = FillResponse.Builder().addDataset(datasetBuilder.build())
val requiredIds = listOfNotNull(usernameId, passwordId).toTypedArray()
if (requiredIds.isNotEmpty()) {
val saveInfo = SaveInfo.Builder(
SaveInfo.SAVE_DATA_TYPE_USERNAME or SaveInfo.SAVE_DATA_TYPE_PASSWORD,
requiredIds
).build()
responseBuilder.setSaveInfo(saveInfo)
}
callback.onSuccess(responseBuilder.build())
}
override fun onSaveRequest(request: SaveRequest, callback: SaveCallback) {
val latestStructure = request.fillContexts.lastOrNull()?.structure
val savedFields = mutableMapOf<String, AutofillId>()
if (latestStructure != null) {
traverseStructure(latestStructure, savedFields)
}
Log.i(TAG, "onSaveRequest captured=${savedFields.keys}")
callback.onSuccess()
}
private fun traverseStructure(
structure: AssistStructure,
out: MutableMap<String, AutofillId>
) {
for (i in 0 until structure.windowNodeCount) {
val root = structure.getWindowNodeAt(i).rootViewNode
collectNodes(root, out)
}
}
private fun collectNodes(
node: AssistStructure.ViewNode,
out: MutableMap<String, AutofillId>
) {
val id = node.autofillId
val hints = node.autofillHints
if (id != null && hints != null) {
for (hint in hints) {
out[hint] = id
}
}
for (i in 0 until node.childCount) {
collectNodes(node.getChildAt(i), out)
}
}
companion object {
private const val TAG = "QaTestAutofillService"
}
}
Once installed in a debug build, Claude Code can bind the stub service on the physical test phone via ADB, execute a complete autofill fill-and-save pass through ScreenSync MCP, verify the QaTestAutofillService entries via get_logcat, and restore the default autofill provider afterward:
# Inspect current autofill service so it can be restored after the test
adb shell settings get secure autofill_service
# Bind the debug QaTestAutofillService for deterministic testing
adb shell settings put secure autofill_service com.example.app.debug/com.example.app.debug.autofill.QaTestAutofillService
# Restore original provider after test completion
adb shell settings put secure autofill_service com.google.android.gms/com.google.android.gms.autofill.service.AutofillService
If your app also uses androidx.credentials alongside autofill, make sure your test matrix covers Credential Manager + Autofill interoperability as well as testing Android biometrics when biometric unlock gates saved passwords. When a field links a PendingGetCredentialHandle to a view or triggers Credential Manager on focus, verify that dismissing the Credential Manager sheet cleanly falls back to keyboard IME autofill suggestions rather than leaving the keyboard suppressed.
Cross-Surface Auth Flows: Combining Android Autofill and Chrome Extension MCP Tools
Many production login, OAuth, and digital-asset-link flows span both an Android app and a web browser tab—such as verifying /.well-known/assetlinks.json for shared web-to-app password autofill or testing Custom Tabs sign-in redirects. ScreenSync MCP exposes 197 web_* browser tools alongside its 29 phone and desktop tools, letting Claude Code validate both sides in one workflow.
For Android password managers to autofill credentials shared with your web domain, your site must serve a valid Digital Asset Links file (https://your-domain.example/.well-known/assetlinks.json) containing both the delegate_permission/common.handle_all_urls and delegate_permission/common.get_login_creds relations with the exact SHA-256 certificate fingerprint of your Android APK.
With the ScreenSync MCP browser extension (Chrome/Edge MV3, v1.14.4), Claude Code can inspect your staging web login form and assetlinks.json in your real browser tab—complete with a human approval prompt for risky browser actions—while simultaneously triggering the Android app's autofill flow on your physical phone through the same local hub. That unified 226-tool MCP session eliminates context switching between browser DevTools, Android Studio, and terminal ADB scripts whenever cross-domain credential sharing breaks.
Production Checklist for Auditing Android Autofill Before Release
Auditing Android autofill before release requires verifying semantic field hints, explicit session commit and cancel lifecycles, IME inline suggestion rendering, and Credential Manager fallback on a real phone. Combining Compose SemanticsMatcher tests with ScreenSync MCP live inspection eliminates silent cross-process password manager regressions before production rollout.
- Semantic Coverage Audit: Confirm every login, signup, change-password, address, and payment input declares explicit Jetpack Compose
Modifier.contentType(...)or XMLandroid:autofillHintsattributes without conflictingimportantForAutofillflags. - Combined Hint Validation: Verify fields accepting either email or username expose
ContentType.Username + ContentType.EmailAddressso stored credentials match regardless of how the user originally registered. - Explicit Commit & Cancel Paths: Confirm
LocalAutofillManager.current?.commit()executes before state clearing or navigation on submission, andcancel()runs when users abort a multi-step flow. - IME Inline & Dropdown Verification: Test on a physical phone with
get_latest_screenshotandget_ui_hierarchyto confirm keyboard inline suggestion chips render without clipping and populate all linked fields on tap. - Save & Update Prompt Verification: Run a fresh credential entry pass with
adb shell cmd autofill set log_level verboseand verifyonSaveRequestfires inget_logcatand renders the system Save dialog. - Credential Manager Fallback Check: Confirm dismissing a Credential Manager passkey or federated sign-in prompt cleanly restores keyboard autofill access without trapping focus.
- Domain Sharing Verification: Validate
delegate_permission/common.get_login_credsinassetlinks.jsonfor shared web and Android credentials.
Ready to catch autofill regressions on real Android hardware before your users hit them? Explore ScreenSync MCP to install the free Android app from Google Play, configure the local desktop hub, and connect Claude Code to your test phone in minutes.
Next steps
Questions, answered
Why do Jetpack Compose autofill fields fail to trigger password manager prompts on physical Android devices?
Jetpack Compose autofill requires semantic ContentType metadata via Modifier.semantics or Modifier.contentType alongside an enabled system AutofillService. Missing ContentType annotations, broken AutofillManager.commit() calls on custom navigation transitions, or suppressed IME inline suggestions prevent password managers from recognizing login, signup, and checkout fields.
How does ScreenSync MCP inspect Android autofill prompts without root access?
ScreenSync MCP captures the live Android display through the system MediaProjection API after user consent each session, requiring no root and no ADB for screen capture. For multi-window autofill sheets and IME inline suggestion strips, ScreenSync MCP pairs live frames with UI hierarchy trees and logcat telemetry.
Does controlling autofill flows in Claude Code require ADB or USB debugging?
Yes, ScreenSync MCP control tools such as control_tap, control_type, and control_swipe execute through ADB from the desktop hub over USB or Android wireless debugging. Screen capture relies solely on MediaProjection without ADB or root, while interactive device automation and dumpsys autofill checks use the ADB channel.
How can Claude Code verify that Compose TextField nodes expose the right ContentType semantics?
Claude Code combines local Compose UI SemanticsMatcher unit tests with live device inspection via ScreenSync MCP. On physical hardware, Claude Code triggers field focus with control_tap, queries get_ui_hierarchy and adb shell dumpsys autofill, and confirms that virtual view structures emit the expected semantic autofill hints.
What is the difference between Android Autofill Framework testing and Credential Manager passkey testing?
Android Autofill Framework handles structured form hints, saved passwords, addresses, and payment cards through AutofillManager and bound AutofillService providers. Credential Manager unifies passkeys, federated sign-in, and legacy passwords inside androidx.credentials, increasingly routing suggestions directly into keyboard IME inline strips and autofill drop-downs.
Why does the Android system Save Password dialog sometimes never appear after tapping Submit?
The Save Password prompt fails to appear when an app navigates away before AutofillManager commits the session context, clears input state prematurely, or omits importantForAutofill flags. Explicitly calling LocalAutofillManager.current?.commit() during form submission ensures Android finalizes the autofill session and notifies the active provider.
Can ScreenSync MCP test inline keyboard autofill chips alongside WebView login forms?
Yes, ScreenSync MCP provides 29 phone and desktop tools plus 197 browser tools, totaling 226 MCP tools across native Android and Chrome or Edge tabs. Claude Code can test native Android IME inline autofill strips while validating matching web authentication flows through the browser extension.
Where are screenshots and autofill form frames sent when using ScreenSync MCP?
Screen frames stream directly from the Android device to your local ScreenSync MCP desktop hub over your local network, never passing through EpsolDev servers. However, any screenshot explicitly requested by Claude Code or another MCP client via get_latest_screenshot is transmitted to that client's configured AI model provider.




