From 3bbd402aaea79c455b35ecfdf5450635de64e07f Mon Sep 17 00:00:00 2001 From: yungtravla Date: Wed, 13 Mar 2019 02:53:22 +1000 Subject: [PATCH] fix android Shell command function --- core/core_android.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 core/core_android.go 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}) +}