Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make it work with with most commands #8

Open
hvdwolf opened this issue Apr 14, 2017 · 1 comment
Open

Can't make it work with with most commands #8

hvdwolf opened this issue Apr 14, 2017 · 1 comment

Comments

@hvdwolf
Copy link

hvdwolf commented Apr 14, 2017

Hi,

When I use a command like 'uptime' or 'pwd' or ['uptime'] or ['pwd'], it simply works.
If I use something like 'tar' I expect the normal output on how to use it, but I see nothing. No output at all.
Commands like 'ls -l' or ['ls -l'] or ['ls', '-l'] or 'mkdir -p /sdcard/tmp' or ['mkdir -p /sdcard/tmp'] or ['mkdir', '-p', '/sdcard/JT'] or ['sh', '-c', 'mkdir -p /sdcard/tmp'] simply don't work.

What is wrong or what I do wrong?

Edit: Even though it is a shell command doing "things" and not the apk itself, I also added the following 2 lines to my Androidmanifest.xml and recompiled, signed and zip-aligned.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

This didn't help either.

@Poyser1911
Copy link

try https://github.com/Poyser1911/cordova-plugin-shell-exec used in a app i'm making all cmds a executed as root tho, used ls and mk -p in project as well all works and cmds joined up with &&.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants