You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the RootTools shell and executing commands like so:
RootTools.getShell(true).add(cmd);
and sometimes (not always, and not reproduceably) it throws the error mentioned above.
In the same code, I'm performing various other root commands, using other RootTools functions (copyFile, remount), and also explicitly running some commands with Runtime.getRuntime().exec(), both before and after this call. But I'm only explicitly calling getShell once. How can I fix/work around this issue? I can check to see if the shell that getShell returns is closed, but I don't know how to get an open shell in that case.
The text was updated successfully, but these errors were encountered:
I'm getting the RootTools shell and executing commands like so:
RootTools.getShell(true).add(cmd);
and sometimes (not always, and not reproduceably) it throws the error mentioned above.
In the same code, I'm performing various other root commands, using other RootTools functions (
copyFile
,remount
), and also explicitly running some commands withRuntime.getRuntime().exec()
, both before and after this call. But I'm only explicitly callinggetShell
once. How can I fix/work around this issue? I can check to see if the shell thatgetShell
returns is closed, but I don't know how to get an open shell in that case.The text was updated successfully, but these errors were encountered: