[Q][XU] Back button --> Kill App - Sony Xperia P, U, Sola, Go

In CM9, The back button can be used to kill apps on long press,
Is it possible by some dev to incorporate to stock? Pls, I dont think swiping away apps while long pressing home is the same thing,
It would be really cool if this was possible, long press back button, kill app.

kushalsv said:
In CM9, The back button can be used to kill apps on long press,
Is it possible by some dev to incorporate to stock? Pls, I dont think swiping away apps while long pressing home is the same thing,
It would be really cool if this was possible, long press back button, kill app.
Click to expand...
Click to collapse
+1 I think this feature is great too.

BUMP

Related

[Q] Remapping buttons to use "LONG PRESS BACK KEY OR MENU KEY"

I have the sgs2 for a few months, Im very satisfied with this phone, But there is a thing I cannot live with, THE HOME BUTTON, I dont know why? but a I dont like it at all, I prefer non physical buttons, so Ive been proving some apps to avoid it, someones like button savior, swipepad and wave launcher (This one is absolutely great).
I just wanna know: is there a way to remap LONG PRESS "BACK KEY" to go to home?, just like long press menu does to go to search!. I proved BUTTONREMAPPING but it doesnt have the "long press" options. I was searching and now I know that files on /system/usr/keylayout and /system/usr/keychars setup the keys on the phone, indeed /system/usr/keylayout/sec_touchkey.kl shows the default capacitive buttons setup, but I dont have enough knowledge to change "LONG PRESS" options on this keys.
so:
Some of you guys know about it?
It is possible or not setup LONG PRESS BACK OR MENU KEY on SGS2?
....Nobody?
diegonando22 said:
....Nobody?
Click to expand...
Click to collapse
just figuring out to do the same and came across your thread. will be interesting if this can be achieved, I hate the center button it is as hard as rock
bala_gamer said:
just figuring out to do the same and came across your thread. will be interesting if this can be achieved, I hate the center button it is as hard as rock
Click to expand...
Click to collapse
There certainly is way to achieve such a thing but i certainly dont know what the way to do so without replacing launcher and having it doing so or maybe replacing Rom. I qould love to know a way to get it done without having to go through that.
diegonando22 said:
I have the sgs2 for a few months, Im very satisfied with this phone, But there is a thing I cannot live with, THE HOME BUTTON, I dont know why? but a I dont like it at all, I prefer non physical buttons, so Ive been proving some apps to avoid it, someones like button savior, swipepad and wave launcher (This one is absolutely great).
I just wanna know: is there a way to remap LONG PRESS "BACK KEY" to go to home?, just like long press menu does to go to search!. I proved BUTTONREMAPPING but it doesnt have the "long press" options. I was searching and now I know that files on /system/usr/keylayout and /system/usr/keychars setup the keys on the phone, indeed /system/usr/keylayout/sec_touchkey.kl shows the default capacitive buttons setup, but I dont have enough knowledge to change "LONG PRESS" options on this keys.
so:
Some of you guys know about it?
It is possible or not setup LONG PRESS BACK OR MENU KEY on SGS2?
Click to expand...
Click to collapse
You will have to ask one of the modders to do it for you, try contacting one of the modders who has made "long press to kill process" it will be fairly easy for them.
Sent from my GT-P6200 using xda app-developers app
Any fix ?
I want to remape my menu to back and menu to app switch like the navbar =D
If you don't mind going custom, then cyanogenmod has this (sort of) in an option in the developer options of their roms.......you long press the back button and it kills the running processes (apps)
Sent from my rooted, de bloated, stock JB powered S2 via PhilZ kernel and XDA developers app

Hold back button to close on Sammy

Hi!
Can I get the option on stock ICS rooted the option to long hold back button to close the foreground app?
Yes you can. Look here http://forum.xda-developers.com/showthread.php?t=1667846

Changine the home button long press delay?

Is it possible to change the response time for long pressing the home button? Cutting it in half would be ideal
peachpuff said:
Is it possible to change the response time for long pressing the home button? Cutting it in half would be ideal
Click to expand...
Click to collapse
My understanding is that sammy based ROMs are intentionally hardcoded by Sammy to include a delay after pressing the home button once so as to wait for another press, to cater for a two button press gesture. This gesture is meant to activate voice command.
Therefore, this delay must have been embedded deep within some framework of sorts.
Take a look here: http://forum.xda-developers.com/showthread.php?t=1227479
That is the reason why I like the rom AOSK have tactile buttons at the bottom as is the nexus, it is like pressing the home button
happily1986 said:
My understanding is that sammy based ROMs are intentionally hardcoded by Sammy to include a delay after pressing the home button once so as to wait for another press, to cater for a two button press gesture. This gesture is meant to activate voice command.
Therefore, this delay must have been embedded deep within some framework of sorts.
Click to expand...
Click to collapse
GaboWinter said:
Take a look here: http://forum.xda-developers.com/showthread.php?t=1227479
Click to expand...
Click to collapse
Im talking about the delay from long pressing the home button, not just single pressing it. Long pressing it brings up the recent apps menu, i want that menu to come up quicker.
darito30 said:
That is the reason why I like the rom AOSK have tactile buttons at the bottom as is the nexus, it is like pressing the home button
Click to expand...
Click to collapse
I'll give that a try since im on aokp, not sure if i want to lose any screen space due to the buttons but we'll see how it affects it.
TL: DR the only way to get rid of the lag is to flash specific Sammy/CM/AOKP roms that have the decreased lag fix implemented (almost all do).

[WIP][MOD] 3 Button Remap

Hey guys-
This mod (flashable in recovery) will remap your recent apps button to a menu button and remove the on-screen 3 dot menu. Most people prefer this.
Unfortunately, I haven't had time to edit your android.policy.jar yet so you won't be able to longpress anything for recent apps menu.
So basically you lose access to the recent apps menu, but this gets rid of the 3-dot on-screen menu button and makes your recent app hardware button a menu button. In the future, this limitation will be fixed.
To revert, flash the UNDO.zip
Think we could flash one from the Evo 4g LTE? Or is the .Jar file different.
jar is probably different.
Lovin this one Con, great job.
This 3 button remap is key...I'm playing around flashing different test builds and this damn mod should be factory.
I'm using Nova Launcher, which has the option to use gestures for accessing recent apps. If I install this 3 Button Remap mod, my recent apps softkey will act as a menu button, but will the gesture I've set for accessing recent apps work as designed or will it also be remapped and act as a menu button?
Pandalero said:
I'm using Nova Launcher, which has the option to use gestures for accessing recent apps. If I install this 3 Button Remap mod, my recent apps softkey will act as a menu button, but will the gesture I've set for accessing recent apps work as designed or will it also be remapped and act as a menu button?
Click to expand...
Click to collapse
Probably. It won't break recent apps. If there is something else that can trigger it, it will still work. It just disables your ability to get into it via hardware buttons.
con247 said:
Probably. It won't break recent apps. If there is something else that can trigger it, it will still work. It just disables your ability to get into it via hardware buttons.
Click to expand...
Click to collapse
Sweet, thanks. I'm gonna root and install this mod tonight... I'll post a definitive answer in case anyone else wants to know.
I forgot to include an Undo.zp
I will make that shortly.
con247 said:
Probably. It won't break recent apps. If there is something else that can trigger it, it will still work. It just disables your ability to get into it via hardware buttons.
Click to expand...
Click to collapse
Just installed the 3 button mod... all is well. In Nova Launcher, the gesture to bring up recent apps still works. But this only applies to when you're on your home screen.For viewing recent apps while you're in an app, I've set the menu button (formerly recent apps button), the open recent apps with a long press.
Love this mod.
Any chance you can create a mod like this to remap recent apps to search?
scott8357 said:
Any chance you can create a mod like this to remap recent apps to search?
Click to expand...
Click to collapse
I would say yes,
but don't hold me to it.
sounds very cool! thanks!
andybones said:
I would say yes,
but don't hold me to it.
Click to expand...
Click to collapse
was guna ask the same thing,, use the recent apps button for menu and long hold recent apps for search? would be tha bomb! ps, thanks again )
thatexan said:
was guna ask the same thing,, use the recent apps button for menu and long hold recent apps for search? would be tha bomb! ps, thanks again )
Click to expand...
Click to collapse
its in ukb lte rom...if you dont want to use that rom for it...you can use hans"s stock deodexed rom and pull android.policy.jar...but you need to be deodexed so either rom is necessary
Has there been any more development made on this? I really want to remap the buttons, but I don't want to lose my Recent Apps either.
Platypus222 said:
Has there been any more development made on this? I really want to remap the buttons, but I don't want to lose my Recent Apps either.
Click to expand...
Click to collapse
I'm using ukb lte rom. Recent apps button is now "settings". And long pressing the home button brings up "recent apps". Its perfect, I think.
Sent from my ADR6410LVW
joeyd27 said:
I'm using ukb lte rom. Recent apps button is now "settings". And long pressing the home button brings up "recent apps". Its perfect, I think.
Sent from my ADR6410LVW
Click to expand...
Click to collapse
I'm not really interested in flashing a new ROM right now, as I'm pretty happy with Sense as it is. Also, I'm not sure what use Settings is like that. I'd rather have the Recent Apps button do Menu.
Platypus222 said:
I'm not really interested in flashing a new ROM right now, as I'm pretty happy with Sense as it is. Also, I'm not sure what use Settings is like that. I'd rather have the Recent Apps button do Menu.
Click to expand...
Click to collapse
UKB is a Sense ROM and it has the recent apps button as the menu. Plus it has a bunch of other features stock does not come with.
Platypus222 said:
I'm not really interested in flashing a new ROM right now, as I'm pretty happy with Sense as it is. Also, I'm not sure what use Settings is like that. I'd rather have the Recent Apps button do Menu.
Click to expand...
Click to collapse
essentially the difference between ukb and stock sense is
advanced power menu (reboot recovery, hboot, hot boot)
remove htc linkify (app associations)
button remapping (back button is same, but long press home key is recent apps, and recent apps button is a menu key)
edit: and extended quick settings of course
theres a ton of other stuff but id consider those the main differences

Remap power button?

I haven't been able to figure out a way to remap the physical power button. There was an xposed module that worked great long ago, but hasn't been updated to work with oreo. I want to be able to press/long press/double tap/whatever the power key to take me to the home screen. I've used the fingerprint sensor apps, but they're hit or miss at different times, which is more frustrating than not having it. The other button mapper programs seem to work for volume keys only. Rooted/Running LOS ROM
Remapping the power button seems like such a bad idea to me. What happens if you need to reboot?
nola mike said:
I want to be able to press/long press/double tap/whatever the power key to take me to the home screen.
Click to expand...
Click to collapse
Why? What does your "home" button do? On my Nova launcher, home button takes me immediately to home screen and much easier/faster than trying to double tap fingerprint sensor, which currently turns off/on display.
Or long tapping, which currently gives you reboot options.
Remapping power button seems like an answer in search of a problem, which would cause more problems?
ChazzMatt said:
Why? What does your "home" button do? On my Nova launcher, home button takes me immediately to home screen and much easier/faster than trying to double tap fingerprint sensor, which currently turns off/on display.
Or long tapping, which currently gives you reboot options.
Remapping power button seems like an answer in search of a problem, which would cause more problems.
Click to expand...
Click to collapse
Home button takes me to home screen as well, which is usually where I want to go. If I'm holding the phone it's much easier to press a physical button to get back. I rarely reboot, so could do away with that. On my G3, I had all the buttons on the back mapped to pull up assistant, go back, go to home screen using single/double/short/long taps. It was MUCH faster to do that. Anyway, I like it, it existed before, I want to know if I can get it back.
nola mike said:
Home button takes me to home screen as well, which is usually where I want to go. If I'm holding the phone it's much easier to press a physical button to get back. I rarely reboot, so could do away with that. On my G3, I had all the buttons on the back mapped to pull up assistant, go back, go to home screen using single/double/short/long taps. It was MUCH faster to do that. Anyway, I like it, it existed before, I want to know if I can get it back.
Click to expand...
Click to collapse
So found a program called "powy". It can intercept the power button keypress and then trigger tasker. It can't distinguish long v. short press, but you can program power button to trigger by pressing 1x/2x/3x/etc. Not as good as xposed additions (which hasn't been updated since MM), but functional and better than nothing.

Categories

Resources