Merge pull request #485 from yungtravla/master

fix android shell command function
This commit is contained in:
evilsocket 2019-03-13 04:51:13 +01:00 committed by GitHub
commit 852abec22e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

7
core/core_android.go Normal file
View file

@ -0,0 +1,7 @@
// +build android
package core
func Shell(cmd string) (string, error) {
return Exec("/system/bin/sh", []string{"-c", cmd})
}

View file

@ -1,4 +1,4 @@
// +build !windows
// +build !windows,!android
package core