RootShell
RootShell copied to clipboard
RootShell throw ArrayIndexOutOfBoundsException when trying to get command output on Android Emulator API 14 and 23
When running RootShell on older Emulator like API14 also on newer one like API23, RootShell keep throwing this exception and won't read the output from the command. This happen when calling RootTools.remount(target)
E/RootShell v1.6:
length=1; index=1
java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
at com.stericson.RootTools.internal.RootToolsInternalMethods$7.commandOutput(RootToolsInternalMethods.java:744)
at com.stericson.RootShell.execution.Command.output(Command.java:288)
at com.stericson.RootShell.execution.Shell.processErrors(Shell.java:820)
at com.stericson.RootShell.execution.Shell$3.run(Shell.java:722)
at java.lang.Thread.run(Thread.java:856)