[Galaxy S6 General] asc1977:
How to add virtual lock, recent and home button to statusbar

(with RomControl settings for on/off and position)

First thanks [MENTION=5405448]thereassaad[/MENTION] and [MENTION=5262778]kin201303[/MENTION] for sharing some files and settings here and here.

Please go there and press the thanks button.

Now i finished all in a guide with additional smalis to give you all the possibility to set all three buttons to all positions on statusbar.

MULTIMOD GUIDE:

Download attached smalis and paste to smali/com/androis/systemui/statusbar/policy

open res/layout/status_bar.xml and paste the lines in blue at end of xml

</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>[COLOR="Blue"]
<com.android.systemui.statusbar.policy.KeyButtonView_rightlock android:layout_gravity="right" android:id="@id/back" android:paddingRight="50.0dip" android:layout_w idth="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="26" systemui:keyRepeat="false" androidundefinedrientation="vertical" />
<com.android.systemui.statusbar.policy.KeyButtonView_leftlock android:layout_gravity="left" android:id="@id/back" android:paddingRight="50.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="26" systemui:keyRepeat="false" androidundefinedrientation="vertical" />
<com.android.systemui.statusbar.policy.KeyButtonView_centerlock android:layout_gravity="center" android:id="@id/back" android:paddingRight="50.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="26" systemui:keyRepeat="false" androidundefinedrientation="vertical" />
<com.android.systemui.statusbar.policy.KeyButtonView_righthome android:layout_gravity="right" android:orientation="vertical" android:id="@id/home" android:paddingLeft="50.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="3" />
<com.android.systemui.statusbar.policy.KeyButtonView_lefthome android:layout_gravity="left" android:orientation="vertical" android:id="@id/home" android:paddingLeft="50.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="3" />
<com.android.systemui.statusbar.policy.KeyButtonView_centerhome android:layout_gravity="center" android:orientation="vertical" android:id="@id/home" android:paddingLeft="50.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="3" />
<com.android.systemui.statusbar.policy.KeyButtonView_righttask android:layout_gravity="right" android:orientation="vertical" android:id="@id/home" android:paddingLeft="60.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="187" />
<com.android.systemui.statusbar.policy.KeyButtonView_lefttask android:layout_gravity="left" android:orientation="vertical" android:id="@id/home" android:paddingLeft="60.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="187" />
<com.android.systemui.statusbar.policy.KeyButtonView_centertask android:layout_gravity="center" android:orientation="vertical" android:id="@id/home" android:paddingLeft="60.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="#00000000" android:layout_toRightOf="@id/recent_apps" systemui:keyCode="187" />[/COLOR]
</com.android.systemui.statusbar.phone.PhoneStatusBarView>

RomControl:

add that lines to xml where you want

<PreferenceCategory android:title="Virtual Buttons (set one button on position)">
<PreferenceScreen android:title="Lock Button">
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Right side" android:key="cocoyaya_rightcornerlock" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Left side" android:key="cocoyaya_leftcornerlock" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Center" android:key="cocoyaya_centerlock" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
</PreferenceScreen>
<PreferenceScreen android:title="Home Button">
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Right side" android:key="cocoyaya_rightcornerhome" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Left side" android:key="cocoyaya_leftcornerhome" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Center" android:key="cocoyaya_centerhome" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
</PreferenceScreen>
<PreferenceScreen android:title="Recent Button">
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Right side" android:key="cocoyaya_rightcornertask" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Left side" android:key="cocoyaya_leftcornertask" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
<com.wubydax.romcontrol.v2.prefs.MyCheckBoxPreference android:title="Center" android:key="cocoyaya_centertask" android:defaultValue="false" android:summaryOn="On" android:summaryOff="Off" />
</PreferenceScreen>
</PreferenceCategory>

If you want one position not than dont paste that smali, dont add this status_bar.xml line and dont add this RomControl line