Skip to content

Close streams when APK copying fails - #58

Open
cragkhit wants to merge 1 commit into
pylerSM:masterfrom
cragkhit:close-copy-streams
Open

Close streams when APK copying fails#58
cragkhit wants to merge 1 commit into
pylerSM:masterfrom
cragkhit:close-copy-streams

Conversation

@cragkhit

Copy link
Copy Markdown

Ensure Utils.copyFile closes both input and output streams when opening, reading, or writing fails. Previously both close calls only ran after a successful APK copy, which could leak file descriptors.

Nested finally blocks retain compatibility with the project's older Android build.

Testing:

  • git diff --check
  • The historical Android project has no Gradle wrapper or focused JVM test setup for this utility.

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