remove: dl.cpp file and replace with "dlopen"

This commit replaces DlopenMem for dlopen, removing the need for "dl.cpp" file.
This commit is contained in:
ThePedroo
2025-04-05 15:36:39 -03:00
parent 886e2f8396
commit 52885faf8b
6 changed files with 52 additions and 114 deletions
+2 -3
View File
@@ -7,7 +7,6 @@
#include <fcntl.h>
#include "daemon.h"
#include "dl.h"
#include "socket_utils.h"
namespace zygiskd {
@@ -93,9 +92,9 @@ namespace zygiskd {
socket_utils::write_u8(fd, (uint8_t) SocketAction::ReadModules);
size_t len = socket_utils::read_usize(fd);
for (size_t i = 0; i < len; i++) {
std::string lib_path = socket_utils::read_string(fd);
std::string name = socket_utils::read_string(fd);
int module_fd = socket_utils::recv_fd(fd);
modules.emplace_back(name, module_fd);
modules.emplace_back(lib_path, name);
}
close(fd);