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

ksud: refine get_tmp_path #1713

Merged
merged 5 commits into from May 16, 2024
Merged

ksud: refine get_tmp_path #1713

merged 5 commits into from May 16, 2024

Conversation

powellnorma
Copy link
Contributor

@powellnorma powellnorma commented May 8, 2024

Fixes #1710

What do you think?

  • It first uses TEMP_DIR (/debug_ramdisk) if it exists + is is empty.
  • Otherwise it tries to create a random directory in /dev.
  • If that fails, it goes through a list of directories (including TEMP_DIR_LEGACY), and chooses the first one that is empty.
  • If no empty directory it chooses the first one that exists

userspace/ksud/src/utils.rs Outdated Show resolved Hide resolved
userspace/ksud/src/utils.rs Outdated Show resolved Hide resolved
userspace/ksud/src/utils.rs Outdated Show resolved Hide resolved
userspace/ksud/src/utils.rs Outdated Show resolved Hide resolved
userspace/ksud/src/utils.rs Show resolved Hide resolved
tiann
tiann previously approved these changes May 9, 2024
@tiann tiann merged commit 71cb86c into tiann:main May 16, 2024
2 checks passed
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.

ADB not working after flashing a simple module
2 participants