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

Fix crash in addMedia on Android 28 and below #2061

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Naoki-Hidaka
Copy link

Proposed changes

I fixed an issue where the addMedia function was crashing on Android 28 and below. The crash was caused by the lack of declaration and permission for WRITE_EXTERNAL_STORAGE, which is required on these Android versions.

To resolve this, I added the WRITE_EXTERNAL_STORAGE permission declaration and implemented a process to grant the permission using adb shell pm. With these changes, the crash in addMedia on Android 28 and below has been resolved.

Testing

I have confirmed the success of running maestro test on emulators for Android versions 24 to 28.

Issues fixed

@Aleksandriukas
Copy link

Aleksandriukas commented Oct 10, 2024

Please, merge. I need it! @amanjeetsingh150

@amanjeetsingh150
Copy link
Collaborator

Hey folks, this would go in 1.40.0 version (next release)

@amanjeetsingh150 amanjeetsingh150 added the v1.40.0 Release 1.40.0 label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.40.0 Release 1.40.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants