libxposed / api

Apache License 2.0
144 stars 60 forks source link

Set\get Object extra #27

Closed neervanbiqs closed 1 month ago

neervanbiqs commented 1 month ago

In legacy xposed api there are methods setObjectExtra and getObjectExtra inside XC_MethodHook.MethodHookParam class. Also in XposedHelpers class there are methods setAdditionalStaticField and пetAdditionalStaticField My module uses these methods. Is there an alternative in new api?

vvb2060 commented 1 month ago

https://github.com/libxposed/api/blob/ca2e4b8da8b21a60578f290278fbfe5d1e3e3c07/api/src/main/java/io/github/libxposed/api/XposedInterface.java#L180

neervanbiqs commented 1 month ago

Thx! Your answer is about extra object between before and after invocations. Well. But what about legacy setAdditionalStaticField and getAdditionalStaticField? For example I need to set extra field to param.thisObject in some hooked method and get this extra in another hooked method?

vvb2060 commented 1 month ago

static kv map, it is not an API

neervanbiqs commented 1 month ago

Got it. Thx!