Skip to content

Commit

Permalink
Added JavaCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Stericson committed Dec 30, 2014
1 parent 703d494 commit e106ac7
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions src/com/stericson/RootShell/execution/JavaCommand.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.stericson.RootShell.execution;

import android.content.Context;

public class JavaCommand extends Command
{
public JavaCommand(int id, Context context, String... command)
{
super(id, true, context, command);
}

public JavaCommand(int id, boolean handlerEnabled, Context context, String... command)
{
super(id, handlerEnabled, true, context, command);
}

public JavaCommand(int id, int timeout, Context context, String... command)
{
super(id, timeout, true, context, command);
}

@Override
public void commandOutput(int id, String line)
{
super.commandOutput(id, line);
}

@Override
public void commandTerminated(int id, String reason)
{
// pass
}

@Override
public void commandCompleted(int id, int exitCode)
{
// pass
}
}

0 comments on commit e106ac7

Please sign in to comment.