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

Search This thread

rahul1533

Senior Member
Sep 18, 2013
963
1,585
ahmedabad
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
@NimeniAltu im using auroro rom for s4 and there is 3dot menu...
But i want stock s4 menukey can u help me to do this .. i will give u roms ftamework file...?
 

k525ab

Senior Member
Aug 13, 2013
87
17
52
Moscow
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...


awesome, dude, tnanks, works ok on tw 5.0.1 S4 Active I9295:good:

upd. but 139 app_switch not works(
 
Last edited:

illikkalshahid

Senior Member
Mar 17, 2013
115
11
CALICUT
I'm unable to push apk using adb. it says failed because read only file system. I'm on stock lollipop rooted. Is there any alternative way ? please help.
 

gicamuci

New member
May 23, 2015
1
0
Have a S5 G900W8 with kk4.4.2
Don't have a folder named values in res. I did search though for books.xml and it just doesn't exist.
Any idea how to do it on this model ?
Being my first post here, I can't post normal outside links so you can see my framework-res.apk

h t t p s://drive.google.com/file/d/0BzwnqZGb1vlsOGt0NTNmOENtNnc/view?usp=sharing

Multumesc :)
 

qool82

Member
May 13, 2015
16
5
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

It doesn´t work for me. I get a bootloop with the recompiled framework-res.apk. Can anyone help me. My Phone I9505 with Lollipop 5.0.1 stock rom. THX for help.
 

qool82

Member
May 13, 2015
16
5
It doesn´t work for me. I get a bootloop with the recompiled framework-res.apk. Can anyone help me. My Phone I9505 with Lollipop 5.0.1 stock rom. THX for help.

If u get a bootloop -> open the recompiled framework-res.apk with winrar and change the META-INF folder and the AndroidManifest.xml with the original files from the original framework-res.apk and save.
It works for me.

greetz
 
  • Like
Reactions: crizalid8

Ronussks

Member
Aug 4, 2015
32
5
I followed all the steps in my s4 mini. but there is no values/bools.xml. (2 - Go into \res\values\bools.xml. )
can anyone tell me how to modify it in my device...
 

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