[Samsung Galaxy Nexus] mumumusuc:
Hi guys,I made a mod for PARANOIDANDROID 1.9.1a/1.9.4a And use it myself.

I add a power button into the navbar in tablet mode (and in tablet mode only) to save my power button :D.

here is the screenshot:

View attachment 1231213​

And:it is 1)back; 2)home ; 3&4)recent app/menu(long press);5)power(long press to start the advanced power menu).

Notice:

1)It is for PARANOIDANDROID 1.9.1a/1.9.4a,I dont test it in other version;

2)It just works in tablet mod;

3)backup ur system before flashing it,I dont guarantee it can prefectly work on ur device;

4)recovery flashable.

Here is the package

(for 1.9.4): View attachment 1232599

(for 1.9.1):View attachment 1231460

HOW to:

Decompile SystemUI

navigate to SystemUI/res/layout/system_bar.xml then open with notepad+

find the code between <LinearLayout ></LinearLayout>:

<LinearLayout android:orientation="horizontal" android:id="@id/navigationArea" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true">
<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:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<RelativeLayout android:id="@id/recentsArea" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</RelativeLayout>
</LinearLayout>

And add this code before </LinearLayout>

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/power" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

I change the default

android:layout_width="fill_parent"

to

android:layout_width="wrap_content"

,or the button size will be too big.

& I prefer the honeycomb style icon ,so i change the

android:src="@drawable/ic_sysbar_back(or others)"

to link to the icon I like.

Recompile&Enjoy your work.