--- ../go/src/os/file_unix.go	2015-08-06 00:36:35.000000000 -0400
+++ ./src/os/file_unix.go	2015-08-14 03:28:11.634760646 -0400
@@ -329,11 +329,7 @@
 func TempDir() string {
 	dir := Getenv("TMPDIR")
 	if dir == "" {
-		if runtime.GOOS == "android" {
-			dir = "/data/local/tmp"
-		} else {
-			dir = "/tmp"
-		}
+		dir = "@TERMUX_PREFIX@/tmp"
 	}
 	return dir
 }