fix injector cannot get tmp path

This commit is contained in:
5ec1cff
2024-01-05 10:37:48 +08:00
parent 043cfd93d6
commit 9a95377d7b
6 changed files with 26 additions and 8 deletions
+4 -1
View File
@@ -12,7 +12,6 @@
#endif
constexpr auto kCPSocketName = "/" LP_SELECT("cp32", "cp64") ".sock";
inline static const char* TMP_PATH = getenv("TMP_PATH");
class UniqueFd {
using Fd = int;
@@ -63,6 +62,10 @@ namespace zygiskd {
SystemServerStarted,
};
void Init(const char *path);
std::string GetTmpPath();
bool PingHeartbeat();
int RequestLogcatFd();