1 Star 0 Fork 10

战鹏/xposed

forked from Gitee 极速下载/xposed 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xposed.h 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef XPOSED_H_
#define XPOSED_H_
#include "xposed_shared.h"
#define XPOSED_PROP_FILE "/system/xposed.prop"
#if defined(__LP64__)
#define XPOSED_LIB_DIR "/system/lib64/"
#else
#define XPOSED_LIB_DIR "/system/lib/"
#endif
#define XPOSED_LIB_DALVIK XPOSED_LIB_DIR "libxposed_dalvik.so"
#define XPOSED_LIB_ART XPOSED_LIB_DIR "libxposed_art.so"
#define XPOSED_JAR "/system/framework/XposedBridge.jar"
#define XPOSED_JAR_NEWVERSION XPOSED_DIR "bin/XposedBridge.jar.newversion"
#define XPOSED_LOAD_BLOCKER XPOSED_DIR "conf/disabled"
#define XPOSED_SAFEMODE_NODELAY XPOSED_DIR "conf/safemode_nodelay"
#define XPOSED_SAFEMODE_DISABLE XPOSED_DIR "conf/safemode_disable"
#define XPOSED_CLASS_DOTS_ZYGOTE "de.robv.android.xposed.XposedBridge"
#define XPOSED_CLASS_DOTS_TOOLS "de.robv.android.xposed.XposedBridge$ToolEntryPoint"
#if XPOSED_WITH_SELINUX
#include <selinux/selinux.h>
#define ctx_system ((security_context_t) "u:r:system_server:s0")
#if PLATFORM_SDK_VERSION >= 23
#define ctx_app ((security_context_t) "u:r:untrusted_app:s0:c512,c768")
#else
#define ctx_app ((security_context_t) "u:r:untrusted_app:s0")
#endif // PLATFORM_SDK_VERSION >= 23
#endif // XPOSED_WITH_SELINUX
namespace xposed {
bool handleOptions(int argc, char* const argv[]);
bool initialize(bool zygote, bool startSystemServer, const char* className, int argc, char* const argv[]);
void printRomInfo();
void parseXposedProp();
int getSdkVersion();
bool isDisabled();
void disableXposed();
bool isSafemodeDisabled();
bool shouldSkipSafemodeDelay();
bool shouldIgnoreCommand(int argc, const char* const argv[]);
bool addJarToClasspath();
void onVmCreated(JNIEnv* env);
void setProcessName(const char* name);
bool determineXposedInstallerUidGid();
bool switchToXposedInstallerUidGid();
void dropCapabilities(int8_t keep[] = NULL);
bool isMinimalFramework();
} // namespace xposed
#endif // XPOSED_H_
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/war_peng/xposed.git
git@gitee.com:war_peng/xposed.git
war_peng
xposed
xposed
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385