[Demonstration 1]

[Buggy Method]
public void updaterecentstyles(Task t) {
    boolean mClearStyleSwitch = Settings.System.getInt(mContext.getContentResolver(), Settings.System.CLEAR_RECENTS_STYLE_ENABLE, 0) == 1;
    final Resources res = getContext().getResources();
    int mTint = 0x00ffffff;
    int Black = Color.BLACK;
    int mLightColor = res.getColor(R.color.recents_task_bar_dark_dismiss_color);
    int mDarkColor = res.getColor(R.color.recents_task_bar_dark_dismiss_color);
    mApplicationIcon = (ImageView) findViewById(R.id.application_icon);
    int mFloatcolor = Settings.System.getInt(mContext.getContentResolver(), Settings.System.FLOAT_BUTTON_COLOR, 0xffDC4C3C);
    int mPincolor = Settings.System.getInt(mContext.getContentResolver(), Settings.System.PIN_BUTTON_COLOR, 0xff009688);
    int mMwcolor = Settings.System.getInt(mContext.getContentResolver(), Settings.System.MW_BUTTON_COLOR, 0xFFFFFFFF);
    int mKillColor = Settings.System.getInt(mContext.getContentResolver(), Settings.System.KILL_APP_BUTTON_COLOR, 0xFFFFFFFF);
    int mAppColor = Settings.System.getInt(mContext.getContentResolver(), Settings.System.TV_APP_COLOR, 0x00FFFFFF);
    int mTextColor = Settings.System.getInt(mContext.getContentResolver(), Settings.System.TV_APP_TEXT_COLOR, 0xFFFFFFFF);
    if (mClearStyleSwitch) {
        if (mDismissButton != null) {
            mDismissButton.setColorFilter(mKillColor, Mode.SRC_ATOP);
        }
        if (mPinButton != null) {
            mPinButton.setColorFilter(mPincolor, Mode.SRC_ATOP);
        }
        if (mMoveTaskButton != null) {
            mMoveTaskButton.setColorFilter(mMwcolor, Mode.SRC_ATOP);
        }
        if (mFloatButton != null) {
            mFloatButton.setColorFilter(mFloatcolor, Mode.SRC_ATOP);
        }
        if (mApplicationIcon != null) {
            if (mAppColor != mTint) {
                mApplicationIcon.setColorFilter(mAppColor);
            }
        }
        if (mActivityDescription != null) {
            mActivityDescription.setTextColor(mTextColor);
        }
    } else {
        if (mDismissButton != null) {
            mDismissButton.setColorFilter(null);
        }
        if (mPinButton != null) {
            mPinButton.setColorFilter(null);
        }
        if (mMoveTaskButton != null) {
            mMoveTaskButton.setColorFilter(null);
        }
        if (mFloatButton != null) {
            mFloatButton = (ImageView) findViewById(R.id.float_task);
            mFloatButton.setImageDrawable(t.useLightOnPrimaryColor ? mLightFloatDrawable : mDarkFloatDrawable);
            mFloatButton.setColorFilter(null);
            if (mDarkFloatDrawable != null) {
                mDarkFloatDrawable.setColorFilter(mDarkColor, Mode.SRC_IN);
            }
        }
        if (mApplicationIcon != null) {
            if (mAppColor != mTint) {
                mApplicationIcon.setColorFilter(null);
            }
        }
        if (mActivityDescription != null) {
            mActivityDescription.setTextColor(t.useLightOnPrimaryColor ? mConfig.taskBarViewLightTextColor : mConfig.taskBarViewDarkTextColor);
        }
    }
}

[Buggy Hunk]
Settings.System.TV_APP_COLOR, 0x00FFFFFF);

[Patch]
Settings.System.TV_APP_COLOR, 0x00000000);

[Demonstration 2]

[Buggy Method]
public void setSideViewAdapter() {
    zSideControlView = (ControlPanelView) findViewById(R.id.side_recycler_view);
    zSideControlView.setLayoutManager(1);
    sideAdapter = new ZSideControlViewAdapter(ControlPanelActivity.this, controlView.getMeasuredHeight(), pcm);
    zSideControlView.setSideViewAdapter(sideAdapter, getApplicationContext());
}

[Buggy Hunk]
sideAdapter = new ZSideControlViewAdapter(ControlPanelActivity.this, controlView.getMeasuredHeight(), pcm);

[Patch]
sideAdapter = new ZSideControlViewAdapter(ControlPanelActivity.this, device_height-134, pcm);

[Demonstration 3]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_welcome);
    mNetworkClient = new NetworksClient();
    mAndroid_id = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);
    checkIfIdExists();
    LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
    if (!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
        Toast.makeText(this, "Please enable location services for Kyzr", Toast.LENGTH_LONG).show();
        startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));
    }
    mNewUser = (EditText) findViewById(R.id.etTorchName);
    Button submit = (Button) findViewById(R.id.bSubmitTorch);
    submit.setOnClickListener(this);
}

[Buggy Hunk]
mAndroid_id = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);

[Patch]
mAndroid_id = "fdsafdsa"; //Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);