forked from rovo89/Xposed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxposed.h
37 lines (29 loc) · 1.49 KB
/
xposed.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef XPOSED_H_
#define XPOSED_H_
#define ANDROID_SMP 0
#include "Dalvik.h"
#include <list>
namespace android {
#define XPOSED_JAR "/data/xposed/XposedBridge.jar"
#define XPOSED_JAR_NEWVERSION XPOSED_JAR ".newversion"
#define XPOSED_LOAD_BLOCKER "/data/xposed/disabled"
#define XPOSED_CLASS "de/robv/android/xposed/XposedBridge"
#define XPOSED_VERSION "0.2"
extern bool keepLoadingXposed;
typedef std::list<Method>::iterator XposedOriginalMethodsIt;
// called directoy by app_process
void addXposedToClasspath(bool zygote);
bool xposedOnVmCreated(JNIEnv* env, const char* loadedClassName);
void xposedCallStaticVoidMethod(JNIEnv* env, const char* methodName);
// handling hooked methods
static void xposedCallHandler(const u4* args, JValue* pResult, const Method* method, ::Thread* self);
static XposedOriginalMethodsIt findXposedOriginalMethod(const Method* method);
static jobject xposedAddLocalReference(Object* obj);
// JNI methods
static void de_robv_android_xposed_XposedBridge_hookMethodNative(JNIEnv* env, jclass clazz, jobject reflectedMethod);
static jobject de_robv_android_xposed_XposedBridge_invokeOriginalMethodNative(JNIEnv* env, jclass clazz, jobject reflectedMethod,
jobjectArray params1, jclass returnType1, jobject thisObject1, jobjectArray args1);
static void de_robv_android_xposed_XposedBridge_setClassModifiersNative(JNIEnv* env, jclass clazz, jobject reflectClass, jint modifiers);
static int register_de_robv_android_xposed_XposedBridge(JNIEnv* env);
}
#endif // XPOSED_H_