java.io.IOException: Error running exec(). Command: [su] Working Directory: null Environment: null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

,
Expert tip

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

Solutions on the web

via GitHub by kc9uew
, 1 year ago
Error running exec(). Command: [su] Working Directory: null Environment: null
via Stack Overflow by Nova_virus
, 2 years ago
Error running exec(). Command: [su] Working Directory: null Environment: null
via droidforums.net by Unknown author, 1 year ago
Error running exec(). Command: [su] Working Directory: null Environment: null I/ActivityManager( 1086): Displayed activity com.z4mod.z4root/.z4root: 668 ms (total 668 ms)
via Stack Overflow by brig
, 2 years ago
Error running exec(). Command: [wc, -l, /mnt/sdcard/abc.txt] Working Directory: null Environment: null
via Stack Overflow by Virus
, 1 year ago
Error running exec(). Command: [cmd, /c, start, /src/androidTest/CopyFiles.bat] Working Directory: null Environment: null
via Stack Overflow by GuiYQ
, 1 year ago
Error running exec(). Command: [su] Working Directory: null Environment: null
java.io.IOException: Error running exec(). Command: [su] Working Directory: null Environment: null
at java.lang.ProcessManager.exec(Native Method)
at java.lang.ProcessManager.exec(ProcessManager.java:209)
at java.lang.Runtime.exec(Runtime.java:168)
at java.lang.Runtime.exec(Runtime.java:241)
at java.lang.Runtime.exec(Runtime.java:184)
at com.nolanlawson.logcat.b.m.a(Unknown Source)
at com.nolanlawson.logcat.b.w.a(Unknown Source)
at com.nolanlawson.logcat.b.p.b(Unknown Source)
at com.nolanlawson.logcat.d.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
5 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
93 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.