{"id":13541,"date":"2026-11-26T01:58:01","date_gmt":"2026-11-26T01:58:01","guid":{"rendered":"https:\/\/www.hovatek.com\/blog\/?p=13541"},"modified":"2026-11-26T01:58:01","modified_gmt":"2026-11-26T01:58:01","slug":"can-adb-automate-a-real-android-app-without-root-my-galaxy-a12-mymtn-and-momo-checkout-experiment","status":"publish","type":"post","link":"https:\/\/www.hovatek.com\/blog\/can-adb-automate-a-real-android-app-without-root-my-galaxy-a12-mymtn-and-momo-checkout-experiment\/","title":{"rendered":"Can ADB Automate a Real Android App Without Root? My Galaxy A12, myMTN and MoMo Checkout Experiment"},"content":{"rendered":"<p style=\"margin: 0 0 20px;line-height: 1.8\">After several unsuccessful attempts to obtain stable root access on my Samsung Galaxy A12 (SM-A125F), I decided to test a different question: <strong>how far could I automate a real Android application using ADB alone, without root?<\/strong> I chose the myMTN Ghana application and a GHS 1 Flexi Mashup purchase flow as a practical test. My goal was not to bypass Mobile Money security; it was to learn whether a Windows PowerShell script could read the application&#8217;s accessible interface, tap the correct controls, and follow a live transaction workflow with observable results.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The outcome exceeded my initial expectations. After several revisions, my script successfully launched myMTN, selected a GHS 1 Flexi Mashup bundle, chose MoMo, reached the payment screen, triggered MTN&#8217;s real payment-authorization dialog, submitted a deliberately incorrect test PIN once, detected the subsequent Yes\/No prompt and sent my chosen <strong>No<\/strong> response. The phone ultimately displayed <strong>&#8220;Incorrect Mobile Money PIN&#8221;<\/strong>. No successful charge or completed subscription was demonstrated.<\/p>\n<blockquote class=\"wp-block-quote\" style=\"border-left: 4px solid #eab308;padding: 12px 20px;margin: 28px 0 32px;background: #fffbea\">\n<p style=\"margin: 0 0 20px;line-height: 1.8\"><strong>Scope of this result:<\/strong> This is a documented UI-automation experiment on my own device and account, not a claim of successful payment, PIN bypass, or access to anyone else&#8217;s MoMo account. The network and application still enforced their own authorization logic. I used an incorrect PIN intentionally, but the test does establish that a correct PIN would have completed the purchase.<\/p>\n<\/blockquote>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">1. Why I Tried ADB Instead of Rooting Again<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">In my earlier Galaxy A12 investigations, I explored boot image patching, DFT Pro, vbmeta modifications and firmware recovery. Those experiments taught me the difference between a tool reporting a successful operation and Android actually behaving as expected. This time I wanted a lower-risk approach: use the Android Debug Bridge (ADB) on a normally booted device with USB debugging authorized.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">ADB can launch activities, send key events, tap screen coordinates and request a UI hierarchy from Android&#8217;s accessibility\/UI testing infrastructure. That does not grant root permission, but it may be enough to automate ordinary visible application controls. I used <strong>Windows PowerShell<\/strong>, Google&#8217;s <strong>platform-tools<\/strong> and a physical <strong>Samsung Galaxy A12 SM-A125F running Android 12<\/strong>. The device was connected over USB and I explicitly authorized USB debugging.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/01-platform-tools-folder.png\" alt=\"Windows platform-tools folder containing adb.exe before testing\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 01. Windows platform-tools folder containing adb.exe before testing <em>(Captured 2026-11-25 at 11:35)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/02-scrcpy-connected-galaxy-a12.png\" alt=\"scrcpy showing the connected Samsung Galaxy A12 before launching myMTN\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 02. scrcpy showing the connected Samsung Galaxy A12 before launching myMTN <em>(Captured 2026-11-25 at 11:43)<\/em><\/p>\n<\/div>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">2. Starting With MTN Pulse USSD<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">My first test was the MTN Pulse USSD menu, <code>*567#<\/code>. I opened the dialer with the encoded USSD string and initiated the call using ADB:<\/p>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>.\\adb.exe shell am start -a android.intent.action.DIAL -d \"tel:%2A567%23\"\r\n.\\adb.exe shell input keyevent 5<\/code><\/pre>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/03-mtn-pulse-dialer-ussd.png\" alt=\"Samsung dialer populated with MTN Pulse USSD *567#\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 03. Samsung dialer populated with MTN Pulse USSD *567# <em>(Captured 2026-11-25 at 11:45)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The first prompt invited me to proceed to a bundle purchase or select <code>99<\/code> for more options. I submitted a menu choice with:<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/04-first-mtn-pulse-dialog.png\" alt=\"MTN Pulse initial USSD menu offering 1 and 99\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 04. MTN Pulse initial USSD menu offering 1 and 99 <em>(Captured 2026-11-25 at 11:46)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/05-mtn-followup-menu.png\" alt=\"Next MTN network menu after submitting a USSD option\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 05. Next MTN network menu after submitting a USSD option <em>(Captured 2026-11-25 at 11:48)<\/em><\/p>\n<\/div>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>.\\adb.exe shell input text 99\r\n.\\adb.exe shell input keyevent 66<\/code><\/pre>\n<h3 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">Reading the response through Android&#8217;s UI hierarchy<\/h3>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The response was a real, interactive USSD dialog. To read its contents, I dumped the current UI tree and transferred the XML to Windows:<\/p>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>.\\adb.exe shell uiautomator dump \/sdcard\/window.xml\r\n.\\adb.exe pull \/sdcard\/window.xml .\\mtn-menu.xml<\/code><\/pre>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/06-android-ui-hierarchy-command.png\" alt=\"PowerShell UIAutomator XML dump used to inspect the MTN menu\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 06. PowerShell UIAutomator XML dump used to inspect the MTN menu <em>(Captured 2026-11-25 at 11:53)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/07-ussd-xml-in-notepad.png\" alt=\"Android phone UI hierarchy XML opened in Notepad++ exposing dialog resource IDs\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 07. Android phone UI hierarchy XML opened in Notepad++ exposing dialog resource IDs <em>(Captured 2026-11-25 at 11:57)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The XML exposed the dialog text under <code>com.android.phone:id\/message<\/code>, its input field under <code>com.android.phone:id\/input_field<\/code>, and the <code>Send<\/code> and <code>Cancel<\/code> buttons. That was my first useful result: <strong>I could inspect and respond to the live MTN menu using ADB without root.<\/strong> I developed and tested several revisions of this early USSD automation before moving to the app itself. The following captures show the early script errors, the successful USSD session, the interactive numbered-choice checks and the follow-up menu. They are not screenshots of an automatic purchase.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/09-early-powershell-script-error.png\" alt=\"Early PowerShell script failure before the tested USSD revision\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 08. Early PowerShell script failure before the tested USSD revision <em>(Captured 2026-11-25 at 12:04)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/10-ussd-automation-test.png\" alt=\"USSD session running with ADB and PowerShell\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 09. USSD session running with ADB and PowerShell <em>(Captured 2026-11-25 at 12:09)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/11-interactive-script-purchase-guard.png\" alt=\"Interactive USSD script showing actual menu choices and purchase guard\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 10. Interactive USSD script showing actual menu choices and purchase guard <em>(Captured 2026-11-25 at 12:17)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/12-interactive-ussd-choice.png\" alt=\"MTN Pulse USSD automation interacting with a numbered network menu\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 11. MTN Pulse USSD automation interacting with a numbered network menu <em>(Captured 2026-11-25 at 12:18)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/13-mtn-pulse-followup-instructions-privacy-clean.png\" alt=\"Interactive MTN Pulse flow revealing the app-based bundle option\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 12. Interactive MTN Pulse flow revealing the app-based bundle option <em>(Captured 2026-11-25 at 12:19)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/08-powershell-xml-parsing.png\" alt=\"PowerShell parsing Android XML to extract live USSD menu text\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 13. PowerShell parsing Android XML to extract live USSD menu text <em>(Captured 2026-11-25 at 11:58)<\/em><\/p>\n<\/div>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">3. The Black-Screen Problem With myMTN and scrcpy<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">I launched myMTN with ADB using its package name, <code>com.mtngh.mymtn<\/code>:<\/p>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>.\\adb.exe shell monkey -p com.mtngh.mymtn -c android.intent.category.LAUNCHER 1<\/code><\/pre>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">At this point, I encountered a confusing problem: the myMTN window appeared <strong>completely black in scrcpy<\/strong>, while the application remained visible on the physical phone. ADB-based screenshots were also black. That behavior is consistent with a protected display surface, although I did not independently verify the precise implementation. It meant I could not rely on screen images to guide the automation.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/14-black-mymtn-scrcpy-window-privacy-clean.png\" alt=\"myMTN appears as a black screen in scrcpy even though the app is active\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 14. myMTN appears as a black screen in scrcpy even though the app is active <em>(Captured 2026-11-25 at 12:22)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/15-foreground-mymtn-adb-detection-privacy-clean.png\" alt=\"ADB confirms myMTN MainActivity is in the foreground while scrcpy remains black\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 15. ADB confirms myMTN MainActivity is in the foreground while scrcpy remains black <em>(Captured 2026-11-25 at 12:24)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/16-protected-app-screenshot-test.png\" alt=\"Windows folder containing the black ADB screenshot produced while myMTN is active\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 16. Windows folder containing the black ADB screenshot produced while myMTN is active <em>(Captured 2026-11-25 at 12:25)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Fortunately, <code>uiautomator dump<\/code> still returned meaningful elements from the application&#8217;s interface. It included button labels, content descriptions, enabled states and element bounds. For example, the Home screen exposed navigation controls such as <code>Home<\/code> and <code>Buy<\/code>. I could identify a clickable element by its content description and calculate the center of its reported bounds, rather than depending entirely on hard-coded taps.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/17-mymtn-accessibility-dump-privacy-clean.png\" alt=\"UIAutomator reads myMTN Android interface hierarchy despite black screencast\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 17. UIAutomator reads myMTN Android interface hierarchy despite black screencast <em>(Captured 2026-11-25 at 12:28)<\/em><\/p>\n<\/div>\n<blockquote class=\"wp-block-quote\" style=\"border-left: 4px solid #eab308;padding: 12px 20px;margin: 28px 0 32px;background: #fffbea\">\n<p style=\"margin: 0 0 20px;line-height: 1.8\"><strong>Technical distinction:<\/strong> A black scrcpy window does not automatically mean the application cannot be controlled using ADB. Screen capture and UI hierarchy inspection are different capabilities. Equally, the fact that the UI tree was readable in my test does not mean every protected app will expose the same information.<\/p>\n<\/blockquote>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">4. Finding the Real Route to Flexi Mashup<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">I initially thought the Home page&#8217;s <code>Mashup<\/code> shortcut would save time. It did not: that shortcut opened MTN Pulse rather than the purchase screen I needed. I returned to the verified route through the app&#8217;s bottom <strong>Buy<\/strong> tab. That small correction matters because two controls with similar labels may lead to different destinations.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The route I successfully tested was:<\/p>\n<ol class=\"wp-block-list\">\n<li>Open <strong>myMTN<\/strong> and select <strong>Buy<\/strong>.<\/li>\n<li>Select <strong>Mashup<\/strong> from the Buy screen.<\/li>\n<li>Open <strong>Flexi Mashup Bundles<\/strong>.<\/li>\n<li>Enter <strong>GHS 1<\/strong> in the amount field.<\/li>\n<li>Select the option showing <strong>50.89 MB data and 0 minutes<\/strong> in this session.<\/li>\n<li>Keep <strong>Myself<\/strong> as the recipient.<\/li>\n<li>Switch the payment method from <strong>Airtime<\/strong> to <strong>MoMo<\/strong>.<\/li>\n<li>Continue to <strong>Review and Pay<\/strong>.<\/li>\n<\/ol>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">There was another practical obstacle: <code>adb shell input text 1<\/code> did not work reliably in the amount field, but sending the Android key event <code>KEYCODE_1<\/code> did. After entering the amount, the screen displayed the expected 50.89 MB option and enabled the Continue button.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/18-mymtn-navigation-ui-debugging.png\" alt=\"PowerShell and myMTN black screencast during form entry debugging\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 18. PowerShell and myMTN black screencast during form entry debugging <em>(Captured 2026-11-25 at 12:38)<\/em><\/p>\n<\/div>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>.\\adb.exe shell input keyevent KEYCODE_1<\/code><\/pre>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">This is one reason I tested each step against fresh UI XML rather than assuming that commands which work in one Android screen will behave identically in another.<\/p>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">5. Why the Early Scripts Kept Stopping<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The PowerShell scripts needed a number of corrections before they became reliable. I retained representative failure captures because the final working code is easier to evaluate when the path to the fix is visible. Early revisions encountered PowerShell variable errors, ordinary ADB output being treated as a failure, and a homepage detector that sometimes reported the navigation was missing when the app was actually displaying it. I also observed a <code>Location request timed out<\/code> toast on the phone, but later XML inspection showed that the Home and Buy controls were available. I therefore did not treat the location toast as the proven cause of the automation failure.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/19-uiautomator-not-idle-retry-privacy-clean.png\" alt=\"UIAutomator failed to get idle state before a later successful XML dump\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 19. UIAutomator failed to get idle state before a later successful XML dump <em>(Captured 2026-11-25 at 12:49)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/20-powershell-home-variable-error.png\" alt=\"PowerShell script update failed because of incorrect variable usage\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 20. PowerShell script update failed because of incorrect variable usage <em>(Captured 2026-11-25 at 13:03)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/21-v51-home-not-visible.png\" alt=\"myMTN navigation detection prematurely stopped in v5.1\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 21. myMTN navigation detection prematurely stopped in v5.1 <em>(Captured 2026-11-25 at 13:04)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Simply increasing the wait time was not a complete fix. The successful approach was to <strong>wait for specific screen elements, verify the expected page and stop if the page was not what the script anticipated<\/strong>. I kept an approximate 10-second timeout for normal screen checks, acknowledging that individual UI scans could take longer. The script also checked whether MoMo was actually selected before continuing.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/22-v53-screen-wait-timeout-privacy-clean.png\" alt=\"v5.3 ten-second wait did not recognize the Home navigation despite a loaded app\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 22. v5.3 ten-second wait did not recognize the Home navigation despite a loaded app <em>(Captured 2026-11-25 at 13:11)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">By version <strong>5.4<\/strong>, the navigation worked end to end: the console reported <code>SUCCESS: GHS 1 review screen reached with MoMo selected.<\/code> That was the first reproducible app-checkout milestone.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/23-v54-successful-checkout.png\" alt=\"v5.4 PowerShell log reaching GHS 1 Review and Pay with MoMo selected\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 23. v5.4 PowerShell log reaching GHS 1 Review and Pay with MoMo selected <em>(Captured 2026-11-25 at 13:22)<\/em><\/p>\n<\/div>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">6. Extending the Test to a Real MoMo Authorization Prompt<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">I then tested what happened after the checkout&#8217;s <strong>Make Payment<\/strong> button was pressed. With the correct GHS 1 and MoMo review screen visible, one ADB tap initiated an actual Mobile Money authorization request. Android presented the message:<\/p>\n<blockquote class=\"wp-block-quote\" style=\"border-left: 4px solid #eab308;padding: 12px 20px;margin: 28px 0 32px;background: #fffbea\">\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Authorize payment of GHS 1.00. Fee: GHS 0.00. Tax: 0. Enter MM PIN to continue.<\/p>\n<\/blockquote>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The dialog came from <code>com.android.phone<\/code>, not a normal myMTN content view. Its UI hierarchy identified the message as <code>com.android.phone:id\/message<\/code>, the input as <code>com.android.phone:id\/input_field<\/code>, and the confirmation button as <code>android:id\/button1<\/code>. This demonstrated that the payment request had reached the phone&#8217;s real network-authorization interface.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/24-live-momo-dialog-xml-dump.png\" alt=\"Android UI dump captured following Make Payment and MoMo authorization initiation\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 24. Android UI dump captured following Make Payment and MoMo authorization initiation <em>(Captured 2026-11-25 at 13:26)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">I deliberately kept the experiment to my own account. To test the console workflow without risking an intended subscription, I chose to submit an <strong>incorrect<\/strong> MoMo PIN. Later revisions of the script prompted for a masked PIN in PowerShell and sent it once, without automatic retries. I do <strong>not<\/strong> recommend ADB-based PIN entry for routine payments: masked terminal input does not make the ADB channel a protected banking input method, and failed authentication attempts may cause account restrictions.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/25-v56-payment-step-prompt.png\" alt=\"v5.6 checkout stopped for a manual PAY ONCE prompt\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 25. v5.6 checkout stopped for a manual PAY ONCE prompt <em>(Captured 2026-11-25 at 13:38)<\/em><\/p>\n<\/div>\n<hr style=\"border: 0;border-top: 1px solid #e7e9ed;margin: 12px auto 32px;max-width: 82%\" \/>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/26-v57-console-pin-prompt-issue.png\" alt=\"v5.7 stopped PIN entry because the prompt required a keyword\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 26. v5.7 stopped PIN entry because the prompt required a keyword <em>(Captured 2026-11-25 at 13:42)<\/em><\/p>\n<\/div>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">7. The Final MTN Yes\/No Question<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Following PIN submission, the phone displayed another USSD-like network dialog. This alone did not prove that the PIN was accepted:<\/p>\n<blockquote class=\"wp-block-quote\" style=\"border-left: 4px solid #eab308;padding: 12px 20px;margin: 28px 0 32px;background: #fffbea\">\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Do you want to approve the transaction &#8211;<br \/>1) Yes<br \/>2) No<\/p>\n<\/blockquote>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Version <strong>5.9<\/strong> added a final decision prompt with the choices <code>YES<\/code>, <code>NO<\/code> and <code>LEAVE<\/code>. The script did not make the choice itself. For my test, I explicitly entered <strong>NO<\/strong>. The console logged that it submitted the final No response once.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/27-v58-masked-pin-and-approval.png\" alt=\"v5.8 masked PowerShell PIN submission with Yes No final authorization on phone\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 27. v5.8 masked PowerShell PIN submission with Yes No final authorization on phone <em>(Captured 2026-11-26 at 01:08)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The unexpected detail came immediately afterward. The script could no longer detect the expected network dialog, but the phone itself displayed a clear response. The image below contains both the PowerShell trace and the phone message:<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/28-v59-incorrect-pin-phone.png\" alt=\"v5.9 phone showing Incorrect Mobile Money PIN after deliberately wrong PIN\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 28. v5.9 phone showing Incorrect Mobile Money PIN after deliberately wrong PIN <em>(Captured 2026-11-26 at 01:15)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">This is why I prefer to publish the visible outcome rather than rely only on a script&#8217;s final message. The script said it had sent <strong>No<\/strong>, and its follow-up screen detection found no matching dialog. The physical phone supplied the stronger evidence of the result: <strong>incorrect PIN<\/strong>. The exact order and handling of the network prompts is an observation from this session, not a guarantee that another subscriber, app build or network session will behave identically.<\/p>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">8. Reviewing the Successful v5.9 Console Log<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The last tested script automated the following stages: screen detection, Buy navigation, Mashup selection, GHS 1 amount entry, MoMo payment selection, Make Payment, PIN prompt recognition, one PIN submission, final approval prompt recognition and one explicit No response.<\/p>\n<div style=\"clear: both;display: block;margin: 36px auto 46px;padding: 16px 14px 18px;border: 1px solid #e2e6ec;border-radius: 6px;background: #f8fafc;max-width: 860px\">\n<p style=\"margin: 0 0 14px;text-align: center;line-height: 1\"><img decoding=\"async\" style=\"display: block;width: auto;max-width: 100%;height: auto;margin: 0 auto;border: 0\" src=\"https:\/\/hovatek.com\/blog\/bpyeki\/uploads\/2026\/11\/29-v59-final-powershell-trace.png\" alt=\"v5.9 final PowerShell trace showing explicit NO decision and no retry\" \/><\/p>\n<p style=\"text-align: center;margin: 0;color: #465469;font-size: 13px;line-height: 1.7\">Figure 29. v5.9 final PowerShell trace showing explicit NO decision and no retry <em>(Captured 2026-11-26 at 01:15)<\/em><\/p>\n<\/div>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Representative messages from the test included:<\/p>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>SUCCESS: GHS 1 review screen reached with MoMo selected.\r\nVerified GHS 1 + MoMo. Automatically tapping Make Payment ONCE.\r\nVerified GHS 1 MoMo PIN prompt.\r\nSubmitted PIN once. Checking for final approval; no retries.\r\nVerified the final MTN payment approval: 1) Yes  2) No.\r\nFinal NO response sent once. No automatic retries.\r\nNo network dialog detected. Check your phone, transaction SMS and MoMo history for the result.<\/code><\/pre>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Although the script navigated and responded successfully, I did not verify a completed bundle purchase. Instead, I documented the deliberate incorrect-PIN response on the phone. This distinction matters: the automation test succeeded at controlling and observing the flow, while the payment test ended without a confirmed charge.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\"><strong>How I interpret the outcome:<\/strong> ADB successfully controlled the observed screens, including the final choice that I explicitly entered. But the &#8220;Incorrect Mobile Money PIN&#8221; message demonstrates that a completed charge was not verified. These are two different test results, and my article intentionally separates them.<\/p>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">9. Download the PowerShell Script<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The tested file is <code>MTN-Mashup-MoMo-v5.9.ps1<\/code>. It is packaged with a README in a ZIP archive. <strong>Before publishing this post, upload the ZIP to your site&#8217;s media library or another trusted download location and replace the link below.<\/strong><\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\"><a href=\"REPLACE_WITH_SCRIPT_ZIP_URL\"><strong>Download MTN Mashup MoMo ADB Automation v5.9 (ZIP)<\/strong><\/a><\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">For readers who want to inspect the test environment rather than repeat the payment, these are the basic local commands I used to check the device and the currently visible Android UI:<\/p>\n<pre class=\"wp-block-code\" style=\"background: #111827;color: #ecf0f7;padding: 18px 20px;margin: 24px 0 32px;line-height: 1.65;border-radius: 6px;font-size: 13px;white-space: pre\"><code>.\\adb.exe devices\r\n.\\adb.exe shell dumpsys window\r\n.\\adb.exe shell uiautomator dump \/sdcard\/current-screen.xml\r\n.\\adb.exe pull \/sdcard\/current-screen.xml .\\current-screen.xml<\/code><\/pre>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The v5.9 script was designed around this particular myMTN screen layout and a GHS 1 test configuration. It may stop or require modification if MTN updates the interface, screen layout, network workflow or bundle offerings. Anyone inspecting the source should understand that the script can initiate a real charge and can submit a PIN through ADB if the operator chooses to provide one. <strong>It should never be used on another person&#8217;s device or payment account without explicit authorization.<\/strong><\/p>\n<h2 style=\"clear: both;margin: 44px 0 18px;line-height: 1.35\">10. Security and Privacy Lessons From This Test<\/h2>\n<ul class=\"wp-block-list\">\n<li><strong>No root was required:<\/strong> ADB with authorized USB debugging was sufficient for the tested UI controls.<\/li>\n<li><strong>A black screen is not total isolation:<\/strong> In this app version, the UI hierarchy remained readable even when scrcpy could not show the app&#8217;s contents.<\/li>\n<li><strong>UI automation is not an authorization bypass:<\/strong> MTN still requested a Mobile Money PIN and a separate approval decision.<\/li>\n<li><strong>Do not trust the console alone:<\/strong> ADB successfully sent the final No response, but the physical phone&#8217;s incorrect-PIN message clarified the eventual outcome.<\/li>\n<li><strong>Credentials deserve stronger handling:<\/strong> A masked PowerShell prompt conceals on-screen typing but does not make ADB a private, hardware-backed PIN interface. If a computer may be monitored, enter secrets only through the trusted on-device interface and review the PC&#8217;s security.<\/li>\n<li><strong>Avoid publishing raw captures:<\/strong> UI XML and screenshots can reveal phone numbers, account details, transaction references and potentially other sensitive content. I have omitted such data from this post.<\/li>\n<li><strong>Do not retry uncertain transactions blindly:<\/strong> Check MTN confirmations and transaction history first, and avoid repeated incorrect PIN attempts.<\/li>\n<\/ul>\n<h2 style=\"clear: both;margin: 48px 0 18px;line-height: 1.35\">Conclusion: Beyond MTN Mashup \u2014 A World of Android Automation<\/h2>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">When I started this experiment, my goal was simple: could I automate an MTN Ghana Mashup bundle purchase on my Samsung Galaxy A12 without rooting the phone? What I discovered was much more interesting than a single telecom transaction.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\"><strong>We have barely scratched the surface of what ADB-powered Android automation can do.<\/strong><\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Using Windows PowerShell, ADB and carefully verified screen interactions, I launched myMTN, selected a GHS 1 Flexi Mashup, chose MoMo, initiated a genuine authorization request, submitted a deliberately incorrect PIN once, and interacted with the final Yes\/No prompt. The phone subsequently reported <strong>Incorrect Mobile Money PIN<\/strong>. I therefore cannot claim a successful subscription or payment. What this experiment <em>did<\/em> demonstrate is that a non-rooted phone&#8217;s app interface could be navigated and controlled programmatically through these stages.<\/p>\n<h3 style=\"clear: both;margin: 34px 0 14px;line-height: 1.4\">What if our phones could handle repetitive work while we sleep?<\/h3>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Many of us repeat the same actions on our phones every day: opening apps, checking downloads, looking for error messages, restarting tasks, and navigating familiar menus. Now imagine having scripts that perform those routines on our behalf, logging their progress and asking for human help only when necessary.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">Consider someone who starts a large download at dawn using a night data bundle and then falls asleep. The bundle runs out halfway through, the download fails, and the person wakes up hours later expecting a completed file. A more advanced automation system could monitor download progress and available connectivity, recognize the stall, attempt a safe reconnection or resume, and notify the user about exhausted data. Where the app and provider permit it, a <em>separately authorized<\/em> bundle-purchase step could then restore service so the download resumes.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">That is a future project, not a feature demonstrated by today&#8217;s script. Reliable unattended operation would require task scheduling, data-usage monitoring, error detection, resilience to app updates, and clear spending limits. Payment credentials and final purchase approval should not be left to an insecure or untrusted computer.<\/p>\n<h3 style=\"clear: both;margin: 34px 0 14px;line-height: 1.4\">ADB can also operate wirelessly<\/h3>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The Galaxy A12 in this test was connected by USB, but ADB can also connect over an authorized network debugging session. Depending on Android version and configuration, this may use wireless debugging or a configured TCP\/IP debugging connection. In a trusted environment, a computer could coordinate approved phone tasks without keeping a USB cable attached. Such access must be restricted because an exposed ADB connection can give another device powerful control over the phone.<\/p>\n<h3 style=\"clear: both;margin: 34px 0 14px;line-height: 1.4\">From scripts to agents<\/h3>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">A basic script follows a fixed series of taps and key presses. A more capable automation agent can examine the screen&#8217;s UI hierarchy, recognize its current state, react to unexpected messages, maintain logs, and choose between safe recovery actions. This experiment already hinted at the difference: hard-coded assumptions failed, whereas detecting actual controls allowed later versions to progress.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">The same building blocks could help with repetitive application testing, checking the status of long-running operations, organizing files, reviewing diagnostics, and assisting with workflows across apps that expose usable UI controls. Not every Android app or protected screen is automatable; permissions, secure interfaces, changing layouts, battery restrictions and application policies all set real boundaries.<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\"><strong>My biggest takeaway is this: instead of only using our phones, we can begin designing carefully controlled systems that make our phones work for us.<\/strong> What started as a GHS 1 Mashup experiment has opened a broader question: how many everyday tasks could we safely hand over to scripts or agents, even while we sleep?<\/p>\n<p style=\"margin: 0 0 20px;line-height: 1.8\">For me, this experiment is not the end of the investigation. It is the beginning of a much larger journey into practical Android automation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After several unsuccessful attempts to obtain stable root access on my Samsung Galaxy A12 (SM-A125F), I decided to test a different question: how far could I automate a real Android application using ADB alone, without root? I chose the myMTN Ghana application and a GHS 1 Flexi Mashup purchase flow as a practical test. My [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":13603,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[818],"tags":[],"class_list":["post-13541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts\/13541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/comments?post=13541"}],"version-history":[{"count":5,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts\/13541\/revisions"}],"predecessor-version":[{"id":13605,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts\/13541\/revisions\/13605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/media\/13603"}],"wp:attachment":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/media?parent=13541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/categories?post=13541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/tags?post=13541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}