Skip to content

Block Android-absent C extensions in bundle_check import probe - #2354

Merged
trissim merged 1 commit into
mainfrom
fix/android-bundle-check-c-extensions
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/android-bundle-check-c-extensions

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown

Blocks the 11 C extensions omitted by Android's Python 3.14 build (_multiprocessing, _posixshmem, _bz2, _lzma, _zstd, _curses, _curses_panel, _dbm, _tkinter, _uuid, readline) in tools/android/bundle_check.py's isolated -S -B probe and also imports toad.client.host.post_crash_to_sink.

Verified negative test against the broken 0add3cb79/core-89b146a39 APP folder: fails immediately with ModuleNotFoundError: import of _multiprocessing halted; None in sys.modules (exact 6-frame traceback observed on Pixel 8a).

Desktop Linux Python 3.14 ships _multiprocessing, _posixshmem, _bz2, _lzma,
_zstd, _curses, _curses_panel, _dbm, _tkinter, _uuid, and readline, which
Android's Python 3.14 APK build omits. Blocking them in bundle_check.py's
isolated -S -B probe (and importing toad.client.host.post_crash_to_sink)
catches Android startup ModuleNotFoundError at build time instead of on the
phone.
@trissim
trissim merged commit b882115 into main Nov 28, 2026
1 check failed
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