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

Closed
mhsmith opened this issue Mar 11, 2024 · 2 comments · Fixed by python/peps#3982
Closed

Add support for Android as a target platform #116622

mhsmith opened this issue Mar 11, 2024 · 2 comments · 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
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
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Co-authored-by: Russell Keith-Magee <[email protected]>
AA-Turner added a commit that referenced this issue Sep 23, 2024
Co-authored-by: Russell Keith-Magee <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
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 <[email protected]>
Co-authored-by: Russell Keith-Magee <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
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 <[email protected]>
Co-authored-by: Russell Keith-Magee <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Co-authored-by: Russell Keith-Magee <[email protected]>
@freakboy3742
Copy link
Contributor

freakboy3742 commented Oct 1, 2024

@mhsmith I think this ticket can now be closed - can you confirm?

I see now you've got it set up to autoclose when python/peps#3982 is merged.

@vstinner
Copy link
Member

vstinner commented Oct 7, 2024

@AA-Turner AA-Turner closed this as completed in python/peps#3982 Oct 7, 2024

Congrats @mhsmith!

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.

5 participants