Problems with modules not activating after module apk reinstall (Nougat 7.0)

Aug 19, 2015
26
1
0
I seem to have a problem whereby, when I do
adb install -r <module.apk>
then sometimes Xposed doesn't seem to find that the module has changed. To be sure I have to manually go into the GUI and click and unclick the module checkbox. Sometimes, rarely though, I get a popup detecting the module has been replaced and asks me directly if I want to reboot. Then it works.

Is this a known bug with Xposed for Nougat Android 7 etc.
 
Aug 19, 2015
26
1
0
Solved!

I found out that I most likely rebooted before the
Intent.ACTION_PACKAGE_ADDED intent was intercepted by Xposed Framework (probably)

This Intent most likely contained the path to the apk, which resides in a folder that every other time of a reinstallation changes suffix between "-1" and "-2". This seemed to be causing File not found by Xposed Framework every other (reinstallation) time.

Conclusion:
Don't reboot Xposed before the Intent.ACTION_PACKAGE_ADDED Intent is broadcast by Android!

It is a bit strange however, that I don't always seem to get that Xposed Framework "Do you want to reboot because a module has been updated" Toast however... though it seems to work anyway as long as you wait long enough though. Then, again, if the toast never show, then you won't know how long to wait, and sometimes it can take quite a while actually!