[GUIDE]How-to enable 3 dot menu button in S5 ported apps without xposed modules

Search This thread

NimeniAltu

Senior Member
Mar 9, 2012
635
473
Oradea
Hi guys, this is a very easy guide on how to enable the 3 dot menu button in S5 ported apps and on stock touchwiz apps without xposed modules. I tested it on I9505 but should work also on I9500...


Pre-requested :
1.Java
2.Rooted phone
3.Framework-res.apk
4.Any root file explorer

How-to:

1 - Take framework-res.apk located in \system\framework\ and decompile it using apktool or apk manager

2 - Go into \res\values\bools.xml

3 - Search for:

Code:
[COLOR="Blue"]<bool name="[/COLOR][COLOR="Red"]config_DisableHWKeyOptionMenu[/COLOR]"[COLOR="blue"]>false</bool>[/COLOR]

and change it to

Code:
[COLOR="Blue"]<bool name="[/COLOR][COLOR="red"]config_DisableHWKeyOptionMenu[/COLOR][COLOR="Blue"]">true</bool>[/COLOR]

4 - Save file and recompile framework-res.apk

5 - Push the recompiled framework-res.apk to the device and reboot, now you should have 3 dot menu button in all s5 ported apps/stock touchwiz apps.
Now long pressing on home button won't bring up the recent apps, it will bring up google now. So now we need to remap the menu key to bring up the recent apps.

1 - Open /system/usr/keylayout/Generic.kl with root explorer and change

Code:
[COLOR="blue"]key  139[/COLOR]  [COLOR="Red"]MENU[/COLOR]

to

Code:
[COLOR="Blue"]key  139[/COLOR]  [COLOR="Red"]APP_SWITCH[/COLOR]

2 - Save file and reboot. Now menu key will bring up recent apps, just like S5.:D
 

Attachments

  • Screenshot_2014-06-23-21-33-47.jpg
    Screenshot_2014-06-23-21-33-47.jpg
    152.6 KB · Views: 9,759
  • Screenshot_2014-06-23-21-33-41.png
    Screenshot_2014-06-23-21-33-41.png
    171.1 KB · Views: 9,714
  • Screenshot_2014-06-23-21-33-28.png
    Screenshot_2014-06-23-21-33-28.png
    148.8 KB · Views: 9,250
Last edited:

osherdadon

Senior Member
Apr 10, 2014
282
61
Hi guys, this is a very easy guide on how to enable the 3 dot menu button in S5 ported apps and on stock touchwiz apps without xposed modules.


Pre-requested :
1.Java
2.Rooted phone
3.Framework-res.apk
4.Any root file explorer

How-to:

1 - Take framework-res.apk located in \system\framework\ and decompile it using apktool or apk manager

2 - Go into \res\values\bools.xml

3 - Search for:

Code:
[COLOR="Blue"]<bool name="[/COLOR][COLOR="Red"]config_DisableHWKeyOptionMenu[/COLOR]"[COLOR="blue"]>false</bool>[/COLOR]

and change it to

Code:
[COLOR="Blue"]<bool name="[/COLOR][COLOR="red"]config_DisableHWKeyOptionMenu[/COLOR][COLOR="Blue"]">true</bool>[/COLOR]

4 - Save file and recompile framework-res.apk

5 - Push the recompiled framework-res.apk to the device and reboot, now you should have 3 dot menu button in all s5 ported apps/stock touchwiz apps.
Now long pressing on home button won't bring up the recent apps, it will bring up google now. So now we need to remap the menu key to bring up the recent apps.

1 - Open /system/usr/keylayout/Generic.kl with root explorer and change

Code:
[COLOR="blue"]key  139[/COLOR]  [COLOR="Red"]MENU[/COLOR]

to

Code:
[COLOR="Blue"]key  139[/COLOR]  [COLOR="Red"]APP_SWITCH[/COLOR]

2 - Save file and reboot. Now menu key will bring up recent apps, just like S5.:D

Wowww menn RESPECT !!

---------- Post added at 09:38 PM ---------- Previous post was at 09:06 PM ----------

Code:
C:\apktool>apktool b framework
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apktool\framework\res/anim-sw360dp-480dpi
invalid resource directory name: C:\apktool\framework\res/color-sw360dp-480dpi
invalid resource directory name: C:\apktool\framework\res/color-sw360dp-hdpi
invalid resource directory name: C:\apktool\framework\res/drawable-sw360dp-480dp
i
invalid resource directory name: C:\apktool\framework\res/drawable-sw360dp-hdpi
invalid resource directory name: C:\apktool\framework\res/drawable-sw360dp-land-
480dpi
invalid resource directory name: C:\apktool\framework\res/drawable-sw360dp-w598d
p-hdpi
invalid resource directory name: C:\apktool\framework\res/drawable-sw360dp-w640d
p-480dpi
invalid resource directory name: C:\apktool\framework\res/drawable-sw360dp-w640d
p-hdpi
invalid resource directory name: C:\apktool\framework\res/layout-sw360dp
invalid resource directory name: C:\apktool\framework\res/layout-sw360dp-480dpi
invalid resource directory name: C:\apktool\framework\res/layout-sw360dp-hdpi
invalid resource directory name: C:\apktool\framework\res/layout-sw360dp-w598dp-
hdpi
invalid resource directory name: C:\apktool\framework\res/layout-sw360dp-w640dp-
480dpi
invalid resource directory name: C:\apktool\framework\res/layout-sw360dp-w640dp-
hdpi
invalid resource directory name: C:\apktool\framework\res/layout-w600dp
invalid resource directory name: C:\apktool\framework\res/values-h720dp
invalid resource directory name: C:\apktool\framework\res/values-sw360dp-480dpi
invalid resource directory name: C:\apktool\framework\res/values-sw360dp-hdpi
invalid resource directory name: C:\apktool\framework\res/values-w360dp
invalid resource directory name: C:\apktool\framework\res/values-w480dp
invalid resource directory name: C:\apktool\framework\res/values-w500dp
invalid resource directory name: C:\apktool\framework\res/values-w600dp
invalid resource directory name: C:\apktool\framework\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Remote\AppData\Local\Temp\
APKTOOL6910571954294614253.tmp, -x, -S, C:\apktool\framework\res, -M, C:\apktool
\framework\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Remote\AppData\Local\Temp\APKTOOL6910571954294614253.tmp, -x, -S, C:\apktoo
l\framework\res, -M, C:\apktool\framework\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more

C:\apktool>
Help ? :confused:
 
  • Like
Reactions: NimeniAltu

osherdadon

Senior Member
Apr 10, 2014
282
61

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    Hi guys, this is a very easy guide on how to enable the 3 dot menu button in S5 ported apps and on stock touchwiz apps without xposed modules. I tested it on I9505 but should work also on I9500...


    Pre-requested :
    1.Java
    2.Rooted phone
    3.Framework-res.apk
    4.Any root file explorer

    How-to:

    1 - Take framework-res.apk located in \system\framework\ and decompile it using apktool or apk manager

    2 - Go into \res\values\bools.xml

    3 - Search for:

    Code:
    [COLOR="Blue"]<bool name="[/COLOR][COLOR="Red"]config_DisableHWKeyOptionMenu[/COLOR]"[COLOR="blue"]>false</bool>[/COLOR]

    and change it to

    Code:
    [COLOR="Blue"]<bool name="[/COLOR][COLOR="red"]config_DisableHWKeyOptionMenu[/COLOR][COLOR="Blue"]">true</bool>[/COLOR]

    4 - Save file and recompile framework-res.apk

    5 - Push the recompiled framework-res.apk to the device and reboot, now you should have 3 dot menu button in all s5 ported apps/stock touchwiz apps.
    Now long pressing on home button won't bring up the recent apps, it will bring up google now. So now we need to remap the menu key to bring up the recent apps.

    1 - Open /system/usr/keylayout/Generic.kl with root explorer and change

    Code:
    [COLOR="blue"]key  139[/COLOR]  [COLOR="Red"]MENU[/COLOR]

    to

    Code:
    [COLOR="Blue"]key  139[/COLOR]  [COLOR="Red"]APP_SWITCH[/COLOR]

    2 - Save file and reboot. Now menu key will bring up recent apps, just like S5.:D
    6
    @op knows how to do it and he said he will release the tutorial later :)

    Sent from my SM-G900F using Tapatalk


    Bro have you manage to fix the devider line between ok and cancel?.

    Sent from my GT-I9505 using XDA Premium 4 mobile app

    for the divider line you have to decompile framework. Then go into FRAMEWORK-RES.APK/VALUES/STYLES.XML and insert this lines instead originals

    sorry tapatalk doesn't recognize code...see the image
    ybazeryp.jpg


    rurudapa.jpg
    4
    Could not found sources using androidmultitool.. I cant compile the apk. Pls. Help

    Sent from my GT-I9505 using XDA Premium 4 mobile app

    Here's an easy one Decompile Framework-res.apk then Go to res/Values/ Styles.xml and open the file using notepad++ , Look for the line # 3306 or <item name="divider">@color/transparent</item>and change it to
    Code:
    [B][COLOR="DarkGreen"]<item name="divider">@drawable/tw_divider_popup_vertical_holo_dark[/COLOR]</item>[/B]

    Next look for the line # 3313 or <item name="divider">@color/transparent</item>and change it to
    Code:
    [B][COLOR="DarkGreen"]<item name="divider">@drawable/tw_divider_popup_vertical_holo_light</item>[/COLOR][/B]
    . Save ! Compile /Sign ! Done ,

    Credits to @dangua
    3
    Great job

    Great and very simple tutorial. Great job