Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Android as a target platform #116622

Open
mhsmith opened this issue Mar 11, 2024 · 0 comments · May be fixed by python/peps#3982
Open

Add support for Android as a target platform #116622

mhsmith opened this issue Mar 11, 2024 · 0 comments · May be fixed by python/peps#3982
Assignees
Labels
OS-android type-feature A feature request or enhancement

Comments

@mhsmith
Copy link
Member

mhsmith commented Mar 11, 2024

I am now working on PEP 738, which proposes adding Android as a Tier 3 supported platform for Python 3.13. I'll use this page to track all the issues related to this work.

This was previously managed at #71052, but most of that issue's history is now irrelevant, so I'm opening a fresh one.

Android-related issues which were open before the PEP 738 work began:

Issues added during the PEP 738 work:

PRs from the PEP 738 work which are not linked to one of these issues will be listed below.

FYI: @freakboy3742 @encukou

Linked PRs

@mhsmith mhsmith added the type-feature A feature request or enhancement label Mar 11, 2024
erlend-aasland pushed a commit that referenced this issue Apr 5, 2024
- re-enable test_fcntl_64_bit on Linux aarch64, but disable it on all
  Android ABIs
- use support.setswitchinterval in all relevant tests
- skip test_fma_zero_result on Android x86_64
- accept EACCES when calling os.get_terminal_size on Android
sobolevn added a commit that referenced this issue Apr 9, 2024
…rocesses (#116758)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
- re-enable test_fcntl_64_bit on Linux aarch64, but disable it on all
  Android ABIs
- use support.setswitchinterval in all relevant tests
- skip test_fma_zero_result on Android x86_64
- accept EACCES when calling os.get_terminal_size on Android
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
…t subprocesses (python#116758)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
encukou pushed a commit that referenced this issue May 1, 2024
Add code and config for a minimal Android app, and instructions to build and run it.
Improve Android build instructions in general.
Add a tool subcommand to download the Gradle wrapper (with its binary blob). Android
studio must be downloaded manually (due to the license).
SonicField pushed a commit to SonicField/cpython that referenced this issue May 8, 2024
SonicField pushed a commit to SonicField/cpython that referenced this issue May 8, 2024
Add code and config for a minimal Android app, and instructions to build and run it.
Improve Android build instructions in general.
Add a tool subcommand to download the Gradle wrapper (with its binary blob). Android
studio must be downloaded manually (due to the license).
SonicField pushed a commit to SonicField/cpython that referenced this issue May 8, 2024
SonicField pushed a commit to SonicField/cpython that referenced this issue May 8, 2024
freakboy3742 pushed a commit that referenced this issue Jul 31, 2024
Adds extra handling for way BSD/Android return errors from calls to fwrite.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 31, 2024
…2487)

Adds extra handling for way BSD/Android return errors from calls to fwrite.
(cherry picked from commit 82db572)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
freakboy3742 pushed a commit that referenced this issue Jul 31, 2024
…#122490)

gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487)

Adds extra handling for way BSD/Android return errors from calls to fwrite.
(cherry picked from commit 82db572)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
blhsing pushed a commit to blhsing/cpython that referenced this issue Aug 22, 2024
Modifies the handling of stdout/stderr redirection on Android to accomodate 
the rate and buffer size limits imposed by Android's logging infrastructure.
blhsing pushed a commit to blhsing/cpython that referenced this issue Aug 22, 2024
blhsing pushed a commit to blhsing/cpython that referenced this issue Aug 22, 2024
Adds a script for running the test suite on Android emulator devices. Starting
with a fresh install of the Android Commandline tools; the script manages
installing other requirements, starting the emulator (if required), and
retrieving results from that emulator.
freakboy3742 pushed a commit that referenced this issue Sep 12, 2024
…IGUSR2 (#123981)

Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 12, 2024
…1 to SIGUSR2 (pythonGH-123981)

Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
(cherry picked from commit 43303e3)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
freakboy3742 pushed a commit that referenced this issue Sep 13, 2024
* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 13, 2024
* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
(cherry picked from commit 1f9d163)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
CraZySacX pushed a commit to CraZySacX/cpython that referenced this issue Sep 13, 2024
…t tests (python#124015)

Mock the passage of time in Android logcat rate limit tests

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 13, 2024
…t tests (pythonGH-124015)

Mock the passage of time in Android logcat rate limit tests

(cherry picked from commit f554883)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
@mhsmith mhsmith linked a pull request Sep 20, 2024 that will close this issue
6 tasks
AA-Turner added a commit that referenced this issue Sep 23, 2024
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 23, 2024
(cherry picked from commit e80dd30)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Yhg1s added a commit that referenced this issue Sep 24, 2024
gh-116622: Complete Android documentation (GH-124259)
(cherry picked from commit e80dd30)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: T. Wouters <thomas@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Yhg1s pushed a commit that referenced this issue Sep 24, 2024
gh-116622: Android test script improvements (GH-124012)

* Set Android test script stdout to line-buffered
* Print warning logcat messages on stderr
* Add a -vv option to display high-volume messages which are rarely useful
* Documentation and comment improvements
(cherry picked from commit 1f9d163)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Yhg1s pushed a commit that referenced this issue Sep 24, 2024
…R1 to SIGUSR2 (GH-123981) (#123988)

gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (GH-123981)

Use SIGUSR1 instead of SIGUSR2 to improve reliability of signal stress test on Android.
(cherry picked from commit 43303e3)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
freakboy3742 pushed a commit that referenced this issue Sep 25, 2024
…rmat (#124462)

Make test_unzip_zipfile recognize Android error message format
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 25, 2024
…age format (pythonGH-124462)

Make test_unzip_zipfile recognize Android error message format
(cherry picked from commit 461c12b)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Yhg1s pushed a commit that referenced this issue Sep 30, 2024
…sage format (GH-124462) (#124516)

gh-116622: Make test_unzip_zipfile recognize Android error message format (GH-124462)

Make test_unzip_zipfile recognize Android error message format
(cherry picked from commit 461c12b)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Yhg1s pushed a commit that referenced this issue Sep 30, 2024
…it tests (GH-124015) (#124035)

gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015)

Mock the passage of time in Android logcat rate limit tests

(cherry picked from commit f554883)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-android type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants