Environment:
Android with root access.
Windows with drivers for Android device.
Java(JRE) installed.
Prepare:
apktool.jar (http://code.google.com/p/android-apktool/downloads/list)
adb.exe (android-sdk\platform-tools)
notepad++ or similar text editor which supported UTF-8 without BOM, not notepad or wordpad.
Steps:
1. Pull SystemUI.apk from your device.
CMD>adb pull /system/app/SystemUI.apk .
2. Extract res in apk.
CMD>apktool d -b -s SystemUI.apk
3. Edit the XML file in 'SystemUI/res/layout/system_bar.xml'.
You can find several KeyButtonView like:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/volume_down" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_volume_down" systemui:keyCode="25" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
Change 'android:layout_width="@dimen/navigation_key_width"' to 'android:layout_width="0.0dp"' in the KeyButtonView which you want to hide.
4. Combine edited apk.
CMD>apktool b SystemUI
Now get new dictionary 'build' under SystemUI.
5. Open SystemUI.apk using 7-Zip/WinRar/WinZip.
Extract 'META-INF' and 'AndroidManifest.xml' in apk to path 'SystemUI/build/apk'
4. Recombine apk as step 4.
CMD>apktool b SystemUI
Now you can get a new apk under 'SystemUI\dist'.
5. Make '/system' writable in your device.
CMD>adb shell
root@android:/ # busybox mount -o remount,rw /system
root@android:/ # exit
6. Push new apk to your device.
CMD>adb push SystemUI\dist\SystemUI.apk /system/app/SystemUI.apk
7. Reboot you Android device by hand,
or use command.
CMD>adb reboot
8. Congratulation!