1 Star 0 Fork 0

章勇/Xposed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xposed_shared.h 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
zy 提交于 2019-09-11 09:31 . custom
/**
* These declarations are needed for both app_process and the libraries.
*/
#ifndef XPOSED_SHARED_H_
#define XPOSED_SHARED_H_
#include <sys/stat.h>
#include "cutils/log.h"
#include "jni.h"
#ifndef ALOG
#define ALOG LOG
#define ALOGD LOGD
#define ALOGD LOGD
#define ALOGE LOGE
#define ALOGI LOGI
#define ALOGV LOGV
#endif
#if PLATFORM_SDK_VERSION >= 24
#define XPOSED_DIR "/data/user_de/0/com.android.widgets.installer/"
#else
#define XPOSED_DIR "/data/data/com.android.widgets.installer/"
#endif
namespace xposed {
struct XposedShared {
// Global variables
bool zygote;
bool startSystemServer;
const char* startClassName;
uint32_t xposedVersionInt;
bool isSELinuxEnabled;
bool isSELinuxEnforcing;
uid_t installer_uid;
gid_t installer_gid;
// Provided by runtime-specific library, used by executable
void (*onVmCreated)(JNIEnv* env);
#if XPOSED_WITH_SELINUX
// Provided by the executable, used by runtime-specific library
int (*zygoteservice_accessFile)(const char* path, int mode);
int (*zygoteservice_statFile)(const char* path, struct stat* st);
char* (*zygoteservice_readFile)(const char* path, int* bytesRead);
#endif
};
extern XposedShared* xposed;
} // namespace xposed
#endif // XPOSED_SHARED_H_
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zyygl/Xposed.git
git@gitee.com:zyygl/Xposed.git
zyygl
Xposed
Xposed
master

搜索帮助