Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,147 Members 48,574 Now Online
XDA Developers Android and Mobile Development Forum

[problem] invoke "super" methods

Tip us?
 
defim
Old
#1  
Senior Member - OP
Thanks Meter 799
Posts: 1,548
Join Date: Feb 2012
Default [problem] invoke "super" methods

I'm searching a way to invoke super methods within a before hook.
This is needed for Android's activity lifecycle, like onCreate onResume onPause onDestroy etc
Is it seems not possible at the moment, so i think Xposed has to be extended :-/
Motorola Defy+ aka MB526 Android 4.4.4 Cyanogen Mod
Samsung S4a aka GT-i9295 Android 4.2.2 Google Edition
My Android apps / Xposed modules: show Threads
 
GermainZ
Old
#2  
GermainZ's Avatar
Forum Moderator / Recognized Developer
Thanks Meter 6,367
Posts: 5,462
Join Date: Aug 2012
It's not possible directly via reflection. You can call it as a static method (assuming it is static), or get an instance of the super class and call the method you want.
 
defim
Old
#3  
Senior Member - OP
Thanks Meter 799
Posts: 1,548
Join Date: Feb 2012
I'm using most time the reflection methods, not the wrapper of xposed. So finding the methods in the super class is not the problem, but executing with the context of the hooked class does not work, because not the method of the super class is invoked
Motorola Defy+ aka MB526 Android 4.4.4 Cyanogen Mod
Samsung S4a aka GT-i9295 Android 4.2.2 Google Edition
My Android apps / Xposed modules: show Threads
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes