[guide] statusbar and lockscreen app shortcuts,5button navigation bar

yash989

Senior Member
Sep 10, 2012
2,369
2,260
0
jodhpur
higuys this is my second guide in this i will tell u how to add shortcuts on statusbar and lockcreen

STEPS
- decompile systemui.apk
- download the attached file copy to com/android/systemui/statusbar/policy
- and move the xml file to res - layout
- than go to res - layout
- than add this code to memory usage item.xml after this line xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<HorizontalScrollView android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <com.android.systemui.statusbar.policy.quicklaunch.QuickLaunchContainer android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" />
      </HorizontalScrollView>
- than open keyguard status view.xml
- paste this lines above
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
Code:
<include android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/zzzzzzzz_keyguard_shortcut" />
- done recompile and push back to system and enjoy


CREDITS
- 3minit developer
- me for this idea
 

Attachments

Last edited:

yash989

Senior Member
Sep 10, 2012
2,369
2,260
0
jodhpur
5 navigation bar buttons

Steps
- decompile systemui
- paste this in res-values-ids.xml
Code:
<item type="id" name="lock">false</item>
    <item type="id" name="newmenu">false</item>
- than in strings.xml paste this
Code:
<string name="accessibility_lock">Lock</string>
- than go to layout-navigationbar.xml and change this lines see image below for where to paste
Code:
<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="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
            <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/newmenu" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
            <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/home" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
            <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="70.0dip" 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" />
            <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/recent_apps" android:layout_width="70.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
            <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/menu" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
like this
View attachment 3705797
- and just after that
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="0.0">
make both with and hieght to 0.0dip
- after that change this lines see image below for where to paste
Code:
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <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/recent_apps" android:layout_width="fill_parent" android:layout_height="70.0dip" android:src="@drawable/ic_sysbar_recent_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
            <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="70.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" />
            <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/home" android:layout_width="fill_parent" android:layout_height="70.0dip" android:src="@drawable/ic_sysbar_home_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
            <View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
            <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/newmenu" android:layout_width="fill_parent" android:layout_height="70.0dip" android:src="@drawable/ic_sysbar_menu_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
            <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="fill_parent" android:layout_height="70.0dip" android:src="@drawable/ic_sysbar_back_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
            <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/menu" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
like this
View attachment 3705806
- and just above this lines u will see this line
Code:
<FrameLayout android:layout_width="fill_parrent" android:layout_height="fill_parrent" android:layout_weight="0.0">
make both with and hieght to 0.0dip
- than addd this in drawable-xhdpi folder - http://d-h.st/tkg
-done recompile push to system
-screenshot in first post

Credits
- rejeev
- me(because for 5.0+ its diffenet u can follow rajeev guides u will get error and i fixed them)
 
Last edited: