yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] KryptosXLayer2:
Sucks about the test, I remember those days NOT fondly! If I didn't cheat my way through Chem 101 while I was in engineering, I wouldn't have even pulled off a C in there, which was one of the many reasons I switched to business and found my calling....... managing engineers!

And ew, don't mess with the S6 too much, I'm selling my S6 Edge 128GB right now because of how difficult it was for me to mess with on AT&T, being locked down and all, but even the fully unlockable ones are pains to get anywhere with - you'll spend days trying to get anything out of it when I just went to Moto and can do anything I want on it without any issues. NOW I know why everyone loves Nexus devices so much, fought it for too long with Samsung and AT&T both keeping me from having any fun.

Good luck and hope to see an update on this when you get to it. Hate that you have to recreate it but that might be a blessing with thinking of things you didn't think about previously. Then we'll put it on Google Play and charge people $5 a pop for it and make milllllllllllllllllllllllionssssssssssssssssss!!! :good:
[Android Apps and Games] elesbb:
Ha, I love chemistry and biology. I knew the stuff just kept second guessing myself on everything and put the wrong thing down cause I didn't think through it enough.. jfkadsljfkasl;jfkas;. aksfwqiopu

Sorry, frustrated still today xD

Anywho, don't be dissin the S6 ;) I love my brother's S6. I want it badly. Just not enough dollars right now ha. If yours was on Sprint, I would probably ask for it xD. You can still fully modify the S6 on Sprint without any issues. I think its AT&T you are fighting with more. Same with how Verizon is. I just love Samsung Galaxy's too much. They have everything I need/want in a phone. The only thing it can't do is get me friends xD Sometimes I wonder why I even own a phone bahaha.

I should be able to make this app again fairly easily. I had a guy at work download it and it didn't work for him. I think it has to do with the fact if you have physical buttons or not. However, according to the source for android, it shouldn't matter. I will do some testing in the emulator and if anyone can lend me your time with debugging who has been having issues with it.

Thanks everyone for being cooperative and understanding!
[Android Apps and Games] Mr Impossible:
It was working fine on an S6 Edge + but I'm trying to hard code it now and don't have yours installed. I did add it to the rom flash in priv-app. People having problems are they going to services and turning it on? Maybe a logcat from someone that it isn't working would help too. It may not fc but the re enable has to be an error somewhere.
[Android Apps and Games] samep:
Sprint Note 4 running Touchwiz Android 5.1.1 deodexed Note 4our ROM by [MENTION=309990]freeza[/MENTION] with Rage kernel. Added SuperSU beta 2.49; flashed in recovery. This app worked for me on stock rooted mostly Odex ROM as well.

I'll run a debug apk if you like when you're ready; see video below.

The Settings/Accessibility/Services menu pops up automatically for me. In the video below, I drop the service and su permission privileges and add service back on prompt and attempt to use to add su permission back and successfully back to kill the app on second attempt with su permission granted.

https://vimeo.com/144259401
[Android Apps and Games] elesbb:
UPDATE:

I figured out that if your device has that nav bar at the bottom, instead of actual hardware keys, then there never is a key event sent.

This is probably why it doesn't work on tablets. It also won't work on phones with nav bar like nexus devices.

SOLUTION:

I could either have a custom back button that you would move over top of your nav bar (just an idea, haven't tested it yet, but I think i could make it work.) or I could have it set to a gesture of some sort. Like starting at the bottom of your device and swiping up and back down for example will kill the foreground app. What do you guys think?
[Android Apps and Games] Mr Impossible:
Gesture up and down sounds like a good idea
[Android Apps and Games] leechseed:
Gesture +1, but in the end i would use whatever is possible & working. Maybe even use proximity sensor as 'action key'.

Is this also the reason why theres no prompt for root access?
[Android Apps and Games] elesbb:
Yes because the prompt for root access occurs when the back button is held down. If using the nav bar, the app never detects when the back button is held down, thus, no root access prompt.

I'll test out the gesture option, never did this on a global scale before so it should be fun. lol.
[Android Apps and Games] GROOVYJOSHCLARK:
I have been looking for this exact type app! This is amazing and perfect!!!! Extremely helpful, thank you VERY much!
[Android Apps and Games] KryptosXLayer2:
I understand everything you're saying, but why would it work and then break? It worked when I first started using my Moto X Pure Edition, asked for root and everything, then broke somehow. It uses nav bar and no physical keys, just like any Nexus device. I'm not adding a vote for "Gesture To Kill" because when I am not 100% focused on the screen (parking my car and want to kill navigation to the place that I just arrived at), I'd rather just hold a button to do the task instead of concentrate on where exactly I'm placing the gesture.

There's got to be a reason why softkeys work and nav bar keys don't, if that's the issue you think it is. On my Nexus 7's with Chroma, the option is in the ROM's settings, and that sucker has the same nav bar, so maybe there's a way to prompt for root without having to press the back button first, like when most root apps open and then ask for root without any of their root-required actions to prompt it.

Getting closer, so thanks for all your help with this!!!
[Android Apps and Games] elesbb:
Its not the prompt for root that isn't working. it is the fact it is not detecting when the key is pressed. The nav bar functions differently then normal hardware keys. A ROM including it in its settings has access to ROM source code, so that has nothing to do with my app. If I wrote a ROM, I could just put the code wherever I want. I modded my S5 to show the nav bar and it never hooked the back key, however, my hardware keys did. I feel this is the issue for other devices with a nav bar.

Also, the gesture thing will be triggered anywhere on the screen. Not just a certain area. So you wouldn't have to "focus" on the screen. Just swipe up, keep your finger on the screen, then swipe down. Done.

It's really the only option for people having issues.
[Android Apps and Games] bbortnick:
Hi, trying to get this to run on my rooted samsung tab a. It's running on lollipop 5.0.2.

It installs OK, but when I press and hold the back button, all that happens is the message "app killed " is issued. All apps keep happily running.

Any ideas?

Thanks Barry
[Android Apps and Games] leechseed:
Read, at least, the latest posts.
[Android Apps and Games] bbortnick:
I did review the previous posts; none that I could see referred to this situation: long pressing back requests SU access, which I grant, followed by message "app xyz killed" followed by nothing. app keeps running.
[Android Apps and Games] mire777:
Don't work on sony experia e1, when i hold back button, nothing happens, no superuser promt.. I set 400ms. Also settings doesn't open..
[Android Apps and Games] 2503:
Hello...

Have xposed for my 5.0.1 oem rom via a lenovo yoga 2 pro, can not find the xposed back to kill? Could you link me, us? If available would prefer one with just this feature and not included in a big xposed package/module.

Kind Regards, 2503
[Android Apps and Games] samep:
I don't know about tablets but my next favorite back to kill app is Xposed Additions. Remap the back button long press or maybe another gesture with it. It's kind of buried in the options.

Anyone else?
[Android Apps and Games] moonryder:
don´t work on Xperia Z2 stock rooted without xposed
[Android Apps and Games] 2503:
Legit Simple Question(s)

Not trying to go up against a senior member, honest question, why does it need permission to see what I type as in CC Numbers, etc? Is there a solo xposed module for LL 5.0.X solo module yet? I installed this, it never asked for SU. It did however want to have the vibrate and other stuff mentioned activated.

Got it from here then compared just to make sure it was yours with nothing added and seems to be...

http://gs5.wonderhowto.com/how-to/use-your-back-button-force-close-any-android-app-spot-0160683/

Why no UI to uninstall or even an icon at least, I mean we all know there is ways to uninstall which I did but curious why no icon at least.

All legit question, think this is awesome just do not know why it needs access to what I type, once I understand, may use and donate. Also, no SU permission just activate it where talk back and greenify is, is that how it works now?

Thanks, 2503

PS: I have this on my cm12 sammy 10.1 built in but my yoga 2 pro, hmm, any xposed modules stand alone that just perform this task?
[Android Apps and Games] Pwnicorn:
I thought this was an app to control homicidal thoughts or something. Actually it's much more useful for what it does. Thanks for making this. Very convenient :)
[Android Apps and Games] 2503:
I always wanted to say this one via xda as all the senior members do, wrong thread. This above belongs in the funny section on XDA, unless there isn't one. :p

-2503

PS: Never trust a guy with numbers for a name. PPS: I suppose all this is hypocritical of me to say as now I am off topic hope the dev answers my very reasonable question, no accusations intended.
[Android Apps and Games] elesbb:
I believe I covered the reason it says it can "read credit card numbers" before. Its because I am listening to key presses. Which technically means all the keys you type, including ones on a keyboard (i believe this includes soft keyboard too.)

Its just androids way of "summarizing" what the capabilities are. In addition, you see I do not use internet permission on my app, so whatever data I "could" theoretically collect, its pointless cause I have no way of doing anything with it. But this isn't relevant cause i'm only listening for a back key press, which you could see if you decompiled the apk and took a look at the smali code. One may say I use root to send the data, then just log the app using SuperSU to see what commands I execute as root if you don't believe me/trust me. I wouldn't be allowed on XDA if any malicious activity was going on.

I also do not understand this. Lol. No offence or anything, there is totally an icon in your app drawer. That is how you configure the back press delay. I can't uninstall my app without initializing the default uninstaller. So I'm not quite sure what you mean by this.

However, thank you for showing me that link, I do like to know my work gets recognized. As for not getting the SuperSU prompt, I have gone over issues in the thread a couple posts back. Will be implementing a fix hopefully. I'm really busy though. My development time is very small and usually reserved for things i need/use (recently it has been windows programs) but my paid app on google play is getting most of my attention for the android side of things.

I hope I clarified your questions and if not, feel free to post back!
[Android Apps and Games] elesbb:
Haven't figured that one out yet.. TBH, i don't think they are controllable xD
[Android Apps and Games] morphmk:
Does it work with Android M?
[Android Apps and Games] GROOVYJOSHCLARK:
It did for me
[Android Apps and Games] morphmk:
I install it, set the timing and enable the service as suggested. But then nothing happens when I hold the back key.

I guess it should ask for root permissions but that never happens.
[Android Apps and Games] ||BeTo||:
Great :o
[Android Apps and Games] situ1962:
+1.I am also in the same boat.It does not ask for root permission and does not work.My phone is Moto x play and I am running it with the stock LP firmware.Please help.In my previous Samsung S4 mini it worked like a charm and I love it.So please help.
[Android Apps and Games] robcore:
This is genius. If you were able to get a multiwindow fix (if multiwindow enabled, release back-to-kill function; else...) it would be the solution I've been for. With Xposed additions, literally all of my other keys are spoken for.

If you'd like some collaboration feel free to pm me.
[Android Apps and Games] elesbb:
it is impossible for me to know if multiwindow is enabled and how to differentiate between showing the multiwindow or killing the app. The only possible thing I could try is say a double click on the back button will show the multiwindow. I would have to see if I can inject a "Long press back" event into the system to see if it will register.
[Android Apps and Games] robcore:
Not necessarily impossible:

Method Detail

isNormalWindow

public boolean isNormalWindow()

Check whether current window mode is normal window

Returns:

true if normal window mode

false otherwise

Since:

1.1.0

isMultiWindow

public boolean isMultiWindow()

Check whether window mode is multi window

Returns:

true if multi window mode

false otherwise

Since:

1.1.0

http://img-developer.samsung.com/onlinedocs/sms/multiwindow/index.html

Essentially including the multiwindow library and writing a small if/else could make it work. Are you hooking the global keypress?
[Android Apps and Games] elesbb:
I'm not hooking anything. This isn't xposed. Everything I am doing is offered by the Google API. I'm not sure how well that method you posted will work in terms of functionality. So what if the current window is a multiwindow? What if I want to kill whatever app is in multiwindow right now?

Then best method is to do what I said above. Having a double press back button trigger multiwindow. The only thing is multiwindow is different across all the Samsung devices. On my Galaxy S5, there is no more on screen arrow to click to show the side bar, on my brother's S6, there is no sidebar at all.

What device are you using?
[Android Apps and Games] robcore:
Ah all good points. Currently I'm on a galaxy s4, but I started developing back in 2013 with a galaxy 22nd sky rocket, even ported multiwindow to it.

I miss the bloody flashbar handle..

That said, I shouldn't detail your thread, and one vendor's proprietary implementation is not the point of this app.

To reiterate, this app is freakin genius.
[Android Apps and Games] elesbb:
Yeah if/when I get the S6 that will definitely be something I need to add back lol. I hate not being able to quickly tap and open a side menu of apps to either split or launch in a floating window. I made a multiwindow helper that uses xposed to make multiwindow even better. I added a little arrow button that is always visible, when you tap on it, it opens the apps to launch, when you tap and hold on it, it makes it disappear for when watching movies or playing a game. To reshow it, you just click on the notification. It also allows infinite amount of floating windows open, as well shrinking the floating window very tiny. I made a lot of mods to it. I haven't released it cause I don't know how it will fair with other variants that have multi window.
[Android Apps and Games] robcore:
lol I definitely feel for those who release to the public. So far everything I've done is specific towards my usage, much like your nifty xposed module, and getting everything compatible across devices with different proprietary implementations sounds like too much of a headache. Hell, the native projects for my own device are hassle enough...
[Android Apps and Games] w4po:
Please support jelly bean 4.1.2 note one..

Thanks a lot
[Android Apps and Games] elesbb:
It is impossible without xposed. Nothing I can do about it, its the limitations of the Google APIs.
[Android Apps and Games] 1619415:
Does this support Samsung lollipop?
[Android Apps and Games] elesbb:
Yes that was the whole reason I made this lol. Lollipop came out and I didn't have xposed at the moment.
[Android Apps and Games] thommi12:
Hm, i tried it on MM, doenst work for me - always get inactive.
[Android Apps and Games] elesbb:
If you don't have physical hardware buttons, meaning you have a navbar on the bottom of your screen, then this won't work.
[Android Apps and Games] thommi12:
Is this new and a "feature" of MM?

I used your app with 5.1.1. runs very nice (Samsung S6) but now nothing is running anymore :(
[Android Apps and Games] leechseed:
Are you still planning / working on a solution for those who dont have physical buttons?
[Android Apps and Games] elesbb:
Yes. I believe I have given two methods in the past that would fix it. Either a gesture option, say swipe up and down (while keeping finger on the screen) to kill the app, or, I could probably put my own back button on the screen, invisible, over top the current back button. That's about all I could do without xposed. Which is what a lot of people seem to want.
[Android Apps and Games] Sage:
Why does this app need permissions to see text entered ?Passwords etc?
[Android Apps and Games] nec947:
Please put it on the google play store.
[Android Apps and Games] elesbb:
You would know this if you read the thread.

I will once I add more features and figure some things out. It will cost 99999999999999 dollars xD
[Android Apps and Games] BatDroid:
ok.

does it force stop apps?
[Android Apps and Games] leathan:
Worked for me right off the bat then never again. HTC Desire 626. (I tried everything including installing a rom and much more to get it working again)

some launcher has an option for force closes when holding back i think... cant remember which...

EDIT: HTC Desire has a navigation bar
[Android Apps and Games] elesbb:
The navigation bar is what is causing issues. Because its not a "real" key, it doesn't follow the same code path that a "real" key does. My app listens for "real" key presses. That is why I need to implement either a gesture kill, or a "fake" back button over the navigation button.
[Android Apps and Games] leathan:
Yup.

Also I fixed my problem using XBlast (An Xposed based app). I tried many other Xposed based apps but only XBlast was force stopping + working on my phhone.

Would be cool if you added that gesture -> hold thing like you mentioned since phones are in general moving away from "real" keys.

Anyway thanks lots, works on my other phone perfectly :)
[Android Apps and Games] elesbb:
Yup. My own xposed module properly force closes the app, as well as remove it from the recent tasks panel. 99.9999% of all modules do not properly force close the app, I have no idea why.
[Android Apps and Games] samep:
Can't find your Xposed one for marshmallow.

Link please, LOL.
[Android Apps and Games] elesbb:
Its not released. I wrote it for myself lol.
[Android Apps and Games] ay.ibrahim:
Doesn't work for me

Honor 4x che2-l11
[Android Apps and Games] elesbb:
I don't care. Read the thread.
[Android Apps and Games] grappas:
Seems not to be working on my Cat S40 with 5.1. It looks like can't get root priviledges (blocks back on back button while holding)
[Android Apps and Games] Mattwmaster58:
Good...

Good job! I;m sure mayn people will find this useful. However, MM lets you customize this anyways(at least in the ROMs I've Tried)
[Android Apps and Games] ToddFucxer:
I'm sincerely sorry if this has already been answered I glossed over everything pretty quickly trying to find it but I could have missed something possibly.

I'm using a galaxy S3 T999 with the OctOs rom version OCT-M-R1-6.0.1-20160319

My issue is I installed the app set it for one second and enable it in Accessibility services, once I use the hold back to kill feature it disables itself and I have to go back into accessibility services re-enable it an set the time to kill again.

Is there a known solution or even anything to try in order to prevent this?
[Android Apps and Games] samep:
Same here. Just doesn't work on marshmallow; nothing to hook to, presently as-is.

The OP made his own Xposed module for marshmallow but didn't share it publicly. The ones I've tried don't have the personalized delay setting with the familiar vibration feedback. Sort of makes it guesswork compared to this app. LOL; works better on my old tablet compared to my newer phone!

Edit: skip down 3 posts to #165 for my latest alternative resolution. Really great having a non Xposed option again. This type seems to work better for some reason.
[Android Apps and Games] ToddFucxer:
Thats the crazy part, it actually does work for me, but it only works once then I have to go back into my settings and turn it back on again.

---------- Post added at 03:55 AM ---------- Previous post was at 03:44 AM ----------

I'm currently between jobs so I have plenty of free time, and I'm running an SGH-T999 on the 6.0.1 OctOs rom.... So I would be completely down to help you with this if this is something you'd still want to do.
[Android Apps and Games] bprtzel:
Same on my Samsung galaxy s4 lollipop 5.01. Great app but that is a major problem... Would install xposed if I could do so without tripping KNOX but for the moment, I am sticking with the ambassadi ROM....
[Android Apps and Games] samep:
There's a non Xposed alternative I happened to stumble upon looking for a gesture app that will allow navigation without on-screen nav bar. But that's another story, Samsung, may have to part ways with capacitive buttons to keep root going forward.

The app allows the buttons to be repurposed or just slightly modified short or long press or gesture. You can choose back to kill for a number of options but don't choose options in status bar tab because it doesn't truly kill the app from those options but leaves it running on the background. All other options in remaining two tabs, key or swipe gesture, work the same as this app without Xposed. Works on Marshmallow; maybe it works on Nougat but I haven't upgraded to that yet to say.

https://play.google.com/store/apps/details?id=com.phoenixstudios.aiogestures
[Android Apps and Games] -zalo:
this is what I was looking for. Thanks!
[Android Apps and Games] simpson.initiatives:
Hi, my name is Josh. Running Back to kill on a priv. I install, give permissions and enter back press value but it does nothing but re-open the press value window.

Do you have any suggestions on how to gain functionality?
[Android Apps and Games] samep:
Two posts up from your post is link to alternate application in Google Play.

If you're on marshmallow or higher; that may be the alternative for you.

If lollipop or lower, this application or the alternative should work.
[Android Apps and Games] tejas_kesaria:
Does it work on Nougat?
[Android Apps and Games] samep:
Try it; as I recall, there was a problem with this apk on Marshmallow defining a service to grab and limited to capacitance buttons.

Button Mapper Pro or All In One Gestures from Google Play should get it done without Xposed but not being on Nougat, can't try myself. I have heard reports that Button Mapper Pro works on Axon 7 on Nougat.
[Android Apps and Games] edzamber:
No,

You have to use Allinone Gesture or Button Mapper for this
[Android Apps and Games] RealWelder:
Thanks. Works well on my 4.4.2 tab3... doesn't even interfere with multiwindow. Good work.
[Android Apps and Games] l4d3:
I wish it worked on Nougat. My rom currently has a 3000ms delay for this feature, and it's driving me crazy
[Android Apps and Games] eresac:
I think this app should be updated.
[Android Apps and Games] elesbb:
I'd love to. But android needs to follow their own rules and have even software keys be sent to the accessibility service. As of now, I haven't tested with nougat, but when you have a navigation bar, my app does not "see" the back button being pressed as it does with hardware buttons.
[Android Apps and Games] eresac:
Yes, I get it. But (let me say) from a functional point of view, having this feature as a standalone app (not immersed in an xposed module, or an entire ROM) would be very very useful.
[Android Apps and Games] elesbb:
Yes but what's keeping it from working isn't me. It's Google. So I'll fill out an issue ticket with them and hope it gets addressed.