[{"data":1,"prerenderedAt":20},["ShallowReactive",2],{"blog-post-en-mirror-control-android-phoma-windows":3},{"slug":4,"lang":5,"title":6,"summary":7,"date":8,"tags":9,"tag_slugs":15,"thumbnail_url":16,"translations":17,"body":18,"asset_base":19},"mirror-control-android-phoma-windows","en","Mirror and Control an Android Phone from Phoma on Windows","Learn how to use Phoma screen mirroring on Windows to watch, verify, and control Android app flows while building reliable visual automation.","2026-11-18",[10,11,12,13,14],"android","phoma","screen-mirroring","windows","qa",[10,11,12,13,14],"https://blog-api.phomaapp.com/api/blog/posts/mirror-control-android-phoma-windows/thumbnail.svg?lang=en",[5],"Screen mirroring gives you a live view of the Android phone while a Phoma flow runs. It is especially useful when a step looks correct in the flow builder but behaves differently on the device. Instead of guessing from logs or screenshots, you can watch the screen, confirm the app state, and adjust the flow with confidence.\n\n## Why mirroring helps when building Android flows\n\nPhoma flows are visual, but the phone screen is where the real feedback lives. Because Phoma runs on your own Windows PC and phones, the mirror is a local debugging view that helps you answer questions quickly:\n\n- Did the tap land on the intended control?\n- Did the app finish loading before the next step ran?\n- Did the keyboard cover the field you wanted to type into?\n- Did a dialog appear that the flow did not expect?\n- Does the screen look different on this phone because of size, theme, or font scale?\n\nThis is valuable for QA testers checking app behavior, operations staff repeating the same task, and developers validating a flow before sharing it with a team.\n\n## Connect the phone first\n\nBefore mirroring, make sure Phoma can see the phone. For a USB connection, enable USB debugging on the Android phone and accept the debugging prompt when it appears. For Wi-Fi, use wireless debugging and pairing as described in the wireless ADB guide. The phone should be unlocked and awake.\n\nIf the phone is not visible in Phoma, fix the connection first. A mirror cannot help if the device is not connected. Once the phone appears, you can open the mirror and start watching the screen.\n\n### Start the mirror in Phoma\n\nSelect the connected phone in Phoma and open the screen mirror. Keep the phone nearby, because you may need to unlock it, dismiss a system prompt, or rotate the screen. The mirrored view is a control surface: you can click or tap in the mirror to act on the phone, and you can type text when a text field is active.\n\n## Use the mirror to verify each visual step\n\nWhen building a flow, watch the mirrored screen as each step runs. This turns abstract step names into observable behavior.\n\n### Confirm tap targets\n\nA tap step may have the right element selected, but the visible control may be smaller than expected. In the mirror, check whether the tap opens the correct screen. If the app scrolls slightly, the target may move. If the tap hits a parent container instead of a button, the flow may appear to do nothing.\n\nIf this happens, pause the flow, inspect the app layout, and choose a more specific element. The mirror helps you see the symptom; the element tree helps you fix the cause.\n\n### Check timing around transitions\n\nMany Android flows fail not because the step is wrong, but because the app has not reached the expected state. Use the mirror to observe splash screens, animations, network requests, and dialog transitions. Then add a wait step for the element or text that proves the screen is ready.\n\nFor example, if a results screen shows a loading spinner before content appears, do not continue immediately after tapping Search. Wait until the results text or a known element is visible.\n\n### Watch text entry behavior\n\nTyping text on Android can behave differently depending on the keyboard, input method, and field type. In the mirror, confirm that the text appears in the correct field. Watch for autocapitalization, autocorrect, password masking, or a keyboard covering the input.\n\nIf the keyboard covers the field, scroll the screen or adjust the app state before typing. If the field clears unexpectedly, check whether the app requires a different event, such as tapping the field first or pressing the keyboard action key.\n\n## Control the phone without losing context\n\nMirroring is not only for observation. You can use it to control the phone while you build or debug a flow.\n\n- Tap controls in the mirror to reproduce a manual path.\n- Use the back key or on-screen navigation to recover from an unexpected screen.\n- Open and close the app to test fresh-start behavior.\n- Rotate the device if the app supports landscape mode.\n- Keep the phone awake during long flows to avoid screen sleep interruptions.\n\nA practical habit is to mirror one phone while building a flow, then test the same flow on another phone to see whether the behavior is device-specific.\n\n## Troubleshoot common mirroring problems\n\n### Black or frozen mirror\n\nIf the mirror is black, confirm the phone screen is on and unlocked. Some phones restrict screen capture when a secure window is displayed, such as a password field or protected video. In that case, the phone may show content that the mirror cannot display. Use the phone itself to verify that portion of the flow.\n\n### Lag or delayed taps\n\nLag can come from USB power management, Wi-Fi interference, or a busy PC. Try a wired USB connection for critical debugging. Close unnecessary apps on the PC. If the phone is on Wi-Fi, move it closer to the router or use a 5 GHz network if available.\n\n### Wrong aspect ratio or clipped screen\n\nIf the mirrored screen is clipped, check the phone rotation and display settings. Phoma should show the current screen orientation, but some apps force orientation changes. Rotate the phone back to the expected orientation before continuing.\n\n### Phone disconnects during a run\n\nIf the phone disconnects, the flow will stop. Check the USB cable, disable aggressive battery saver for the phone, and avoid letting the phone sleep. For scheduled or unattended runs, keep the phone powered and connected.\n\n## Use mirroring with multiple test phones\n\nWhen you manage several Android phones, mirroring helps you compare behavior without guessing. Label each phone clearly, such as primary test, backup test, or small-screen test. Open the mirror for the phone you are currently checking, then switch to another phone when you need to compare screens.\n\nThis is useful for smoke checks because the same flow can behave differently across Android versions, screen sizes, and manufacturer skins. The mirror gives you a quick visual record of the difference. If you need evidence, capture a screenshot from the mirrored view or from the phone itself.\n\n## A simple debugging routine\n\nUse this routine when a Phoma flow fails on a real device:\n\n1. Connect the phone and open the mirror.\n2. Run the flow until the failing step.\n3. Watch what the app displays before the step.\n4. Compare the visible state with the expected element or text.\n5. Adjust the flow with a wait, condition, or better element target.\n6. Run the flow again while watching the mirror.\n\n```text\nOpen app\nWait for home screen\nTap Search\nType test query\nWait for results\nCapture screenshot\n```\n\nThis routine is faster than repeatedly editing steps blindly. The mirror shows the moment where the app and the flow disagree.\n\n## When to use the element tree instead of the mirror\n\nMirroring shows what is visible, but it does not always show the structure behind the screen. If a tap is unreliable, use the app layout or element tree to inspect the control hierarchy. Choose selectors that match the visible element and remain stable after small app updates.\n\nA good rule is: use the mirror to understand the behavior, then use the element tree to make the step precise.\n\n## Final checklist\n\nBefore sharing a flow with a teammate, watch it once through the mirror. Confirm that:\n\n- the app opens to the expected screen\n- each tap lands on the intended control\n- text appears in the correct field\n- waits cover slow transitions\n- the flow recovers from common dialogs\n- the final screen matches the expected result\n\nScreen mirroring is a practical bridge between visual flow building and real Android behavior. It helps you see failures as they happen, adjust steps with evidence, and keep your Phoma flows reliable across the phones you use every day.\n","https://blog-api.phomaapp.com/api/blog/posts/mirror-control-android-phoma-windows/assets",1796035639825]