Skip to content

tmpdir not always configured correctly #13

@lucarin91

Description

@lucarin91

adbd of debian is leaving the TMPDIR env variable to /data/local/tmp which is the android place and not the linux default one. Here in this debian image we use the following workaround https://github.com/arduino/arduino-deb-images/blob/77a019b2e0b446f05fccc5220bf0f8d18079d8bc/debos-recipes/overlays/arduino-unoq-releases/etc/profile.d/50-fix-adb-shell.sh to change that on interactive shell. But this leave that not correctly set in cases like the following:

adb shell printenv TMPDIR

which will still return /data/local/tmp and not /tmp

To fix this issue we should probably do another adbd patch that set TMPDIR=/tmp before running the exec command here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions