mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-19 11:11:22 +00:00
zygisk: Separate path classes.dex into constant
This commit is contained in:
parent
8015d36786
commit
2079674e3e
@ -158,7 +158,7 @@ static off_t sendFile(int remote_fd, const std::string& path) {
|
||||
|
||||
static void companionHandler(int remote_fd) {
|
||||
// Serve module dex
|
||||
auto size = sendFile(remote_fd, "/data/adb/modules/safetynet-fix/classes.dex");
|
||||
auto size = sendFile(remote_fd, MODULE_DEX_PATH);
|
||||
LOGD("Sent module payload: %ld bytes", size);
|
||||
}
|
||||
|
||||
|
@ -4,6 +4,8 @@ namespace safetynetfix {
|
||||
|
||||
static constexpr auto TAG = "SafetyNetFix/JNI";
|
||||
|
||||
static constexpr auto MODULE_DEX_PATH = "/data/adb/modules/safetynet-fix/classes.dex";
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define LOGD(...)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user