yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] dk_zero-cool:
The problem is that keys is handled outside of Android and Java by an external library. This library starts by sending the key to a Android/Java class where you have only to options, 1 = allow application to get the key or 2 = cancel the key. Nothing more. So when you make one click (For an example), I have to cache this key and then tell the library to cancel it, otherwise the default action would be executed and I have to wait and see of make another click right after (Double click). And the same goes for long press watching. And if you Re-map volume down to turn off the screen, you would be irritated if the volume changed every time you turned of the screen. So I have to cancel it.

When I know what key code you want to have executed, I can tell this library to imitate a key. But, I can only imitate normal clicks, not long press or anything else. So anything besides normal key codes, like Power Menu, Recent Apps and so on, I have to make my own version of it in the module, because the original key handler in this Java class will never get your key presses. It will only get the imitated once. Those that I can only be single clicks.

Xposed is a powerful tool allowing you to intercept almost anything Java in Android. But it can only do it before or after the original versions. You can never change anything inside an original method.
[Xposed Framework Modules] Ranomez:
Update to latest version, soft reboot, open app, FC when going to add button, clear data, soft reboot again, same thing, uninstall, soft reboot, install, activate and soft reboot again and still same....
[Xposed Framework Modules] spätzlemitsoß:
Im new to android. Coming from symbian c++ development. Everything is a little different here. :)

In symbian i also created several remap apps. It was possible to create a keycapturer for ups and downs.

On recognition i just had to start the custom action.

If i wanted to keep default behavior, i simulated a keypress and disabled the keykapturer for this time.

Disadvantage is that you have a little delay... but it was possible. (Without root!)

So whatever.. different system. Nice work! Keep it up ;)
[Xposed Framework Modules] dk_zero-cool:
Okay, well in android that would be possible also, but as a regular app there are things that you would not be able to disable, such as HOME, Power, possebly Volume and maybe more. So you would be limited to certain keys. And I will bet that some key codes would not be allowed to be emulated as well.
[Xposed Framework Modules] shinpil:
I tested 2.20 version

1. If I remap a key when screen is on, I cannot remap that key when screen is off. It was possible on previous version.

2. I found the haptic feedback does not work on recent app. Is it bug? And I think it would be better that I can select getting haptic feedback or not.

3. If I can remap multiple key, like pressing home and power button together, the screenshot feature problem can be solved. If it is difficult, then plz add screenshot code on long pressing home and power button. All android phones have screenshot feature.

4. New key settings like killing foreground app, killing all background apps, launching specific app would make this module perfect.
[Xposed Framework Modules] dk_zero-cool:
1. This is known and has been reported plenty of time above.

2. haptic feedback works fine on recent app like on any long press actions. And since it uses Android's native haptic feedback method instead of a custom one, you can control it like any non-remapped button like disabling it. So try it before reporting please. If you have problems with long press feedback, then check your ROM settings, cause all I do is call the original haptic feedback method, then it is up to the ROM how to handle it.

3. Sorry but screenshot is not on the top of my todo. I will add more features when all the current issues is sorted out.

4. Again, features that have been mentioned and that I have already put on the todo. But again, issues first and features later.
[Xposed Framework Modules] last1left91:
Tasker integration

Hi there...as I can see there's no triple events or tasker integration as it was once...any further solutions?? Thanks in advance!

THis is the current version of Xposed Additions I'm using...I might be missing something though...! com.spazedog.xposed.additionsgb_v69_ac8830.apk
[Xposed Framework Modules] egingell:
Is the Pro key app installed?

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] last1left91:
Samsung G900F Touchwiz launch multiwindow back key overriden?

Hi dk_zero-cool!

Do you think is possible to add the option "launch multiwindow app" for touchwiz devices so I can map that option on another button? It is currently set on long press of Back Key!

I would like to keep my switch button : press for recent apps and long press for menu and map the back key to switch to previous app( I love this feature) on long press and as I use pretty rarely multiwindow manager feature from samsung I would like to map it on any other button or combo or triple press if this feature is available... could you add this option, "launch multiwindow manager" among the others already implemented...thanks in advance!

---------- Post added at 10:17 AM ---------- Previous post was at 10:14 AM ----------

No....you mean there's a pro key I have to purchase? As I remember when on KitKat we had all these features for free...there's not a problem though!

I'm running XtrestoLite v2.2 BOD3 from edgarf28, ktoonsez kernel,lolipoop 5.0....do you think after purchasing the pro key all those extra features will work?:)

---------- Post added at 10:54 AM ---------- Previous post was at 10:17 AM ----------

Great dk_zero-cool...be aware that on aptoide there's a free pro version for your xposed additions...i've just installed it and here is how it looks like.

I'm telling you this cause I don't want you to lose the money you deserve ....in my case...whenever there's a paid version...first I look up for it on google and if it really doesn't exist there a pro version...then I don't have other solution than purchasing it...I'm not such a rich guy!!

So be aware ...you could lose a lot of money!

I could send the link with the pro app on pm if you wish...I won't post it here!!
[Xposed Framework Modules] egingell:
As far as I know, the Tasker integration and triple-click requires the Pro key.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] dk_zero-cool:
Sry no. I will not add Samsung only features. This module is based on AOSP, with a few fixes for some Stock ROM's like TW, LG and so on. I will not work more than I half to with Samsungs closed source code, and if I did, other people would request features for their specific device.

This has never been the case. If so, it has not been a version released by me.
[Xposed Framework Modules] Kev1000000:
Is it possible to remap the left and right click buttons of an attached mouse? It currently doesn't work, but thought I would ask if this was possible.
[Xposed Framework Modules] egingell:
External hardware is "if it works, it works" support.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] dk_zero-cool:
Before you try external devices, you need to enable them in the app.
[Xposed Framework Modules] Kev1000000:
I have, but the mouse clicks are not recognized. =(
[Xposed Framework Modules] dk_zero-cool:
In that case your out of luck. Maybe once I finish my new app and module, but I cannot test every type of device ever made. The main purpose of the module, is to add more features to your device buttons.
[Xposed Framework Modules] Kev1000000:
I completely understand. I already went PRO, because I have re-mapped my logitech mouse buttons to be keystrokes, but it won't let me re-map the left/right clicks.

I am using this module as a way to control my Nexus 7 in my car with a mouse, which gives me the haptic feedback I desire, as to make using a tablet less distracting in vehicle. It works amazingly well, outside of the left/right click issue.
[Xposed Framework Modules] matii_ziomek:
Hi, is there any way to separate volume buttons from headset panel and volume buttons from device? If I change action from vol+ to next track at headset button it changes with device bulitin Vol+ too ? LG D802
[Xposed Framework Modules] egingell:
No - they are both literally the same buttons.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] dk_zero-cool:
Android's key system is based on key codes and not so much about who sent the code. No mater if you press the key on your device or on your headset, it is the same code being sent. Each code has a specific option, like 25 (I think) for volume up or down. Besides that, Android does not have much options to track who sent the key. The only thing that I am able to, it check the type reported by the device, which is what I use to disable external devices. But even this fails when a device has builtin keyboard, because I can't actually see that it is external, only that it is a keyboard, which normal phones does not have.

So until Android get's better device options, and I get more time to spend on it, I am not adding much support for externals.
[Xposed Framework Modules] jiznon:
I'm still awaiting a response to this. Would really like my capacitive Back button to Long Press > Alt+Tab one way or the other.
[Xposed Framework Modules] dk_zero-cool:
I don't really have an answer at the moment. For some reason some of these newer HTC devices seams to have problems with this module. Normally this is the recent button. You can try to enable debug, reboot and then grab a logcat while pressing that button. Without a log, there is no chance, cause I do not have HTC and do not think that I ever will again. But in any case, this module cannot convert a press into Alt+Tab. Meta keys are not currently support and will not be until the new backend is done, and I don't have time to work on that during the sommer.
[Xposed Framework Modules] jiznon:
Thank you. That's all I needed to hear.

Also, the phone on question is a OnePlus One, not an HTC.
[Xposed Framework Modules] matii_ziomek:
Thanks for reply, this and only 3 headset buttons are really annoying :/ I build a wired music control in my car and detection only 3 buttons is a big mistake, should be min. 5 buttons PlayPause,Next,Previous and Vol+ and Vol-. I think Google developers will do it for two years as a great novelty. Stupid Android :/ Greetings :)
[Xposed Framework Modules] last1left91:
Back button main function going slowly

Hi guys,

I've noticed that after I mapped back button to do 4 functions on Screen On condition, the main function (back function) doesn't work as smooth or as fast as it works when I don't have Back button mapped or when I have Back button with No conditions(nonmapped to anything).

Is it okay to behave like that or it's just my cracked version which raises these problem?...Thanks in advance:)

I think it has to do with Double click and Long press delay...what do you guys think?
[Xposed Framework Modules] dk_zero-cool:
The only way to detect a double click, is to wait when you release the button to see of you click on it again. The module is not magical, it can't predict what your next step will be, so it will have to wait and see. If double click is not enabled, it has no reason to wait and it will just invoke a click action right away. I am guessing that this might be your problem, although not sure what you mean with cracked version? You do know that the source is open, so it would be a waste of time to crack anything.

If you want to reduce your lag, just decrease the double click time in the app. The less time the app waits, the faster it invokes click actions, but it might encrease the chances of double click being invoked when you tab back to fast. It's all about finding a middle ground.
[Xposed Framework Modules] PIRATA!:
Hi!

Does it have a feature to swap new recent apps hard key on Samsungs with old style menu?

Tnx.
[Xposed Framework Modules] dk_zero-cool:
As long a you are talking about real device buttons, and not the software keys, then yes
[Xposed Framework Modules] sadboy7489:
Hi!,

I install xposed Additions 3.4.5 but it's not work anymore, on remap screen, the button only catch when popup detect, after I choose action, it not working anymore. Power button I don't config but it not working (press and long press). My device is Xiaomi Redmi 2, MiUI version 6.4.4.0 and run on Android 4.4.4. Can you help me? (I try to install some custom rom and it working, it's just not working on MIUI ( original rom)
[Xposed Framework Modules] dk_zero-cool:
MIUI is a custom ROM, more custom than any other. They make so many changes to it that one could ague how much of Android is actually left. I don't have much interest in MIUI based ROM's, mostly because they go so far of track from the original AOSP sources, but I could have a look at it. First you need to enable debug in the module and reboot. Then you need to get a log when you press the buttons that is not working. Without a log, I cannot help.
[Xposed Framework Modules] sadboy7489:
I enabled log, how can I send it to you? However I also collect log from xposed installer. Hope it useful https://www.dropbox.com/s/p327vmll73oi018/error.log?dl=0
[Xposed Framework Modules] Jsilver73:
Hi [MENTION=3147360]dk_zero-cool[/MENTION]

please could you tell me what I need to do for you to help me run your module on AOSP 5.1.1 for jflte - it works fine on CM based 5.1.1 but in AOSP it current even register the key presses, for example, if I try and register the home button, when promoted by the toast I press the home button and simply come back to the home screen, power button turns screen off. I am running gb also which does manage to remap hardware keys but doesn't offer the same level of customisation that your module does. On other ROMs gb has never interfered with your module, I have tried without gb and still same issue.

What do you need me to provide to help get this awesome module running on AOSP?

BTW I used your pro version for a long time :)
[Xposed Framework Modules] dk_zero-cool:
The problem is not the module. The problem is the Xposed Framework support for your MIUI Rom. The log you provided contains 1000's of lines of XResource crashes. If you want to run Xposed Framework on your MIUI Rom, then you need to disable the resource support in Xposed Installer, because that is not supported with your MIUI version.

The problem must be something else, because this module is based on AOSP. Enable debug in the app, reboot and get a logcat while trying to remap a button. Then attach the log here together with the Xposed Installer log.
[Xposed Framework Modules] themachinist:
Same issue. Htc One M7, Stock GPE rom 5.1. Enclosed logs.
[Xposed Framework Modules] dk_zero-cool:
There is nothing in the log that seams out of order. But maybe first try with all other modules disabled, cause you have a great deal of them. Not all modules are compatible with one another.
[Xposed Framework Modules] themachinist:
Tried disabling all modules except for yours and rebooted. Still didn't work. Tried disabling c.f.lumen and lux auto brightness as well. Still don't work.
[Xposed Framework Modules] dk_zero-cool:
I will provide a build of the app tomorrow some time with some added logging of the connection between the app and the service. Because the current log does not show that anything is crashing, so it properly something else.
[Xposed Framework Modules] PIRATA!:
Hi there!

Is there a way to remap the soft keys of S5 so to have different short and long press the default??

Tnx.
[Xposed Framework Modules] dk_zero-cool:
This module adds options to real buttons, those physically attached or marked on your device. Button Simulators will not work and this is by design.
[Xposed Framework Modules] Kev1000000:
Hey DK, thought I would share this video I took of my current use-case for Xposed Additions. This enables all of the mouse functionality you see in the video. Thanks so much for a great piece of software =)

https://youtu.be/OwxmXuLKuS8
[Xposed Framework Modules] athibanvasanth:
Same here. Doesn't work even after disabling other modules.
[Xposed Framework Modules] :
LG L90

CM11

There's a button on the upper left of the phone that registers as info. This works fine. But my home button (physical button) no longer wakes the phone. As soon as additions is disabled and i do a reboot, my home button wakes the screen again just fine. Binding the home button to power in the app resolves this, but I don't think it should've been broken initially with no bind present.
[Xposed Framework Modules] dk_zero-cool:
Android has a lot of key configuration files. One of the things that these files states, is which buttons should wake the device and which ones should not. This module uses these configurations (Just like a pure AOSP ROM) to make this decision, because that is how Google made it. CM is a custom ROM that does not always bring consistency across devices. It often depends on the developer working on a specific device. In your case, the developer who is working on your device, did not really care about configuring these files properly. CM on my SGS3 however, was configured properly and the module wakes the device with the Home key just fine, without modification.

This module is built on AOSP. I cannot hard-code different configs for every type of device in the world. Your problem (Which is not even that big of a deal, as you can easily remap Home to Power, which is kind of the point with this module) is not caused by the module. You should instead write to whomever is working on your CM version and have them properly configure things according to Google's guidelines.
[Xposed Framework Modules] Tlamaki:
hi,

Which is the last working version in Xperia Play?
[Xposed Framework Modules] corncobman:
I really like this module, however I'd like to make a suggestion.

When I remap the headset buttons to volume up / volume down, for example, I tried to set it so that holding the button increases the volume and double-click and holding decreases the volume but it only changes the volume once and then stops, even if the button is held down.

Would it be possible to continue changing the volume until the button is released?

Thanks.
[Xposed Framework Modules] gerhardo:
Long press when long-long pressing is implemented in my my mod of this module:

http://xdaforums.com/showthread.php?t=2714281

There are other changes too, like no delay for unhandled buttons, it seems like dk_zero-cool will not merge them.

The latest 3.4 patches are not merged, I have no Lollipop device to test on anymore.
[Xposed Framework Modules] :
Message edited.
[Xposed Framework Modules] Cyboy:
I found your ideas quite reasonable ,but be kind enough to add an checkbox option to enable/disable this function for God sake

i'd appreciate your efforts also kindness
[Xposed Framework Modules] monroe0328:
Omg problem solved. Deleted.l
[Xposed Framework Modules] killoid:
[MENTION=3147360]dk_zero-cool[/MENTION] v3.5.7 is not recognizing any of my keys when i am trying to add new key. error log shows nothing with debug enabled (rebooted too). xposed log attached below. my device is samsung galaxy y duos, stock rooted gingerbread 2.3.6 rom.
[Xposed Framework Modules] h3110:
Update of Xposed Module

The latest (version 65) of the Xposed module just got released, and it does not seem to be working with this module, which reports "missing service" upon opening.

Revert back to version 64 of the Xposed module for now.
[Xposed Framework Modules] dk_zero-cool:
There seams to be some general 2.3.6 issues, I will look at it

It is working fine, but there is an error in the opdated xposed as it cannot enable modules, this however is not an issue with this module.
[Xposed Framework Modules] -Happy Feet-:
Hello,

I try to remap the Xperia Z1 Hardware button on an cm12.1 based rom to open the camera with it. But no reaction. I attached an log. I hope you can help me..

https://drive.google.com/file/d/0B7iBahEWKKQ_MkF6cUN5V0lHU1k/edit?usp=docslist_api

Gesendet von meinem Xperia Z1 mit Tapatalk
[Xposed Framework Modules] dk_zero-cool:
Camera keys needs to be supported by the camera app. Most stock cameras does nor support it. Download a different camera app, or get Pro version to enable application launch.
[Xposed Framework Modules] BlindWanderer:
Love the app and paid for the extra features.

What I would really like is a General fallback Condition. I use XPosed Additions to map hotkeys. It's tedious to map all three conditions and it would be nice to only map one. Naturally if you did map one of the other coditions that condition would override it.
[Xposed Framework Modules] dk_zero-cool:
I am already working on a complete new version that is meant to add a lot more flexibility and a lot more features. However this takes time, and I am also currently pressed with other things, so not sure when it will be done. This does however mean that I am limiting the work on the old version to bug fixes only.
[Xposed Framework Modules] wto605:
Have you tried XAP with 5.1.1 and/or Nexus 6 (not sure which is the problem)? It's failing to recognize any keypresses at all (When at the "Intercept Key Code" pop-up the button still performs its default action, the N6 is new to me so I don't have existing profiles set up).

The Wake on (un)plug settings seem to work (don't normally use them). There's nothing in the error log after enabling debug mode and rebooting. Logcat is equally unhelpful (starting from the intercept key code popup, pressing volup/voldown, then taping cancel):

V/WindowManager( 1101): not Base app: Adding window Window{3d502836 u0 com.spazedog.xposed.additionsgb/com.spazedog.xposed.additionsgb.ActivityScreenRemapMain} at 10 of 18
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
E/PowerHAL( 1101): touch_boost: failed to send: No such file or directory
W/SurfaceFlinger( 275): couldn't log to binary event log: overflow.

P.S. I'm using romracer's version
[Xposed Framework Modules] Fuzark:
Amazing module.

Its possible add a option to combine actions? For exemple: when i press power button i like to use one combination, that is go to homescreen + poweroff the screen. Cuz when i turn off the phone on app drawner and turn on again, still on app drawner screen. And i want to go always to home screen when i turn off the phone.

Thx!
[Xposed Framework Modules] egingell:
Tasker should be able to help you with that.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Mister Floppy:
I would appreciate that, too. Maybe you could also add an option to "pause" or "delay" the actions?
[Xposed Framework Modules] egingell:
Tasker can* help you with that.

*I just tried it.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9