Program: 94326
Project: 94326
Buggy source:
public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  final View rootView=inflater.inflate(R.layout.deauth,container,false);
  SharedPreferences sharedpreferences=getActivity().getSharedPreferences("String_Node_Str",Context.MODE_PRIVATE);
  Context mContext=getActivity().getApplicationContext();
  setHasOptionsMenu(true);
  final Button scan=(Button)rootView.findViewById(R.id.scan_networks);
  final EditText wlan=(EditText)rootView.findViewById(R.id.wlan_interface);
  final EditText term=(EditText)rootView.findViewById(R.id.TerminalOutputDeAuth);
  final Button start=(Button)rootView.findViewById(R.id.StartDeAuth);
  final EditText pkt=(EditText)rootView.findViewById(R.id.time);
  final EditText channel=(EditText)rootView.findViewById(R.id.channel);
  final CheckBox whitelist=(CheckBox)rootView.findViewById(R.id.deauth_whitelist);
  final CheckBox white_me=(CheckBox)rootView.findViewById(R.id.deauth_me);
  whitelist.setChecked(false);
  start.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      String whitelist_command;
      new BootKali("String_Node_Str" + wlan.getText() + "String_Node_Str");
      try {
        Thread.sleep(1000);
        new BootKali("String_Node_Str" + wlan.getText()).run_bg();
        Thread.sleep(2000);
        if (whitelist.isChecked()) {
          whitelist_command="String_Node_Str";
        }
 else {
          whitelist_command="String_Node_Str";
        }
        intentClickListener_NH("String_Node_Str" + wlan.getText() + "String_Node_Str"+ whitelist_command+ "String_Node_Str"+ channel.getText());
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
    }
  }
);
  scan.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      new BootKali("String_Node_Str").run_bg();
      String cmd="String_Node_Str" + wlan.getText() + "String_Node_Str";
      try {
        new BootKali("String_Node_Str" + wlan.getText() + "String_Node_Str").run_bg();
        Thread.sleep(1000);
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
      new BootKali(cmd).run_bg();
      try {
        Thread.sleep(5000);
        nh=new NhPaths();
        String output=exe.RunAsRootOutput("String_Node_Str").replace("String_Node_Str","String_Node_Str");
        term.setText(output);
      }
 catch (      Exception e) {
        e.printStackTrace();
        term.setText(e.toString());
      }
    }
  }
);
  whitelist.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      if (whitelist.isChecked()) {
        white_me.setClickable(true);
        String check_me=exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
        if (check_me.contains("String_Node_Str")) {
          white_me.setChecked(true);
        }
 else {
          white_me.setChecked(false);
        }
      }
 else {
        white_me.setChecked(false);
        white_me.setClickable(false);
      }
    }
  }
);
  white_me.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      if (whitelist.isChecked()) {
        if (white_me.isChecked()) {
          if (wlan.getText().toString() == "String_Node_Str") {
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
 else {
            exe.RunAsRootOutput("String_Node_Str");
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
        }
 else {
          if (wlan.getText().toString() == "String_Node_Str") {
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
 else {
            exe.RunAsRootOutput("String_Node_Str");
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
        }
      }
 else {
        white_me.setChecked(false);
      }
    }
  }
);
  return rootView;
}

Fixed version (ground truth):
public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  final View rootView=inflater.inflate(R.layout.deauth,container,false);
  SharedPreferences sharedpreferences=getActivity().getSharedPreferences("String_Node_Str",Context.MODE_PRIVATE);
  Context mContext=getActivity().getApplicationContext();
  setHasOptionsMenu(true);
  final Button scan=(Button)rootView.findViewById(R.id.scan_networks);
  final EditText wlan=(EditText)rootView.findViewById(R.id.wlan_interface);
  final EditText term=(EditText)rootView.findViewById(R.id.TerminalOutputDeAuth);
  final Button start=(Button)rootView.findViewById(R.id.StartDeAuth);
  final EditText pkt=(EditText)rootView.findViewById(R.id.time);
  final EditText channel=(EditText)rootView.findViewById(R.id.channel);
  final CheckBox whitelist=(CheckBox)rootView.findViewById(R.id.deauth_whitelist);
  final CheckBox white_me=(CheckBox)rootView.findViewById(R.id.deauth_me);
  whitelist.setChecked(false);
  start.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      String whitelist_command;
      new BootKali("String_Node_Str" + wlan.getText() + "String_Node_Str");
      try {
        Thread.sleep(1000);
        new BootKali("String_Node_Str" + wlan.getText()).run_bg();
        Thread.sleep(2000);
        if (whitelist.isChecked()) {
          whitelist_command="String_Node_Str";
        }
 else {
          whitelist_command="String_Node_Str";
        }
        intentClickListener_NH("String_Node_Str" + wlan.getText() + "String_Node_Str"+ whitelist_command+ "String_Node_Str"+ channel.getText());
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
    }
  }
);
  scan.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      new BootKali("String_Node_Str").run_bg();
      String cmd="String_Node_Str" + wlan.getText() + "String_Node_Str";
      try {
        new BootKali("String_Node_Str" + wlan.getText() + "String_Node_Str").run_bg();
        Thread.sleep(1000);
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
      new BootKali(cmd).run_bg();
      try {
        Thread.sleep(5000);
        nh=new NhPaths();
        String output=exe.RunAsRootOutput("String_Node_Str").replace("String_Node_Str","String_Node_Str");
        term.setText(output);
      }
 catch (      Exception e) {
        e.printStackTrace();
        term.setText(e.toString());
      }
    }
  }
);
  whitelist.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      if (whitelist.isChecked()) {
        white_me.setClickable(true);
        String check_me=exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
        if (check_me.contains("String_Node_Str")) {
          white_me.setChecked(true);
        }
 else {
          white_me.setChecked(false);
        }
      }
 else {
        white_me.setChecked(false);
        white_me.setClickable(false);
      }
    }
  }
);
  white_me.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View v){
      if (whitelist.isChecked()) {
        if (white_me.isChecked()) {
          if (wlan.getText().toString() == "String_Node_Str") {
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
 else {
            exe.RunAsRootOutput("String_Node_Str" + getmac("String_Node_Str") + "String_Node_Str");
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
        }
 else {
          if (wlan.getText().toString() == "String_Node_Str") {
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
 else {
            exe.RunAsRootOutput("String_Node_Str");
            exe.RunAsRootOutput("String_Node_Str" + getmac(wlan.getText().toString()) + "String_Node_Str");
          }
        }
      }
 else {
        white_me.setChecked(false);
      }
    }
  }
);
  return rootView;
}