Skip to content

Support modern Android emulators and Androguard 4 - #170

Open
getFaster wants to merge 2 commits into
honeynet:masterfrom
getFaster:fix/modern-android-compatibility
Open

Support modern Android emulators and Androguard 4#170
getFaster wants to merge 2 commits into
honeynet:masterfrom
getFaster:fix/modern-android-compatibility

Conversation

@getFaster

Copy link
Copy Markdown

Summary

  • update APK parsing for Androguard 4 and deterministically prefer a launcher owned by the target package
  • replace deprecated pkg_resources lookups with pathlib resource paths
  • make shutdown cleanup best-effort so temporary ADB failures do not mask the original run result
  • qualify monitor PID lookup with the selected device serial
  • document smoke-test results for Android APIs 29, 31, 34, and 35 using 432 × 768 emulators

Compatibility notes

  • DroidBot runs in Python 3.12 because Python 3.13 removed telnetlib, which the legacy QEMU adapter still imports
  • API 31 and newer showed accessibility-helper reconnect warnings during smoke runs
  • multi-hour API 29 and API 35 soak runs remain the final production go/no-go check

Testing

  • python -m unittest discover -s tests -v — 2 tests passed
  • python -m compileall -q droidbot
  • parsed the Wikipedia APK with Androguard 4 as org.wikipedia / org.wikipedia.DefaultIcon
  • git diff --check origin/master..HEAD

@getFaster
getFaster marked this pull request as ready for review July 28, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant