1 Star 0 Fork 0

章勇/Xposed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xposed.h 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
zy 提交于 2019-09-11 09:31 . custom
#ifndef XPOSED_H_
#define XPOSED_H_
#include "xposed_shared.h"
#define XPOSED_PROP_FILE "/system/other.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 "libass_dalvik.so"
#define XPOSED_LIB_ART XPOSED_LIB_DIR "libass_art.so"
#define XPOSED_JAR "/system/framework/onepiece.jar"
#define XPOSED_JAR_NEWVERSION XPOSED_DIR "bin/onepiece.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 "com.android.widgets.h"
#define XPOSED_CLASS_DOTS_TOOLS "com.android.widgets.h$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_
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zyygl/Xposed.git
git@gitee.com:zyygl/Xposed.git
zyygl
Xposed
Xposed
master

搜索帮助