Skip to content

Commit e106ac7

Browse files
committed
Added JavaCommand
1 parent 703d494 commit e106ac7

2 files changed

Lines changed: 68 additions & 15 deletions

File tree

.idea/workspace.xml

Lines changed: 29 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.stericson.RootShell.execution;
2+
3+
import android.content.Context;
4+
5+
public class JavaCommand extends Command
6+
{
7+
public JavaCommand(int id, Context context, String... command)
8+
{
9+
super(id, true, context, command);
10+
}
11+
12+
public JavaCommand(int id, boolean handlerEnabled, Context context, String... command)
13+
{
14+
super(id, handlerEnabled, true, context, command);
15+
}
16+
17+
public JavaCommand(int id, int timeout, Context context, String... command)
18+
{
19+
super(id, timeout, true, context, command);
20+
}
21+
22+
@Override
23+
public void commandOutput(int id, String line)
24+
{
25+
super.commandOutput(id, line);
26+
}
27+
28+
@Override
29+
public void commandTerminated(int id, String reason)
30+
{
31+
// pass
32+
}
33+
34+
@Override
35+
public void commandCompleted(int id, int exitCode)
36+
{
37+
// pass
38+
}
39+
}

0 commit comments

Comments
 (0)