[Motorola Atrix HD] devilsking:
Now I will write how to do this mod for your rom.

Requirement:

- Apktool (for decompile/compile) - If you dont have, go and download our Myth Tools here and install it.

- Notepad ++ (recommended or u can use other apps)

- Understanding about decompile/compile/replace file in system

- Deodexed system/rom/firmware

Target:

- We will modify SystemUI.apk

Instructions:

1. Pull your deodexed SystemUI.apk and use apktool to decompile it

2. Find "navigation_bar.xml" in \res\layout. Open it with Notepad ++

3. We need to modify 2 places in navigation_bar.xml:

- This place for screen when it's not rotation:

<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">

- And this place for screen when it's rotation

<FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">

4. In the 1st place, replace the code below (it's under "<LinearLayout..." line):

<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

with

<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

5. In the 2nd place, replace the code below (It's above the "</LinearLayout>" line)

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_weight="0.0" />

with this one:

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="15.0dip" android:layout_weight="0.0" />

6. Now go to /value and open "ids.xml". Then add this line:

<item type="id" name="lock">false</item>

7. Next is editing "strings.xml" in /value. Add this line:

<string name="accessibility_lock">Lock</string>

8. Put the png file for lock image in the attachment below into /res/drawable-xhdpi. Or you can change it to ur image, it's up to u.

9. Compile and test.

Note: I also attached my navigation_bar.xml for you if you need it to compare.

Have fun with modding!

DK