[MOD] Xposed Additions mod: More versatile buttons

rdefranx

Senior Member
Apr 12, 2008
58
3
0
Bronx
Sucsessfully maped camera and torch app to screenoff keys.
Make a tasker task like on screens and export to app (make a new camera and torch app)
Then map to offscreen key this apps.
I will try to do that. I just create the new button in xposed additions and I thought it was just that. Thanks
 

gerhardo

Senior Member
Aug 23, 2013
294
91
0
I will try to do that. I just create the new button in xposed additions and I thought it was just that. Thanks
The b2redator workaround is required to wake the phone when the screen is off, it does not launch a Camera app.

The stock Gallery/Camera app do not snap pictures when pressing the Camera button
(and I do not have a stock Camera app in the launcher, using Nova, (OUI2 may have some workaround), so stock Camera is not listed in the Xposed Additions application list either)
 

rdefranx

Senior Member
Apr 12, 2008
58
3
0
Bronx
The b2redator workaround is required to wake the phone when the screen is off, it does not launch a Camera app.

The stock Gallery/Camera app do not snap pictures when pressing the Camera button
(and I do not have a stock Camera app in the launcher, using Nova, (OUI2 may have some workaround), so stock Camera is not listed in the Xposed Additions application list either)
Ok. Thanks. I do have a camera app using the stock launcher and I believe that I still had it when I used Nova launcher, I had the icon even in the navigation bar at the button of the screen. For now I am using Pie and set up the camera on the middle button.
 

b2rdetor

Senior Member
Aug 21, 2011
361
82
0
Sterlitamak
The b2redator workaround is required to wake the phone when the screen is off, it does not launch a Camera app.

The stock Gallery/Camera app do not snap pictures when pressing the Camera button
(and I do not have a stock Camera app in the launcher, using Nova, (OUI2 may have some workaround), so stock Camera is not listed in the Xposed Additions application list either)
I use thr stock camera app and it listed in additions )
My method will work only if you isnt use keyguard, if you are use keygiard - you need to include keyguard action in tasker task after pressing power button
 

limestone

Senior Member
Jul 24, 2006
94
33
0
hi:

I'm using an LG G Pro, and previously I have been using your mod successfully while in 4.1.2 Stock ROM. This morning, when I upgraded to 4.4.2 ROM, suddenly additions exhibit the following malfunction:
1. Power button is totally disabled (even if I assign a action to it, notthing happens.)
2. Haptic feedback is lost.

Is there any way you can help with it? many many thanks in advance!

*update*
I tried v2.3.8, and it works flawlessly! However, I lose the option to map buttons during lockscreen, which i also use regularly.. any suggestions?
 
Last edited:

gerhardo

Senior Member
Aug 23, 2013
294
91
0
Is there any way you can help with it? many many thanks in advance!
Enable log, reboot and try mapping.
You should be able to save and post the log (or even email it).

It may be that LG has made its own changes to the calls that the module hooks in to. 2.3 and 3.x is not hooking in the same way.
 

limestone

Senior Member
Jul 24, 2006
94
33
0
Enable log, reboot and try mapping.
You should be able to save and post the log (or even email it).

It may be that LG has made its own changes to the calls that the module hooks in to. 2.3 and 3.x is not hooking in the same way.
I tried what you suggested, but unfortunately there is nothing captured in the error log.

I noticed though that my power button totally does not work even in the first instance after it reboots, and before xposed additions manages launch and map the other buttons.

Any other ideas?many many thanks in advance!
 

gerhardo

Senior Member
Aug 23, 2013
294
91
0
I tried what you suggested, but unfortunately there is nothing captured in the error log.

I noticed though that my power button totally does not work even in the first instance after it reboots, and before xposed additions manages launch and map the other buttons.

Any other ideas?many many thanks in advance!
Can you get an "adb logcat"?
 

limestone

Senior Member
Jul 24, 2006
94
33
0
Can you get an "adb logcat"?

yes I can! I have eclipse installed. But what word do I use to filter out the relevant info for you to see?

---------- Post added at 07:17 AM ---------- Previous post was at 06:41 AM ----------

yes I can! I have eclipse installed. But what word do I use to filter out the relevant info for you to see?
Hallelujah!! I just found out that darkzerocool has released a 3.3.0b beta on the official thread, and that version works well!! (However, my camera button is not working now, which was the original reason why I came over to this unofficial version)

Thanks so much guys for your assistance thus far, no more followup needed on my end. thanks!
 

gerhardo

Senior Member
Aug 23, 2013
294
91
0
Cant understud ... your version are perfect, but his version has a lot of bugs and much less functionality...
I guess it differs from ROM to ROM though. Some ROMs change the internal working more than others. There are a bunch of special handling in for instance Samsung stock ROMs.
My purpose is slightly different: I have no commercial ambitions, primarily want something that works for me - I get something back from some other development.

But I do want my changes in the standard version. I have implemented the patches twice now. dk_zero-cool has included some of the patches now but has implemented those with a new structure so I have to adapt the code again it seems... (the transition commits are not included so I have a hard time to follow)

But dk_zero-cool has started implementing app shortcuts, I want that too (I considered doing that too, but that functionality is not trivial and I did not want to spend time unless it was included, and dk_zero-cool said he started back in March).
 

t61p

Senior Member
Mar 10, 2011
85
16
0
Hello gerhardo. Thank you for sharing your enhanced version.
I report one issue. The Last Application action could induce device reboot on SGNote2(stock ROM) and HTC-J(stock ROM). Here is one of the way to reproduce it.
1) launch an app then go back to home by tapping Back button.
2) invoke Last Application action.
It seems that it is stock ROM specific issue but could you please confirm and fix it?
 

b2rdetor

Senior Member
Aug 21, 2011
361
82
0
Sterlitamak
Hm, seems like additions totaly destoes original keymapping for a mapped key. Often you cannot return to previos normal mapiing even after completely disable all key mapping for some keys.
For example - i use gravity box for make a volume buttons long click skip tracks in music players and its works fine with all players.
But i maped with additions for screen on some apps on long volume buttons click. Isnt set any screen off actions. And gravity box mapping works fine. But when i wipe cashe and dalvik and rebooted phone, gravity box mapping isnt works for now. And volume keys when screen is off just unlock! the phone (wtf) and turns volume up and down... home button double click simply isnt works via gravity box or any other key mapping apps after any keymapping via additions (even if you will dell mapping and clear dalvik\cashe).
Yes - you ccan sad that i must map all the keys with additions. But when i map skip a tracks (next media) to long click volume buttons when screen is off, its works with some players isnt as i want. Yes - poweramp skip tracks. But neitron are rewind during song... and it sucks..
Is the way to return default keymappings??? Or i need to completely reflash rom with full wipes and dont use additions any more?
 

gerhardo

Senior Member
Aug 23, 2013
294
91
0
Hello gerhardo. Thank you for sharing your enhanced version.
I report one issue. The Last Application action could induce device reboot on SGNote2(stock ROM) and HTC-J(stock ROM). Here is one of the way to reproduce it.
1) launch an app then go back to home by tapping Back button.
2) invoke Last Application action.
It seems that it is stock ROM specific issue but could you please confirm and fix it?
get a logcat and post it
Cannot recreate it myself
 

gerhardo

Senior Member
Aug 23, 2013
294
91
0
Is the way to return default keymappings??? Or i need to completely reflash rom with full wipes and dont use additions any more?
There is something strange about key intercepts.
It should just be an extra filter in the chain but it is not working like that. There are a bunch of workarounds for "unmapped keys", that should not be needed.
So using GravityBox and Xposed Additions at the same time should be avoided, I can see double compensations, also without mappings.

What if you deactivate either Xposed module?
 

b2rdetor

Senior Member
Aug 21, 2011
361
82
0
Sterlitamak
Deactivating solved most problems except one. Double mhome action are gone... may be svoice installing will help...
Tryed to reset additions data. And remap all the keys without volume butons. And its work with gravity box volume keys mapping, but if i wipe cashe\dalvik then problem appers again. If additions media next would skip tracks in neitron like it do with poweramp - all will be good...
 

Hypocritus

Member
Oct 8, 2006
40
7
0
Washington, D.C.
Thank you gerhardo!

I prefer this version b/c my sweep2wake is as instant as 2.3.8. That makes me happy. :fingers-crossed:

One issue I am having, is that sometimes I get random button push events for my USB game controller. I don't have any of it mapped in Xposed Additions. This happens with at least one of my USB hubs. It seems to me that I had this problem several months ago, but that it was resolved in one of dk_zero's <=2.3.8 versions. If this does not make any sense to you, I can go back and test to see if I still have this problem with 2.3.8...
 

b2rdetor

Senior Member
Aug 21, 2011
361
82
0
Sterlitamak
Very interesting behavior ...when i set media next to one click on volume up when screen is off neitron player switch tracks, but the same action on long click make a rewind during current song. Hm - imho that even better )))
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone