well, recently I've been trying to remap the softkeys on the note II, and I'm just not making progress. My goal is to create a small mod that turns the softkey lights off, and remaps the menu key for the back key, and the back key to recents, as well as somehow changing the home button longpress to a google now shortcut.
After doing some research, I figured changing the Generic.kl (/system/usr/keylayout/) lines 139 and 158 would make progress. However, all I've accomplished so far is disabling the softkeys.
Any help or information on this subject would be greatly appreciated.
Thanks in advance.
- and yes, I tried the ButtonRemapper apk
I made this file months ago, and it's worked on every TW rom I've had, since I HATE the backwards button layout Samsung chose. Download this file, go to your /system/usr/keylayout folder, rename your existing sec_touchkey.kl to sec_touchkey.kl.bak, then move the file I gave you into that folder. Set permissions and reboot, and you'll have the setup you want.
Obviously, just turn the backlights off in the Display settings. Do note that you won't have a menu button after you do this, I just use Button Savior to put a little shortcut off to the side. But if you come up with a more elegant solution, please feel free to let me know.
That file should do what you want, all I ask is that you credit me if you share it with anyone, put it in a rom, or whatever.
http://db.tt/RzSutNxL
Sent from my SCH-I535 using Tapatalk 2
Cruiserdude said:
I made this file months ago, and it's worked on every TW rom I've had, since I HATE the backwards button layout Samsung chose. Download this file, go to your /system/usr/keylayout folder, rename your existing sec_touchkey.kl to sec_touchkey.kl.bak, then move the file I gave you into that folder. Set permissions and reboot, and you'll have the setup you want.
Obviously, just turn the backlights off in the Display settings. Do note that you won't have a menu button after you do this, I just use Button Savior to put a little shortcut off to the side. But if you come up with a more elegant solution, please feel free to let me know.
That file should do what you want, all I ask is that you credit me if you share it with anyone, put it in a rom, or whatever.
http://db.tt/RzSutNxL
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Thanks a bunch!
idiotzach15 said:
Thanks a bunch!
Click to expand...
Click to collapse
I'll be creating a flash zip for this "fix" soon. Does anyone know where I'd change the longpress on the homebutton action?
idiotzach15 said:
I'll be creating a flash zip for this "fix" soon. Does anyone know where I'd change the longpress on the homebutton action?
Click to expand...
Click to collapse
/system/framework/android.policy.jar/PhoneWindowManager.java
At leasts thats what i can remember lol. Thats what i had to edit on my Tablet to make long press on home function as long press search.
Yeah, I'd love to find a way to enable a long press of the right hand capacitive button (back button stock, but it's the task switcher with that file I posted) to act as a menu button. That would be awesome.
Alternatively, I'd love to figure out how to change the TW soft keys to AOSP theme and layout. I love using soft keys, but I can't stand the backwards layout Samsung has chosen, and can't bring myself to using it if I can help it.
Sent from my SCH-I535 using Tapatalk 2
Cruiserdude said:
Yeah, I'd love to find a way to enable a long press of the right hand capacitive button (back button stock, but it's the task switcher with that file I posted) to act as a menu button. That would be awesome.
Alternatively, I'd love to figure out how to change the TW soft keys to AOSP theme and layout. I love using soft keys, but I can't stand the backwards layout Samsung has chosen, and can't bring myself to using it if I can help it.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
You can add your own methods to the android.policy.jar file to handle different on hold actions.
Sent from my SGH-T999
"So I put my phone into airplane mode and threw it... worst transformer ever. -.-" -My friend
elesbb said:
/system/framework/android.policy.jar/PhoneWindowManager.java
At leasts thats what i can remember lol. Thats what i had to edit on my Tablet to make long press on home function as long press search.
Click to expand...
Click to collapse
Every file editor I try is unable to open/edit the android.policy.jar file. How do I edit it?
tonyf7 said:
Every file editor I try is unable to open/edit the android.policy.jar file. How do I edit it?
Click to expand...
Click to collapse
Have to decompile it using apktool
Sent from my SPH-L710 using xda app-developers app
elesbb said:
You can add your own methods to the android.policy.jar file to handle different on hold actions.
Sent from my SGH-T999
"So I put my phone into airplane mode and threw it... worst transformer ever. -.-" -My friend
Click to expand...
Click to collapse
Is it possible to add a method that when back is pressed twice it launches an app? Or can I modify long press to launch an app like voice commands?
hi guyz.. one question.. i'd want to remap the buttons with this logoc
1 press menù -> multitasking tab
long press menù -> menù
long press home buttons -> gvoice
any idea how to use it?
i'm on swift rom v3 + perseus kernel and, i don't have the sec_touchkey file! o.o
how to?
i'd want to use the stock tw launcher, not another one..
thanks
---------- Post added at 03:58 PM ---------- Previous post was at 03:21 PM ----------
Ok i edited the file and puted it in right folder.. now i have the multitasking in normal menù press, but NOT the menù in the hold.. what could i do?
hi, is there any way to wake-up screen without home key, power key and volume key? actualy my home button is now not as hard as it was before, i am afraid it may damage some day, so does power key, i know about few apps which wakes up using sensor, but it's not for me, it drains battery too much, i want something like waking up phone with capative touch keys, or swiping them, is it possible to change key 172 which is home button to a menu key for waking up? in system/usr/keylayout/ ?
Shekar.m1986 said:
hi, is there any way to wake-up screen without home key, power key and volume key? actualy my home button is now not as hard as it was before, i am afraid it may damage some day, so does power key, i know about few apps which wakes up using sensor, but it's not for me, it drains battery too much, i want something like waking up phone with capative touch keys, or swiping them, is it possible to change key 172 which is home button to a menu key for waking up? in system/usr/keylayout/ ?
Click to expand...
Click to collapse
the situation is simple.. ALL IS POSSIBLE..
i you know java code as advance user, i can send you files witch you should recompile
but.. the situation is simple.. if you always turn on the soft buttons, you'll lose a lot of energy, since ALL screen is alimented..
Soft touch buttons uses the same touch as screen, so, you always have to aliment it
ok.. 2 issues:
1) if leg touch the soft button, screen will be turned on
2) showp-1984 creates the swipe2wake, for htc phones, you need a lot of c++ knowledge to recompile it
But.. in my opinion, buttons are "immortal" than soft touch..
I have an old keyboard.. it had about 12 years.. and works good.. and.. i used it for 6 years til change, so, dont be scary, i don't think you are breaking your buttons!!
---------- Post added at 02:03 PM ---------- Previous post was at 01:57 PM ----------
Btw.. i find the code witch is the governor of the buttons.. it's in android.policy.jar file.. and.. i tryed to force the hold home button to hold menù button, and sure, it worked, with one issue: menù always had the search function
So.. the situation is simple... i don't know how to code with java, and sure, i need a good java programmer to do what i whould do.. at last.. only one "stupid thing".. change the hold home button app switch to menù.. so.. i could have:
Menù button as app switch with 1 press (easy to do)
standard press of home as move home function and hold it for the android MENU
And back as always
I only need one coder witch can modify me the @8 VALUE
Any good person??
iba21 said:
the situation is simple.. ALL IS POSSIBLE..
i you know java code as advance user, i can send you files witch you should recompile
but.. the situation is simple.. if you always turn on the soft buttons, you'll lose a lot of energy, since ALL screen is alimented..
Soft touch buttons uses the same touch as screen, so, you always have to aliment it
ok.. 2 issues:
1) if leg touch the soft button, screen will be turned on
2) showp-1984 creates the swipe2wake, for htc phones, you need a lot of c++ knowledge to recompile it
But.. in my opinion, buttons are "immortal" than soft touch..
I have an old keyboard.. it had about 12 years.. and works good.. and.. i used it for 6 years til change, so, dont be scary, i don't think you are breaking your buttons!!
---------- Post added at 02:03 PM ---------- Previous post was at 01:57 PM ----------
Btw.. i find the code witch is the governor of the buttons.. it's in android.policy.jar file.. and.. i tryed to force the hold home button to hold menù button, and sure, it worked, with one issue: menù always had the search function
So.. the situation is simple... i don't know how to code with java, and sure, i need a good java programmer to do what i whould do.. at last.. only one "stupid thing".. change the hold home button app switch to menù.. so.. i could have:
Menù button as app switch with 1 press (easy to do)
standard press of home as move home function and hold it for the android MENU
And back as always
I only need one coder witch can modify me the @8 VALUE
Any good person??
Click to expand...
Click to collapse
I see, actually you're right, i forgot that we have to decompile android.policy.jar to be able to change wake up keys, i remember it when i saw someone changed wake-up key to volume buttons through android.policy.jar, it's quite strange that with samsung decvices which uses physical home button to screen wake, doesn't have any mod to alternative method, one you already mentioned sweep2wake, a pleasent feature to relief power button of htc devices, what about the relief for Samsung's physical home key? i am not so fussed about other use of physical key, i only want to change screen wake key to capacitive menu key or something like sweep2wake..i can see after sometime, lots of users complain about home key, so a handy mod should be there.
by the way can you send me an edited file with menu (capacitive button) wake up enabled?
Shekar.m1986 said:
I see, actually you're right, i forgot that we have to decompile android.policy.jar to be able to change wake up keys, i remember it when i saw someone changed wake-up key to volume buttons through android.policy.jar, it's quite strange that with samsung decvices which uses physical home button to screen wake, doesn't have any mod to alternative method, one you already mentioned sweep2wake, a pleasent feature to relief power button of htc devices, what about the relief for Samsung's physical home key? i am not so fussed about other use of physical key, i only want to change screen wake key to capacitive menu key or something like sweep2wake..i can see after sometime, lots of users complain about home key, so a handy mod should be there.
by the way can you send me an edited file with menu (capacitive button) wake up enabled?
Click to expand...
Click to collapse
I'd want but, i'm not a java programmer, i don't know how to do to remap a button, do you think i know how to force the electromagneticity on??
I think is not easy whaylt ypu would do.. and sure.. you have to modify more than 1 jar file.. because.. i ONLY have to REMAP a button, so, stock, only have to do ANOTHER THING... you want to change a power features.. i think you have to modify the kernel (sweep 2 wake is a feature of the kernel, not of the rom.. kernel is writed in c++.. android is writed in java, uses the java machine)
---------- Post added at 09:05 PM ---------- Previous post was at 08:22 PM ----------
Oh right.. one thing.. emh.. in my opinion.. button is a button, and samusung did some test about the resistence of the button
Sure.. time destroys all.. so.. you could have a softly botton after 12 months.. but.. i don't think you'll damage it soon..
Warranty is here.. you can send phone to the costructor if you have a problem
P.s. i have old phones, as like a siemens s10.. and.. ALL buttons are ok..
That phone was used by:
Dad > mom > me > brother > second brother
It has about, 8years of usage.. no prob..
Dont know why you are so worried!
iba21 said:
I'd want but, i'm not a java programmer, i don't know how to do to remap a button, do you think i know how to force the electromagneticity on??
I think is not easy whaylt ypu would do.. and sure.. you have to modify more than 1 jar file.. because.. i ONLY have to REMAP a button, so, stock, only have to do ANOTHER THING... you want to change a power features.. i think you have to modify the kernel (sweep 2 wake is a feature of the kernel, not of the rom.. kernel is writed in c++.. android is writed in java, uses the java machine)
---------- Post added at 09:05 PM ---------- Previous post was at 08:22 PM ----------
Oh right.. one thing.. emh.. in my opinion.. button is a button, and samusung did some test about the resistence of the button
Sure.. time destroys all.. so.. you could have a softly botton after 12 months.. but.. i don't think you'll damage it soon..
Warranty is here.. you can send phone to the costructor if you have a problem
P.s. i have old phones, as like a siemens s10.. and.. ALL buttons are ok..
That phone was used by:
Dad > mom > me > brother > second brother
It has about, 8years of usage.. no prob..
Dont know why you are so worried!
Click to expand...
Click to collapse
This is an expensive phone, so we would definitely worry about it i know it does rarely broken, but it does more or less, i don't know why samsung intend to choose physical home instead of capacitive, i had HTC Sensation, and i was glad to use sweep2wake on it to save power button, samsung's power button gives loose feeling right out of the box like it'll break anytime, so samsung needs sweep2wake or something like that much more than HTC devices, hopefully some devs will look at it, THIS WAKE-UP KEY NEED TO BE HACKED AND REPLACED, simple is that, although soft keys gives it little bit relief, but we have to wake-up device atleast 30-50 times in working days, so that's why i am really looking forward to it, can we both join hands to bring developers attention toward it? if you also want to wake-up screen with anything other than physical keys i'm sure you must be missing sweep2wake in note 2
I didn't use s2w.. why? It uses too mouch energy in standby
showp is one of my great friends in xda, and i love his kernel + his MPDECISION code
Btw, for me, you are crazy
Never ever had problems with phone buttons.. i had an n95, i sent about 1 bilion of sms.. here in italy vodafone created a promo witch gives about 100free sms per day.. i used everytime all the sms.. and.. sure.. i had to press the send button 2 timed every sms + all the other
I used that phone for 3 years.. changed it with an hd2... bought the first day (n95) and hd2 used.. 365 days x 3 = 1095.. 1095 x 100 = 19500 x 2 = 219,000 + all the other used to navigate in menù
Btw.. n95 was broken in display cable.. all buttons perfect!!
has anyone tried ButtonRemapper? http://forum.xda-developers.com/showthread.php?t=850464
before doing all the hard work
Yep and didnt work!
The new m8 just got root, and I'd like to see if anyone could fix the issue i have with the hardware key placement. Specifically, the position of the power button annoys me quite a bit. On the old One it was at least accessible through your index finger, but the m8 must have been designed by lefties!
I'm looking for a module that would swap the function of the power key with the vol+ key to see if that will fix my little hangup with this phone. No pun intended.
Thanks!
fronc said:
The new m8 just got root, and I'd like to see if anyone could fix the issue i have with the hardware key placement. Specifically, the position of the power button annoys me quite a bit. On the old One it was at least accessible through your index finger, but the m8 must have been designed by lefties!
I'm looking for a module that would swap the function of the power key with the vol+ key to see if that will fix my little hangup with this phone. No pun intended.
Thanks!
Click to expand...
Click to collapse
I'm surprised this isn't a bigger complaint amongst m8 users. Well, if anyone finds anything, please let me know! Thanks!
fronc said:
I'm surprised this isn't a bigger complaint amongst m8 users. Well, if anyone finds anything, please let me know! Thanks!
Click to expand...
Click to collapse
I'm also not a fan of the power button being switched. At least we can double tap the screen to unlock. Cuts down the usage a bit.
Frankie1588 said:
I'm also not a fan of the power button being switched. At least we can double tap the screen to unlock. Cuts down the usage a bit.
Click to expand...
Click to collapse
Agreed, but it doesn't help when wanting to lock it quickly with one hand after the phone has already been unlocked. I'm more interested in that function than waking it. But glad to see I'm not alone in this.
fronc said:
Agreed, but it doesn't help when wanting to lock it quickly with one hand after the phone has already been unlocked. I'm more interested in that function than waking it. But glad to see I'm not alone in this.
Click to expand...
Click to collapse
I use this https://play.google.com/store/apps/details?id=com.katecca.screenofflock in tandem with Nova Launcher and just assign a gesture to it which in turn will turn the screen off and lock. Works great.
I just use gmd gesture control to do a three finger downward swipe to shut the device off.
Sent from my HTC6525LVW using Tapatalk
Izeltokatl said:
I just use gmd gesture control to do a three finger downward swipe to shut the device off.
Sent from my HTC6525LVW using Tapatalk
Click to expand...
Click to collapse
For my purposes, I'm trying to find a one-handed solution. So 3 fingers is no help when the phone is in-hand. But thanks for sharing your idea!
Sent from my HTC6525LVW using Tapatalk
What I did was use gravitybox > navigation key actions and then set back key long press to go to sleep. Works perfect but I am left handed so you might want a different key.
krazya said:
What I did was use gravitybox > navigation key actions and then set back key long press to go to sleep. Works perfect but I am left handed so you might want a different key.
Click to expand...
Click to collapse
I think you're on to something.... I'm going to experiment with this. Thanks!
steelersmb said:
I use this https://play.google.com/store/apps/details?id=com.katecca.screenofflock in tandem with Nova Launcher and just assign a gesture to it which in turn will turn the screen off and lock. Works great.
Click to expand...
Click to collapse
This is how I do it. Just a single finger swipe upwards shuts my screen off, then a double tap turns it back on. Works great for me!
Now if only someone could figure out how to get double tap (to wake) working in landscape mode.
Hey guys -- I just posted a fresh thread for this, but since I assume you all have weaksauce+xposed working...
After my soft-reboot to install xposed, wifi would not turn on. Did anyone else have anything similar happen?
I did weaksauce, phone off/on, install xposed, full reboot (accidentally), enable xposed, soft reboot, then no wifi when the phone came back up.
Any ideas?
Comming from an LG G2 phone..it is actually really hard to live a life without knock on function. (double tap to wake and turn off the screen). Is there any of the hardware that makes this impossible ? or could it be implemented in future ?
What is needed by the hardware for knockon to work ?
To switch off, it works with Xposed + Double Tap To Sleep 1.0. Do you look here.
http://forum.xda-developers.com/mate-7/themes-apps/xposed-modules-t2957769
Fooox1 said:
To switch off, it works with Xposed + Double Tap To Sleep 1.0. Do you look here.
http://forum.xda-developers.com/mate-7/themes-apps/xposed-modules-t2957769
Click to expand...
Click to collapse
is it just double tap to sleep or you can wake the phone as well?
---------- Post added at 10:11 PM ---------- Previous post was at 10:10 PM ----------
blackinfinity said:
Comming from an LG G2 phone..it is actually really hard to live a life without knock on function. (double tap to wake and turn off the screen). Is there any of the hardware that makes this impossible ? or could it be implemented in future ?
What is needed by the hardware for knockon to work ?
Click to expand...
Click to collapse
agreed, although the fingerprint scanner works like a charm it would be better with knock on when you place the phone on the desk
Wake no.
You don't need xposed. Just use a third party launcher and get screen off and lock app. Bind double tap function to the app and you're set.
Just another alternative
skade said:
You don't need xposed. Just use a third party launcher and get screen off and lock app. Bind double tap function to the app and you're set.
Just another alternative
Click to expand...
Click to collapse
To be clear..you must root your device to enable knock on function ?
I have never been rooting a device and I have no plans to do it at this point..
blackinfinity said:
To be clear..you must root your device to enable knock on function ?
I have never been rooting a device and I have no plans to do it at this point..
Click to expand...
Click to collapse
my suggestion is for screen OFF on double tap, not screen ON (aka knock on). I don't feel like rooting too so I use the fingerprint sensor to wake my device (yes its a pain if I have it on the table and just wanna see the screen but what to do if i'm not going to root..)
and when i want to turn off the screen, i use that method previously mentioned. cant comment on rooting/xposed for knock on function as I have never tried it myself.
blackinfinity said:
Comming from an LG G2 phone..it is actually really hard to live a life without knock on function. (double tap to wake and turn off the screen). Is there any of the hardware that makes this impossible ? or could it be implemented in future ?
What is needed by the hardware for knockon to work ?
Click to expand...
Click to collapse
Check app called gravity screen
And there is app In exposed fram. When u double tap u lock phone
blackinfinity said:
Comming from an LG G2 phone..it is actually really hard to live a life without knock on function. (double tap to wake and turn off the screen). Is there any of the hardware that makes this impossible ? or could it be implemented in future ?
What is needed by the hardware for knockon to work ?
Click to expand...
Click to collapse
Bro I'm just using Buzz Launcher (the best launcher experience ever for me) ... it also has gesture control ... u can set setting double tap and action lock screen ... hope this helps ... but no double to on yet .....
Yup, Nova Launcher can do double tap to turn off the screen as well. No need to root. I don't think there are any solutions at this point to double tap to turn on the screen though.
Mate does have the overlay button tool called "suspend button" much like ios & has screen off 'suspend' function but it not something I find useful by many might like it.
App like screen off & lock may be useful for a solution to screen off.
It has shortcut/widget that could be used & also can replace the google now swype up function from home key which could be a solution for some if that function works on mate 7 UI !?
Was another app that has 3 & 2 finger screen touch gesture for screen off/lock .
Power on via tap is unlikely due to lack of development & issues with exposed.
Would of liked an option on the finger print reader to be a fast double/triple tap on option if finger print security not used.
Screen off is more important to me & few options do exist that may be satisfactory.
Is something that would of been nice added (selectable option) to the bottom virtual button bar by huawei as standard !
little things like that can make a big big difference in sales & customer happiness .
How do I turn off the double tap to wake that's on the AOD home button. Half the time I take my phone out of my pocket it's on as when I walk it taps and wakes it up.
bnathan said:
How do I turn off the double tap to wake that's on the AOD home button. Half the time I take my phone out of my pocket it's on as when I walk it taps and wakes it up.
Click to expand...
Click to collapse
If your in settings tap search and type always on then choose aod and go to content to show click "clock or information" that's how I get rid of home button so I wouldn't tap it accidentally
---------- Post added at 02:42 PM ---------- Previous post was at 02:39 PM ----------
But remember this phone has that invisible home button as well underneath the glass...you probably knew that but I just threw it out there
mlock420 said:
If your in settings tap search and type always on then choose aod and go to content to show click "clock or information" that's how I get rid of home button so I wouldn't tap it accidentally
---------- Post added at 02:42 PM ---------- Previous post was at 02:39 PM ----------
But remember this phone has that invisible home button as well underneath the glass...you probably knew that but I just threw it out there
Click to expand...
Click to collapse
But you are right. Removing the button from AOD removes the double tap function. You can still hard press home though.
Double tap still wakes the screen up... (from black and white to colour)
I dont think you can turn it off. I had this problem so i turned on "keep screen turned off" in display
you can double tap to wake the screen? mine doesnt do that, am i missing a setting? i dont use AOD
dansan382 said:
you can double tap to wake the screen? mine doesnt do that, am i missing a setting? i dont use AOD
Click to expand...
Click to collapse
Double tap the home button near the bottom of the AOD screen. Or you can double tap a notification icon.
Hmm not working for me. Do I need AOD turned on or something?
Double tap to wake ajd notification icons
Tap2wake and custom notification icons
https://play.google.com/store/apps/details?id=com.somen.tap2wakeprime
To turn off the hard press unlock, search navigation bar in setting and turn off unlock with home button. Hope that helps some people.
dansan382 said:
Hmm not working for me. Do I need AOD turned on or something?
Click to expand...
Click to collapse
Yes you need aod turned on
Does anybody know a way to enable raise to wake or tap to wake (not ambient display but lock screen)? I have tried several apps but they are not as efficient as the stock eg: They are waking in every position not only when the phone is upwards.
https://forum.xda-developers.com/showpost.php?p=82845465&postcount=25
Could you share the new apk? I tried it to edit the apk but I am not able to do it...
masterchief_2001 said:
Could you share the new apk? I tried it to edit the apk but I am not able to do it...
Click to expand...
Click to collapse
Please find attached.
Am I missing something? When I raise my ordinary OP8 or tap the screen, it enables the figerprint reader and I can log in. To me, that IS the lock screen.
What is different?
Alan
alan sh said:
Am I missing something? When I raise my ordinary OP8 or tap the screen, it enables the figerprint reader and I can log in. To me, that IS the lock screen.
What is different?
Alan
Click to expand...
Click to collapse
Yours is ambient screen. Lock screen is what you see when you click once on the power button.
Ah, OK. I'm still not sure what the difference is. I click the power button to turn the display off. Then when I pick it up, I get my fingerprint reader. Why would I need to click the power button?
alan sh said:
Ah, OK. I'm still not sure what the difference is. I click the power button to turn the display off. Then when I pick it up, I get my fingerprint reader. Why would I need to click the power button?
Click to expand...
Click to collapse
You need to deactivate the ambient screen option.
---------- Post added at 05:38 PM ---------- Previous post was at 05:29 PM ----------
abrahamjones said:
Please find attached.
Click to expand...
Click to collapse
is it possible, using this app, when the phone shows the lock screen unlock it directly with face unlock ? i mean like on all other phones?
The face unlock feature is indeed exactly what I'm looking for.