yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] abhijeet715:
+1 [MENTION=3147360]dk_zero-cool[/MENTION] please fix this for nougat. If you need logs, I am ready to provide. Settings dont stick after boot, and all other apps that allow to change button actions create some other problems and butoons start behaving differently. I really hope you do the needful.

Running LineageOS 14.1 (Nougat 7.1.2) with Xposed v88.1 on OnePlus 2
[Xposed Framework Modules] scilor:
I think the problem is just a permission one.

EACCES is missing

https://stackoverflow.com/questions...en-failed-eacces-permission-denied-on-android Should be the solution.

If I find time I will try that and fix it.
[Xposed Framework Modules] sven.cnrd:
I just had a quick look at the Code myself, but why do you think so? I don't see any reasons for why it would need External Storage Access. I just added the permission to the manifest and granted it manually after installation. No difference.

Need to dive into the code...
[Xposed Framework Modules] scilor:
I got a logcat message about it everytime I exit the configuration screen of that app. Maybe it's another module that is the cause of that message.

But it must be something with reading / saving the configuration. Everything else is working well.
[Xposed Framework Modules] droidbot1337:
the dev hasent been on here in months. sadly the only way this will get fixed is if another dev works on it. this is the problem with many apps/modules.
[Xposed Framework Modules] the-blind-bandit:
Does anyone know why screenshot option is missing in nougat, i would understand if it just didn't work but this seems unusual?
[Xposed Framework Modules] Phoenix09:
logcat didn't give me anything useful.

it could be related to this
[Xposed Framework Modules] mctiew:
I have the same problem as everyone.

I noticed that this module is not listed by supersu for acquiring root permission. Could it be it failed to acquire root and so many write permission things have failed ?
[Xposed Framework Modules] Phoenix09:
no. this module doesn't need and doesn't use root access.
[Xposed Framework Modules] mctiew:
I notice this one too.
[Xposed Framework Modules] mctiew:
Noticed another thing. The module requires XposedBridge but if we look at Xposed installer there is no XposedBridge considered installed.

Could it be XposedBridge is yet to be working and therefore affecting the proper working of this module ?
[Xposed Framework Modules] mijorus:
same problem here
[Xposed Framework Modules] Phoenix09:
XposedBridge is the Java part, which is installed, no modules would work without it.
[Xposed Framework Modules] pocketrule:
Working Alternative for Android 7 / Nougat

I've read some users have got the same problem with Xposed Additions when using with Android Nougat: Settings are not saved. In addition, on my device the long press of (physical) menu button doesn't work with acivated module.

As long as these problems exist I use a module already mentioned by the users [MENTION=1677632]_mysiak_[/MENTION] and [MENTION=289572]andrewilley[/MENTION] : Physical Button Music Control https://xdaforums.com/xposed/modules/mod-physical-button-music-control-1-8-t2620777

This module focuses on media control but you can use tasker shortcuts to execute almost everything you want.

Anyway, I'm a fan of Xposed Additions, I also hope, there will be an update for Nougat and Oreo.
[Xposed Framework Modules] mctiew:
This module the user interface is so confusing. Maybe I am quite dumb, not up to a level of able to understand it. Sad.
[Xposed Framework Modules] mctiew:
I am tried out xposed edge instead. My simple requirement can be met with that module instead. The module does not seem to allow screen off condition to be used. But for now, i am making do with it until a fix in Xposed Additions is identified.
[Xposed Framework Modules] JirkaS:
Upgrade, please!

I have bought full version years ago. Now on Nougat I'd like to use it as on older devices. Please... No app is better, even those suggested above.
[Xposed Framework Modules] sven.cnrd:
I'm still experimenting with the source code. Unfortunately I have almost no time for this (2 kids), but I need this module myself (alternatives sucks IMHO). So sooner or later I'll get it done, even if I'd need to rewrite the preference storage from scratch.

Don't expect anything to be published from me soon, if you need this quick do it yourself.
[Xposed Framework Modules] marcelser:
Apart from the fact it's not saving the settings, it also seems it doesn't work for soft buttons like the ones on my new Samsung S8. Does anybody know something similar for soft buttons? There used to be a module for Sony devices but they are Xperia only. Any ideas?
[Xposed Framework Modules] sven.cnrd:
Are you using a Samsung ROM or Custom ROM? I already saw a bit of special button-related code for Samsung roms while debugging, might be Nougat Samsung ROMs need more adjustments. It the remapping of physical buttons working?

For my LG D405 on Lineage 14.1 soft buttons (Menu+Back) are working fine. (until I reboot :eek:)
[Xposed Framework Modules] JirkaS:
I believe that "soft" buttons are configurable in GravityBox. The llost of "hard" buttons was the reason why I selected my Galaxy S7 instead of S8...
[Xposed Framework Modules] marcelser:
works

works perfectly. Thanks a lot.
[Xposed Framework Modules] francwalter:
Can you give me a hint, how I can keep my settings after a reboot?

Restore with titanium even doesn't help, after reboot all settings are gone.

This really great module worked years on my SGS4 after some update (had told that issue to you before) but now I am on a new phone, a Cubot Note Plus with Android 7, rooted with Magisk 14.3 beta, Xposed 88.2, and that is not working anymore.

I have the latest pro from 2015.

Thank!

EDIT 2017-11-27: never mind, I uninstalled Xposed Additions, I use Gravity Box [N] instead. Can do nearly the same, but is persistent after a reboot. Development not stopped long ago like here :)
[Xposed Framework Modules] kiritoxda:
Where is the option to map keys i don't see it anywhere.
[Xposed Framework Modules] francwalter:
(Options) 'Buttons' (Configure button re-map settings) > (Keys) Add new Key

now you hit any key (I think no softbutton) then you choose a context (display on, locked or off) and map each one of these with any action you like.

It is a lot of tapping though, till the key is mapped in its context and it is gone after a reboot, because Android 6+ doesn't allow the mapping on boot, because it seems that the setting is done for another app (not Xposed Additions but Xposed Framework or even other Framework).

So if you never reboot your phone, no worries ;)
[Xposed Framework Modules] Greight:
I believe Xposed Edge module is the best choice at the moment. The only thing I miss is the triple press setting which actually added another layer of buttons for me.
[Xposed Framework Modules] francwalter:
Edge doesn't allow to set the power key, which is the only reason I would use edge :(

I asked though:

power key not working
[Xposed Framework Modules] JirkaS:
Xposed Edge is a sort of alternative. Does not provide all functions as Xposed Additions, but is ok. And for Power button can be used module Physical Button Music Control. It works well only for short and long-press on my Galaxy S7 - that is the reason why I use BOTH of this modules. Awaiting new version of Xposed Additions looks to be sci-fi (despite I have paid and would pay again for its purposiness). Now I can upgrade to nougat finally!
[Xposed Framework Modules] JirkaS:
I've just recently discovered some slowdown of my Galaxy S7 and someone on Xposed Edge forum wrote that uninstalling it helps. So I decided to use Physical Button Music Control module in combination with Gravitybox options for double-clicks and all seems ok now.
[Xposed Framework Modules] MariferC:
Seems that the settings are lost on restart because the service that is responsible for restoring the settings when restarting fails to start.

12-15 11:55:17.708 1730 1730 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1421 com.spazedog.xposed.additionsgb.backend.service.XService.pokeAppPreferenceService:202 com.spazedog.xposed.additionsgb.backend.service.XService.access$400:52 com.spazedog.xposed.additionsgb.backend.service.XService$1.bridgeEnd:144 com.spazedog.lib.reflecttools.bridge.MethodXposed.afterHookedMethod:68
12-15 11:55:17.712 1730 1730 W ActivityManager: Unable to start service Intent { act=app.additionsgb.preferences.service.BIND pkg=com.spazedog.xposed.additionsgb } U=0: not found

On restart this method is called and later fails to start the service here.

PD: I'm not a developer but a "googler" :p and I don't know how to solve it (I don't even know if this is correct).
[Xposed Framework Modules] xdafundorin:
Does anybody have a version from this attachment? I've found a link to this post on reddit, saying that this version should save settings, but the attachment link isn't working for me.

https://xdaforums.com/showpost.php?p=60189191&postcount=2299&nocache=1

Tried all versions available. None of them working. Also tried setting app as system, as was suggested at some forum. So, maybe, some experienced programmed could make a fork of this project on Github with a fixed version? Please?
[Xposed Framework Modules] Greight:
The attachment is invalid. Maybe we should contact [MENTION=3147360]dk_zero-cool[/MENTION]
[Xposed Framework Modules] ffuser1:
that's for an old version. 3.6.3 is the latest, install from within xposed
[Xposed Framework Modules] Greight:
We all know the new version doesn't work.
[Xposed Framework Modules] reayard:
I can confirm that it fails to start the service but I observed that when you change the settings the same service can be started without problems and the settings get written. So I added a delay of 60s before calling the pokeAppPreferenceService method and then starting of the service and loading the settings works.

As this causes some strange side effects and isn't the cleanest way to "solve" the issue we would need some new trigger when the initial pokeAppPreferenceService should be called. Currently it is bound to be called after method systemReady from the ActivityManagerService. Some first googling (I am no Android developer either) did not reveal any hints when it is save to bind a service on startup. Probably there is also some other dependency from the Xposed framework that we have to wait for.

Any hints or helpful Google results would be appreciated. ;)
[Xposed Framework Modules] sven.cnrd:
That's interesting. Where exactly did you add the delay? And what are the side effects?
[Xposed Framework Modules] reayard:
In file XService.java line 144, just added SystemClock.sleep(60000); before the pokeAppPreferenceService(...).

In the meantime I found a solution that is clean enough for me to keep it that way. All I did was to replace line 144 in XService.java

pokeAppPreferenceService(PokeType.RESTORE_SETTINGS);

with these lines

mContextSystem.registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
pokeAppPreferenceService(PokeType.RESTORE_SETTINGS);
}
}, new IntentFilter(Intent.ACTION_BOOT_COMPLETED));

This will delay the call enough to make it work.

In case anybody wants to test the changes without building the module I can attach the debug build of the module that I am using myself.

Edit: I attached the apk that I created myself. It has version 3.6.4 to distinguish it from the latest official release but beside the fix above it has no changes.
[Xposed Framework Modules] sven.cnrd:
Yup, this works fine. And it seems like a clean and reliable solution to me to register on ACTION_BOOT_COMPLETED.

If you could upload a more or less clean build that would be fine - mine works in terms of settings, but is totally ****ed up otherwise after all I've tried in the past few weeks, while exploring the module and learning how xposed works. Guess I won't find the time to rebuild from the original source until the weekend comes.

Thanks a lot for making this happen - While looking for the connection problems to the service I didn't consider this to be a timing problem, even though I noticed that the connection worked fine when starting the main activity. My thought was this could be because of OS-related changes that broke the connection attempts from the hooked methods, while the ones from the own activity still worked. Well, I'm an idiot :D
[Xposed Framework Modules] vd69:
Now does it save the settings?If yes can you please make a modded apk or a flashable zip thru recovery?.Thanks
[Xposed Framework Modules] the-blind-bandit:
Just thought I'd throw this out there if it helps anyone; there's a module called Xposed Edge which has a similar button remapping function and works on android N, it is missing some features such as pressing multiple buttons for an action and different actions for screen on, off or on lockscreen but it it works really well and has lots of other features.

Xposed Edge isn't quite a substitute but it's pretty close.

Edit: just did a search and everyone else has said this ? sorry
[Xposed Framework Modules] amokkatxda:
This modified module does not see "pro" version. I can not use combo keys like power+volup because of this, such combos are "pro" features.
[Xposed Framework Modules] sven.cnrd:
All pro features are unlockedby making XService.isUnlocked return true. Starting at line 372:

@Override
public boolean isUnlocked() {
//return mContextSystem.getPackageManager().checkSignatures(Common.PACKAGE_NAME, Common.PACKAGE_NAME_PRO) == PackageManager.SIGNATURE_MATCH;
return true;
}

Without this hack you'd need to match the signature of the fixed module with the siganture of the pro module. I have no clue about signing, so I'm out :D

//Edit: I made a release with this and the changes above, v3.6.5: https://github.com/sven-cnrd/xposed-additions/releases/download/v3.6.5/xposedAdditions_3.6.5.apk
[Xposed Framework Modules] francwalter:
Strange, I just tested it but now this version is not a Pro anymore, I have the pro key installed, but it is not recognized with this 3.6.4.

Without pro, there is only single click etc. as restrictions. Is this not working?

But anyway, the setting is gone after reboot.

I have Cubot Note Plus with Android 7.0 (root).

Thank, frank
[Xposed Framework Modules] xdafundorin:
The delay is a bit long after reboot, but, at the end of the day, it works, which is fine. 3.6.5.
[Xposed Framework Modules] EduardoAngelBM:
I can confirm that settings stuck after reboot with reayard's changes and Pro features are also available with rueolps's v3.6.5.
[Xposed Framework Modules] amokkatxda:
For me "pro" is not working on 3.6.5 too. App shows "get pro..." etc and I can not add combo button triggers.

After reboot everything went fine.
[Xposed Framework Modules] reayard:
I had some "moral concerns" but also decided this morning to release a version of the module with the pro-features enabled by default. Then saw that you already did the job, so thanks for helping out! ;)
[Xposed Framework Modules] dbesoli:
Again sorry but after a bit of googlin' I found that in galaxy s2 the class com.android.server.power.PowerManagerService

still is com.android.server.PowerManagerService (i don't know why) so I tested your code replacing the name in your class PowerManager and

now the hook is achieved.

D/com.spazedog.xposed.additionsgb$PowerManager( 1847): Adding Power Management hooks

D/com.spazedog.xposed.additionsgb$ApplicationLayout( 1847): Adding Application Layout hooks

but still can't avoid the wake on plug/unplug... I will continue with this when I have some time. If someone with S2 is

interested....:confused: on this I will post the results if I have
[Xposed Framework Modules] churrolakra:
Great module OP!

Previous version worked perfect on my S3 omega rom... now when I remap screen off buttons (long press home, long press power, double click, etc) to media play, media next.. the command works BUT the screen turns ON when the track changes :S didnt happened in the previous version!

I am missing something?
[Xposed Framework Modules] dk_zero-cool:
It will not work by just changing the name. It seams that your device (Despite running Jellybean variant) is using the old class. This class also uses different methods to control this. Instead of changing the class name in the file, try changing

private static final Boolean OLD_SDK = android.os.Build.VERSION.SDK_INT < 16;

this property from '16' to '17'

Year there came some new issues when I added the default long press support. Am working on it.
[Xposed Framework Modules] churrolakra:
Glad I can help with the testing :D anyway.. reverted back to 2.1.0 and happy in the meanwhile..

It would be awesome adding the option to remap buttons to TASKER task. infinite posibilities!

thanks a lot, keep on with the good work and sory for my english
[Xposed Framework Modules] gunnar236:
The waiting is over! First true button remapper for android!

I really really love your work! Thank you!

If the buttons could be recognized by Tasker as events (and maby also as states => possibility to press two buttons at the same time.. or combined with shakes or other sensor events etc) my life would be completly perfect! :)
[Xposed Framework Modules] churrolakra:
+1
[Xposed Framework Modules] dbesoli:
Ok, I've tested this and it's working OK. Only tested USB plug/unplug events what is that I need.

Thanks a lot dk_zero-cool!
[Xposed Framework Modules] dk_zero-cool:
And thanks to you as well, will have this done in the next version
[Xposed Framework Modules] signupstuffid:
With 2.2.0 no matter what I remap the menu key for screen on to, (except disabled, which is not useful) it reboots my phone when I tap it once. Double tap works, and long tap works too, but single tap reboots my phone, even if set to default.

At first I upgraded the module from the xposed installer downloads section, but that caused FCs before I could configure anything. So disabled, uninstalled, rebooted, reinstalled, and got it working.

I'm using the same phone and ROM as in my signature, as well as the latest stable xposed framework.

I installed the previous version, and all is working as it should. I'll try the next update and let you know if the problem is fixed.
[Xposed Framework Modules] TwinAdk:
[MENTION=3147360]dk_zero-cool[/MENTION], i just came by to tell you that i think this is THE most fantastic Xposed add on to date! THANK YOU so very much for developing this module. The last update gave SOOO many options, its simply genious! I love the fact that the buttons are now open for remapping, and the fact that the module can register buttons, so you can remap anything that receives input (possibly with limits, but still)!

AWESOME WORK, KEEP IT UP!! :good::good::good:

Kind Regards

TwinAdk

Tak, endnu en gang! :)
[Xposed Framework Modules] f_padia:
Is there any reason this module wouldn't work on sense ROMs given I have xposed installed and running fine?

I like the idea but don't really want to leave sense. Thanks
[Xposed Framework Modules] dk_zero-cool:
Well Xposed will not do much if the methods or classes I hook have been moved or renamed. But I hardly think that HTC has changed every class and method, so if you where to provide a bit more information about what is not working and what Android version you are using, then that would be a start to clearing that up.
[Xposed Framework Modules] f_padia:
Well I've installed the module but I can't see where to change any settings. Where do I go to remap the buttons?

I'm running sense 5, Android 4.2.2 on one x
[Xposed Framework Modules] brotbuexe:
Click on the module name inside xposed installer.
[Xposed Framework Modules] f_padia:
That just brings up a toast message saying that the module doesn't provide a user interface
[Xposed Framework Modules] murtaza217:
I'm having this same issue. maybe no sense support :-/
[Xposed Framework Modules] dk_zero-cool:
If you download version 2.x instead of 1.x, you will have your user interface and an icon for it in the drawer. You will also be able to remap (Version 1.x does not remap, it actually only contains 3 options in Android Settings)
[Xposed Framework Modules] f_padia:
Aah right thanks. Was looking on my phone and missed the mirror link and went straight for the attachment
[Xposed Framework Modules] murtaza217:
same. silly mistake.

that said, i'm having a problem whereby single tap on the back capcitive key is haptic but not doing anything after i re-mapped the home key
[Xposed Framework Modules] Ranomez:
The Media Play/Pause key on my beats headset is detected as an unknown key but is working, but it also added the unknown action to the list of actions and that is just the play/pause action....
[Xposed Framework Modules] sven.cnrd:
I also had some moral concerns (since no license information is available) - but then again, I paid for this. And so have many others who now would be empty-handed. To ease my moral concerns I wrote to the original Dev (E-mail) urging him to make a statement and offering to take it down again - so far no reaction.
[Xposed Framework Modules] francwalter:
THANKS.

That 3.6.5 from sven-cnrd works :)

Does that mean, I can uninstall the Pro-Key-App?
[Xposed Framework Modules] reayard:
That thank should go to rueolps and yes you do not need the Pro-package with this one. :)
[Xposed Framework Modules] sven.cnrd:
rueolps==sven-cnrd... time to change my username on XDA to match the rest, I guess :D

//Edit: Done, thanks to the XDA-Team for the quick response!
[Xposed Framework Modules] iiSAHAMii:
Unfortunately, my settings still disappear after reboot with 3.6.5. :rolleyes:

Rom ambasadii s7 nougat 7.0
[Xposed Framework Modules] zyguo:
Can't recognize home button on OnePlus 2 updated LOS 14.1 while adding new key, maybe it's because the combined home and fingerprint key, no issue on cm13, any suggestions?
[Xposed Framework Modules] reayard:
Make sure that you give the module enough time after reboot to load the settings. The problem with our fix is that the loading of the settings is delayed in order to work. When you open the module settings while they are not yet loaded this could cause the settings to be lost.

I observed that doing a warm restart (i.e. it should say something about only restarting the software) it took about 1 minute for the settings to load after the device was already usable again. When doing a cold restart (i.e. from the power menu) the start of the device took long enough so that the settings where already loaded after the device was usable.

Using a S7 with BatMan ROM but I doubt that this makes any difference.
[Xposed Framework Modules] iiSAHAMii:
Thanks for taking time to answer me. I waited after reboot and your right, settings come back, it's work.

Thanks again, I can finally enjoy this great module. :good:
[Xposed Framework Modules] palmuse:
Hey all, I have a thought about restoring existing button configs. I know it was mentioned that TB does not restore the settings. This is not entirely true. I found that the settings are stored in /data/data/.../shared_prefs/config.xml.

This is actually restored by TB but XA never pulls them in. Would it be possible to add an import or add the functionality to auto-import the XML file?
[Xposed Framework Modules] zyguo:
Any suggestion on mods like Xposed Additions that can apply to on-screen navbar buttons? Devices are now tend to provide less and less physical buttons, I think maybe it's time to make the next move.
[Xposed Framework Modules] incognitonk:
Causes a bootloop in Oreo.
[Xposed Framework Modules] sven.cnrd:
Thanks for letting us know. However, I'm not interested in taking over developement for this module - all I wanted was to make it work again for myself. Might take care of this once I'm running Oreo, if I run into the same issue. Otherwise you'll find the last changes in my github account. Anyone please feel free to give it a try yourself.
[Xposed Framework Modules] Harsh.gundecha:
Are fingerprint actions working for anyone on any device and rom?

For me, on moto G5+ stock 7.0 rom it recognizes fingerprint events but doesn't performs the action assigned to it

thank you