diff -r 3a451c67008d Lib/subprocess.py --- a/Lib/subprocess.py Mon Dec 12 09:56:55 2016 +0100 +++ b/Lib/subprocess.py Mon Dec 12 16:49:02 2016 +0100 @@ -1204,7 +1204,10 @@ args = list(args) if shell: - args = ["/bin/sh", "-c"] + args + # On Android the default shell is at '/system/bin/sh'. + unix_shell = ('/system/bin/sh' if + hasattr(sys, 'getandroidapilevel') else '/bin/sh') + args = [unix_shell, "-c"] + args if executable: args[0] = executable