Skip to content

Fix RunProfiler temp file creation on Android#2899

Draft
konstantiniiv wants to merge 1 commit intodevelopfrom
claude/fix-runprofiler-android-BHcfV
Draft

Fix RunProfiler temp file creation on Android#2899
konstantiniiv wants to merge 1 commit intodevelopfrom
claude/fix-runprofiler-android-BHcfV

Conversation

@konstantiniiv
Copy link
Copy Markdown

@konstantiniiv konstantiniiv commented Jan 22, 2026

Use TempDirProvider to get a platform-appropriate temp directory instead of relying on os.TempDir(). On Android, the system temp directory is not writable by the app, causing RunProfiler to fail when creating the profile ZIP file.

The new getTempDir helper retrieves the temp directory from TempDirProvider (which creates a temp directory inside the wallet root path) and falls back to os.TempDir() if the app container is not available.


  • I understand that contributing to this repository will require me to agree with the CLA

Description

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Use TempDirProvider to get a platform-appropriate temp directory instead
of relying on os.TempDir(). On Android, the system temp directory is not
writable by the app, causing RunProfiler to fail when creating the
profile ZIP file.

The new getTempDir helper retrieves the temp directory from TempDirProvider
(which creates a temp directory inside the wallet root path) and falls
back to os.TempDir() if the app container is not available.
@github-actions
Copy link
Copy Markdown

CLA Assistant Lite bot:
Thank you for your pull request, we really appreciate it!

Please sign our Contributor License Agreement before we can accept your contribution.
You can sign the CLA by simply commenting on this pull request with the following text.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

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.

2 participants