Skip to content

Update implementation of function for pulling files from devices to create a new temporary directory for saving the file every time the function was called. #352

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_834736315
Nov 24, 2025
Merged

Update implementation of function for pulling files from devices to create a new temporary directory for saving the file every time the function was called. #352
copybara-service[bot] merged 1 commit intomainfrom
test_834736315

Conversation

@copybara-service
Copy link

Update implementation of function for pulling files from devices to create a new temporary directory for saving the file every time the function was called.

This ensures the function is thread safe. The old implementation would create a single temporary directory at the module level. When running Android World from multiple threads, this could result in multiple instances trying to save files with the same name in the same directory, resulting in corrupt data. The new implementation avoids this problem.

@google-cla
Copy link

google-cla bot commented Nov 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…reate a new temporary directory for saving the file every time the function was called.

This ensures the function is thread safe. The old implementation would create a single temporary directory at the module level.  When running Android World from multiple threads, this could result in multiple instances trying to save files with the same name in the same directory, resulting in corrupt data.  The new implementation avoids this problem.

PiperOrigin-RevId: 836225493
@copybara-service copybara-service bot merged commit c71a6b5 into main Nov 24, 2025
@copybara-service copybara-service bot deleted the test_834736315 branch November 24, 2025 15:54
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.

0 participants

Comments