How to add virtual lock button in statusbar
decompile SystemUI.apk
edit status_bar.xml
add this line at the end
Code:</LinearLayout> [COLOR="Blue"] <com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/back" android:layout_width="60.0dip" android:layout_height="fill_parent" android:src="#00000000" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" androidundefinedrientation="vertical" />[/COLOR] </com.android.systemui.statusbar.phone.PhoneStatusBarView>
you can change position with android:layout_gravity "right" "center" or "left"
you can change size (widht) with value android:layout_width
Thx @Carotix
does this not work in Android 10 anymore?
is there any mods thread for Android 10/11