Skip to content

Wait for boot completion and check SDK >= 24 instead of probing bugreportz -v - #1082

Open
xpconanfan wants to merge 3 commits into
masterfrom
bugreport-wait-for-boot-first
Open

xpconanfan wants to merge 3 commits into
masterfrom
bugreport-wait-for-boot-first

Conversation

@xpconanfan

@xpconanfan xpconanfan commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Call wait_for_boot_completion() before querying device properties or taking a bug report in AndroidDevice.take_bug_report().
  • Replace the per-call adb shell bugreportz -v probe (and broad except adb.AdbError fallback) with checking int(self.build_info["build_version_sdk"]) >= 24 (Android 7.0+, which introduced bugreportz), avoiding an extra adb round-trip and preventing transient AdbError failures from silently falling back to legacy adb bugreport.

AndroidDevice.take_bug_report previously ran 'adb shell bugreportz -v' before calling wait_for_boot_completion(), causing recently rebooted devices to fail the probe and fall back to legacy 'adb bugreport'.
@xpconanfan xpconanfan self-assigned this Nov 11, 2026
@xpconanfan xpconanfan added this to the Mobly Release 1.14 milestone Nov 11, 2026
@xpconanfan xpconanfan added the bug label Nov 11, 2026
@xpconanfan
xpconanfan requested a review from ko1in1u November 11, 2026 21:22
ko1in1u
ko1in1u previously approved these changes Dec 3, 2026
@xpconanfan xpconanfan changed the title Wait for boot completion before probing bugreportz in take_bug_report Wait for boot completion and check SDK >= 24 instead of probing bugreportz -v Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants