[APP] [4.3+] Hold Back To Kill [ROOT]

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253
Here is an app that allows you to hold your back button to kill the currently open application.

If popularity is high enough, I will update it with things like whitelist etc.

If you use a Samsung device, the only problem is that you can't show the MultiWindow bar anymore. I will work on a fix for it. I only made this because xposed doesn't work on Samsung Lollipop yet so this is what I wanted until it is. Once it works, I prolly won't ever touch this app again.

Thanks everyone!

UPDATE:

- Performance improvement
 
Last edited:

Droidphilev

Senior Member
Jan 25, 2008
3,458
1,171
243
hi,

It seems to be working on CM12 but a little too good :(

Apps get killed right away when i press "back"whatever time-out i set in the settings.
 

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253
hi,

It seems to be working on CM12 but a little too good :(

Apps get killed right away when i press "back"whatever time-out i set in the settings.
I dont know i dont have cm12. i know cm12 has a default native option to hold back to kill maybe that is enabled?
 

Droidphilev

Senior Member
Jan 25, 2008
3,458
1,171
243
I dont know i dont have cm12. i know cm12 has a default native option to hold back to kill maybe that is enabled?
Hello, CM12 with standard navbar (3 buttons) doesn't have that setting. It s only implmented in roms with navbars with extra settings like opening an app etc etc
 

ndg1988

Member
Nov 18, 2013
25
7
0
Having Trouble

I'm having a similar problem where even a single tap on the back button is closing the app. I have a rooted Galaxy S4 running Android 4.4
 

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253
Hello, CM12 with standard navbar (3 buttons) doesn't have that setting. It s only implmented in roms with navbars with extra settings like opening an app etc etc
I'm having a similar problem where even a single tap on the back button is closing the app. I have a rooted Galaxy S4 running Android 4.4
So this is happening when using the navbar and not the physical buttons?

It seems like the up action isn't being triggered. I could try to implement maybe a double click back to kill option. Ill try to debug on my 5.0 emulator that uses the navbar and see if i can figure anything out. Weird how that's happening.
 

Droidphilev

Senior Member
Jan 25, 2008
3,458
1,171
243
So this is happening when using the navbar and not the physical buttons?

It seems like the up action isn't being triggered. I could try to implement maybe a double click back to kill option. Ill try to debug on my 5.0 emulator that uses the navbar and see if i can figure anything out. Weird how that's happening.
hello again,

No, i dont use the navbar In cm12 (disabled) I use hardware buttons. If ndg1988 uses stock then he doesn't have a navbar so i guess he uses the hardware buttons too
 

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253
hello again,

No, i dont use the navbar In cm12 (disabled) I use hardware buttons. If ndg1988 uses stock then he doesn't have a navbar so i guess he uses the hardware buttons too
Hm, I truly don't know then. I really would need the device in hand to test with. I could try to do testing by sending you a file with loads of debug information in it. Would you mind that?
 

ndg1988

Member
Nov 18, 2013
25
7
0
Good News

So this is happening when using the navbar and not the physical buttons?

It seems like the up action isn't being triggered. I could try to implement maybe a double click back to kill option. Ill try to debug on my 5.0 emulator that uses the navbar and see if i can figure anything out. Weird how that's happening.
I was just an idiot that assumed the activation time was in units of seconds, not milliseconds. This may be what most people are having trouble with. It works well now, so thank you and keep up the good work.
 
  • Like
Reactions: elesbb

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253
I was just an idiot that assumed the activation time was in units of seconds, not milliseconds. This may be what most people are having trouble with. It works well now, so thank you and keep up the good work.
Haha okay good. Nice one ;) It does say "milliseconds" :p
 
  • Like
Reactions: filchi756

Droidphilev

Senior Member
Jan 25, 2008
3,458
1,171
243
Hm, I truly don't know then. I really would need the device in hand to test with. I could try to do testing by sending you a file with loads of debug information in it. Would you mind that?
no, but it will take a while. i need to test multirom on my device and i have have to finish the translation of an app first. :(
 

leechseed

Senior Member
Jun 27, 2012
874
221
0
Awesome - best thing that can happen to a rooted stock rom.

btw its labled "Main Activity" in App Drawer, not "Hold Back To Kill"
 
Last edited:

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253
no, but it will take a while. i need to test multirom on my device and i have have to finish the translation of an app first. :(
What delay are you setting for it in the settings?
Awesome - best thing that can happen to a rooted stock rom.

btw its labled "Main Activity" in App Drawer, not "Hold Back To Kill"
Yup. Realized that after releasing and didn't care too much about it. :p In the next update (if ever one would exist) i'll fix it.
 

elesbb

Senior Member
Jun 20, 2010
7,828
5,300
253