Hello
Matthias,
My own experience has been a bit confusing in this regard, I remember trying out my console app
(used subprocess.popen) in android quite a while ago and was flabbergasted when it just worked
(without setting any permissions or anything if I remember correctly). So it works and this was
just a simple subproess.popen without accessing any Java functions. As it was just a test and I
got busy with other things, I never followed it up.
After looking at this thread I was reminded of the console app. Since then the console app had been significantly
re-factored, with no tests on android. Also the android build chain has changed significantly and has evolved into
python for android. So when I tried packaging it, this time; it doesn't work. (gives me permission denied on
commands that don't exist, and gets stuck trying to execute commands like `ls`).
I don't know the reason why it doesn't work now, could be a number of things, the re factoring of the console app
to use pipes or something about the new build chain, or maybe just about giving the right permissions.
I'm including a link to the original test apk that still works.
https://docs.google.com/file/d/0B1WO07-OL50_cXp1Vm8yNUt0aHc/editTo test, select the text input on the bottom and type command like `ls` or `ps aux` or `whoami` ...
Hope this helps.