improve: CLI and code (#3)

This commit improves the CLI of ReZygisk, allowing the use of important information like PID of the daemons. Also improves the code of the loaders ptracer.
This commit is contained in:
Pedro.js
2024-06-20 22:53:13 -03:00
committed by GitHub
parent 39788a9ec2
commit 678d886343
13 changed files with 1132 additions and 748 deletions
+15
View File
@@ -42,6 +42,18 @@ private:
Fd fd_ = -1;
};
enum zygote_root_impl {
ZYGOTE_ROOT_IMPL_NONE,
ZYGOTE_ROOT_IMPL_KERNELSU,
ZYGOTE_ROOT_IMPL_MAGISK
};
struct zygote_info {
enum zygote_root_impl root_impl;
pid_t pid;
bool running;
};
namespace zygiskd {
struct Module {
@@ -55,6 +67,7 @@ namespace zygiskd {
PingHeartBeat,
RequestLogcatFd,
GetProcessFlags,
GetInfo,
ReadModules,
RequestCompanionSocket,
GetModuleDir,
@@ -81,4 +94,6 @@ namespace zygiskd {
void ZygoteRestart();
void SystemServerStarted();
void GetInfo(struct zygote_info *info);
}