Anti-AIClone

Log date · Fri

Can automated testing find hidden Android flows?

Yes. A toy state model shows how targeted inputs reach deep screens; hidden entry points do not replace authorization.

Can automated testing find hidden Android flows?

Yes. A hidden entry point is not an authorization control: a state model can guide a test toward a deep screen. In our five-state sample, each method used 20 inputs. One seeded random sequence reached four states; a route planned from the known model reached all five, including the internal screen.

The PADRAIG paper supplies the context, but those numbers come from our simplified illustration, not a replication of the paper or a test of Android UI or PADRAIG. One random seed does not represent the average performance of random testing.

The comparison
Question or caseResult or recommendation
Where did random input go?Four of five states in 20 inputs.
What did the known model help with?The planned route reached all five states.
Does that prove authorization is safe?No; reaching a screen and server authorization are separate checks.

What the papers reported

PADRAIG v1 was submitted to arXiv at 19:20 UTC on 31 July 2026. Its cited conference publication is QRS 2024, so this was a posting of earlier work, not a new paper published that day. [1] It generates tests using a detailed control-flow model. The abstract reports, for 19 randomly selected F-Droid apps, an average 16% increase in line coverage and 84% less generation runtime compared with three state-of-the-art tools. These are the authors’ results for their sample and comparisons.

The same authors posted DroidGraph that day, originally published at DSA 2023. It combines static analysis and systematic exploratory tests to build a model; its abstract reports interacting with 18% more of an app on average than random exploration. [2] The abstracts do not report results for obfuscated applications, so do not transfer these figures to your own release build.

A five-state illustration of input selection

We wrote five states in Python 3.9.1: home, menu, settings, advanced and internal. Each accepts only some actions; an unrecognized action leaves the state unchanged. The random variant chooses from open, back, swipe and long_press with seed 2. The other variant knows the complete graph in advance: it takes four open actions, then alternates back and open to use the same budget.

The complete state graph in our sample.
graph = {
    'home': {'open': 'menu'},
    'menu': {'open': 'settings', 'back': 'home'},
    'settings': {'open': 'advanced', 'back': 'menu'},
    'advanced': {'open': 'internal', 'back': 'settings'},
    'internal': {'back': 'advanced'},
}

The graph omits real application concerns such as asynchronous loading, input values, permissions and network state. The model variant also knows the right route in advance, and we did not charge for building the model; its advantage is deliberately supplied by the setup. A fixed seed makes this particular input sequence reviewable. Python documents independent pseudorandom Random instances. [4]

Complete results from the transcript; both use the same budget.
random seed=2: actions=20 states=4/5 internal=False
  sequence: open open open swipe back swipe swipe back open back long_press long_press swipe long_press swipe open open swipe long_press swipe
model route: actions=20 states=5/5 internal=True
  sequence: open open open open back open back open back open back open back open back open back open back open

The first three random opens reached advanced; subsequent back and ineffective actions used the budget. The planned route reached internal with its fourth open. Another seed may produce a different result. This comparison illustrates how input selection affects the states reached in one exploration, not a performance ranking of tools.

Turn findings into release checks

Deep menus, long presses and client flags can reduce accidental use, but should not carry authorization. First decide which features should not ship at all and which must ship but be available only to authorized accounts. For the latter, check authorization for sensitive server operations on the server, for the account and operation involved. Hiding a button does not replace that check.

A screen inventory from exploration needs human interpretation: a test account may legitimately see a feature, and failure to reach a screen does not prove it is absent. Record the input sequence, account role, initial data, build identifier and outcome so the team can replay and assess a finding. Use an isolated test environment for paths that change data.

Recommendations by case
Question or caseResult or recommendation
Debug panel should not shipRemove it from the release build and inspect the final artifact.
Feature is account-restrictedEnforce authorization server-side and test allowed and denied accounts.
A path fails after minificationReplay on the same release variant and inspect callbacks and keep rules.
Exploration misses a screenAdd targeted paths and states; do not treat absence of discovery as proof of safety.

Run the check on your own app

First reproduce our sample, then create a screen and role inventory for a release variant you are authorized to test. Android’s UI Automator can interact with the UI outside the app process, including minified release versions; its documentation provides element lookup and state-waiting APIs. [3] It does not guarantee automatic coverage of every path: you still need tests for your own flows.

Run the Python comparison from this article.
python3 --version
python3 - <<'PYTHON'
import random

# Each action has a deterministic destination; missing actions leave state unchanged.
graph = {
    'home': {'open': 'menu'},
    'menu': {'open': 'settings', 'back': 'home'},
    'settings': {'open': 'advanced', 'back': 'menu'},
    'advanced': {'open': 'internal', 'back': 'settings'},
    'internal': {'back': 'advanced'},
}
actions = ('open', 'back', 'swipe', 'long_press')
def run(label, sequence):
    state = 'home'
    visited = {state}
    for action in sequence:
        state = graph[state].get(action, state)
        visited.add(state)
    print(f'{label}: actions={len(sequence)} states={len(visited)}/5 internal={"internal" in visited}')
    print('  sequence:', ' '.join(sequence))

rng = random.Random(2)
run('random seed=2', [rng.choice(actions) for _ in range(20)])
# A route planned from the known model; pad with back and forth to the same budget.
run('model route', ['open'] * 4 + ['back', 'open'] * 8)
PYTHON

With test accounts and initial data fixed, record normal entries, deep settings, restricted features and return paths. Run the same critical paths on the unprocessed and final release variants and compare reached screens with expectations. For account-restricted operations, separately verify server-side allow and deny outcomes. Record the build, account and environment versions and retain a replayable failure record.

Exploration can reveal paths missing from the product inventory, while targeted tests repeatedly verify known requirements. Put both in the release workflow: use exploration findings to update the inventory and regression suite, then rerun affected paths whenever build configuration or feature permissions change.

Your checklist

  • Inventory debug and unreleased features that should not ship.
  • Enforce account authorization for sensitive server operations.
  • Test the final release variant with distinct roles and fixed data.
  • Save replayable input sequences, build and environment details.
  • Add unexpectedly reachable screens to regression tests.

Primary sources

All sources and reproduction status ↗