diff --git a/core/core_android.go b/core/core_android.go new file mode 100644 index 00000000..af6a3255 --- /dev/null +++ b/core/core_android.go @@ -0,0 +1,7 @@ +// +build android + +package core + +func Shell(cmd string) (string, error) { + return Exec("/system/bin/sh", []string{"-c", cmd}) +} diff --git a/core/core_unix.go b/core/core_unix.go index af96eb7c..2aca44ce 100644 --- a/core/core_unix.go +++ b/core/core_unix.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows,!android package core