Program: 94133
Project: 94133
Buggy source:
protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ColorDrawable colorDrawable=new ColorDrawable(Color.parseColor("String_Node_Str"));
  final TelephonyManager tm=(TelephonyManager)getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);
  final String tmDevice, tmSerial, androidId;
  tmDevice="String_Node_Str" + tm.getDeviceId();
  tmSerial="String_Node_Str" + tm.getSimSerialNumber();
  androidId="String_Node_Str" + android.provider.Settings.Secure.getString(getContentResolver(),android.provider.Settings.Secure.ANDROID_ID);
  UUID deviceUuid=new UUID(androidId.hashCode(),((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());
  String deviceId=deviceUuid.toString();
  final String confirmationID=readStringPreference("String_Node_Str");
  final Context context=this;
  ChangeLog cl=new ChangeLog(context);
  if (cl.isFirstRun()) {
    cl.getLogDialog().show();
  }
  setContentView(R.layout.activity_main);
  getSupportActionBar().setDisplayShowCustomEnabled(true);
  getSupportActionBar().setCustomView(R.layout.abs);
  getSupportActionBar().setBackgroundDrawable(colorDrawable);
  Button settings=(Button)findViewById(R.id.settings);
  Button filterStore=(Button)findViewById(R.id.filterStore);
  Button reedem=(Button)findViewById(R.id.reedem);
  Button donate=(Button)findViewById(R.id.donate);
  Button about=(Button)findViewById(R.id.about);
  Button legal=(Button)findViewById(R.id.legal);
  Button visual=(Button)findViewById(R.id.visualbtn);
  TextView SC_text=(TextView)findViewById(R.id.SC_text);
  SC_text.setPaintFlags(SC_text.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
  settings.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      getFragmentManager().beginTransaction().replace(R.id.frame_layout,new Settings()).commit();
      PreferenceManager.setDefaultValues(getApplicationContext(),R.xml.preferences,false);
    }
  }
);
  filterStore.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),TabsFragmentActivity.class);
      startActivity(intent);
    }
  }
);
  visual.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),VisualActivity.class);
      startActivity(intent);
    }
  }
);
  reedem.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),Reedem.class);
      startActivity(intent);
    }
  }
);
  about.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      new AlertDialog.Builder(context).setTitle("String_Node_Str").setMessage("String_Node_Str" + getResources().getString(R.string.pref_thanks_summary) + "String_Node_Str"+ BuildConfig.VERSION_NAME+ "String_Node_Str"+ Obfuscator.SUPPORTED_VERSION_CODENAME).setPositiveButton(android.R.string.yes,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          return;
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  legal.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      new AlertDialog.Builder(context).setTitle("String_Node_Str").setMessage(Html.fromHtml("String_Node_Str")).setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          return;
        }
      }
).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          try {
            Intent myIntent=new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str"));
            startActivity(myIntent);
          }
 catch (          ActivityNotFoundException e) {
            Toast.makeText(getApplicationContext(),"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            e.printStackTrace();
          }
        }
      }
).setNeutralButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          try {
            Intent myIntent=new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str"));
            startActivity(myIntent);
          }
 catch (          ActivityNotFoundException e) {
            Toast.makeText(getApplicationContext(),"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            e.printStackTrace();
          }
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  donate.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      new AlertDialog.Builder(context).setTitle("String_Node_Str").setMessage("String_Node_Str").setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          try {
            Intent myIntent=new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str"));
            startActivity(myIntent);
          }
 catch (          ActivityNotFoundException e) {
            Toast.makeText(getApplicationContext(),"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            e.printStackTrace();
          }
        }
      }
).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          return;
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  AdView mAdView=(AdView)findViewById(R.id.adView);
  if (readLicense(deviceId,confirmationID) == 1 || readLicense(deviceId,confirmationID) == 2) {
    mAdView.destroy();
    mAdView.setVisibility(View.GONE);
  }
 else {
    AdRequest adRequest=new AdRequest.Builder().addTestDevice("String_Node_Str").build();
    mAdView.loadAd(adRequest);
    mAdView.setVisibility(View.VISIBLE);
  }
}

Fixed version (ground truth):
protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ColorDrawable colorDrawable=new ColorDrawable(Color.parseColor("String_Node_Str"));
  final TelephonyManager tm=(TelephonyManager)getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);
  final String tmDevice, tmSerial, androidId;
  tmDevice="String_Node_Str" + tm.getDeviceId();
  tmSerial="String_Node_Str" + tm.getSimSerialNumber();
  androidId="String_Node_Str" + android.provider.Settings.Secure.getString(getContentResolver(),android.provider.Settings.Secure.ANDROID_ID);
  UUID deviceUuid=new UUID(androidId.hashCode(),((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());
  String deviceId=deviceUuid.toString();
  final String confirmationID=readStringPreference("String_Node_Str");
  final Context context=this;
  ChangeLog cl=new ChangeLog(context);
  if (cl.isFirstRun()) {
    cl.getLogDialog().show();
  }
  setContentView(R.layout.activity_main);
  getActionBar().setDisplayShowCustomEnabled(true);
  getActionBar().setCustomView(R.layout.abs);
  getActionBar().setBackgroundDrawable(colorDrawable);
  Button settings=(Button)findViewById(R.id.settings);
  Button filterStore=(Button)findViewById(R.id.filterStore);
  Button reedem=(Button)findViewById(R.id.reedem);
  Button donate=(Button)findViewById(R.id.donate);
  Button about=(Button)findViewById(R.id.about);
  Button legal=(Button)findViewById(R.id.legal);
  Button visual=(Button)findViewById(R.id.visualbtn);
  TextView SC_text=(TextView)findViewById(R.id.SC_text);
  SC_text.setPaintFlags(SC_text.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
  settings.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      getFragmentManager().beginTransaction().replace(R.id.frame_layout,new Settings()).addToBackStack("String_Node_Str").commit();
      PreferenceManager.setDefaultValues(getApplicationContext(),R.xml.preferences,false);
    }
  }
);
  filterStore.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),TabsFragmentActivity.class);
      startActivity(intent);
    }
  }
);
  visual.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),VisualActivity.class);
      startActivity(intent);
    }
  }
);
  reedem.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      Intent intent=new Intent(getApplicationContext(),Reedem.class);
      startActivity(intent);
    }
  }
);
  about.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      new AlertDialog.Builder(context).setTitle("String_Node_Str").setMessage("String_Node_Str" + getResources().getString(R.string.pref_thanks_summary) + "String_Node_Str"+ BuildConfig.VERSION_NAME+ "String_Node_Str"+ Obfuscator.SUPPORTED_VERSION_CODENAME).setPositiveButton(android.R.string.yes,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          return;
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  legal.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      new AlertDialog.Builder(context).setTitle("String_Node_Str").setMessage(Html.fromHtml("String_Node_Str")).setPositiveButton(android.R.string.ok,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          return;
        }
      }
).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          try {
            Intent myIntent=new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str"));
            startActivity(myIntent);
          }
 catch (          ActivityNotFoundException e) {
            Toast.makeText(getApplicationContext(),"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            e.printStackTrace();
          }
        }
      }
).setNeutralButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          try {
            Intent myIntent=new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str"));
            startActivity(myIntent);
          }
 catch (          ActivityNotFoundException e) {
            Toast.makeText(getApplicationContext(),"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            e.printStackTrace();
          }
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  donate.setOnClickListener(new Button.OnClickListener(){
    public void onClick(    View v){
      new AlertDialog.Builder(context).setTitle("String_Node_Str").setMessage("String_Node_Str").setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          try {
            Intent myIntent=new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str"));
            startActivity(myIntent);
          }
 catch (          ActivityNotFoundException e) {
            Toast.makeText(getApplicationContext(),"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            e.printStackTrace();
          }
        }
      }
).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          return;
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  AdView mAdView=(AdView)findViewById(R.id.adView);
  if (readLicense(deviceId,confirmationID) == 1 || readLicense(deviceId,confirmationID) == 2) {
    mAdView.destroy();
    mAdView.setVisibility(View.GONE);
  }
 else {
    AdRequest adRequest=new AdRequest.Builder().addTestDevice("String_Node_Str").build();
    mAdView.loadAd(adRequest);
    mAdView.setVisibility(View.VISIBLE);
  }
}