diff --git a/vlib/os/os.v b/vlib/os/os.v index 9f8b939aad..cb37ba4498 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -1256,8 +1256,11 @@ pub fn temp_dir() string { } } } - if path == '' { - path = os.cache_dir() + $if android { + // TODO test+use '/data/local/tmp' on Android before using cache_dir() + if path == '' { + path = os.cache_dir() + } } if path == '' { path = '/tmp'