Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[problem] invoke "super" methods

OP defim

20th July 2014, 06:52 PM   |  #1  
defim's Avatar
OP Senior Member
Thanks Meter: 917
 
1,762 posts
Join Date:Joined: Feb 2012
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 :-/
21st July 2014, 01:18 AM   |  #2  
GermainZ's Avatar
Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 7,222
 
5,871 posts
Join Date:Joined: Aug 2012
Donate to Me
More
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.
21st July 2014, 03:53 PM   |  #3  
defim's Avatar
OP Senior Member
Thanks Meter: 917
 
1,762 posts
Join Date:Joined: 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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes